From burgisr at comcast.net Sun Mar 20 17:30:22 2005 From: burgisr at comcast.net (Rich Burgis) Date: Sun Mar 20 14:30:31 2005 Subject: [missing-sync-palmos-dev-talk] Modifying the Sample Carbon Conduit Message-ID: <4395b31a66c0bbb29c5abd3383e6130b@comcast.net> I'm having trouble modifying the Sample Carbon Conduit using XCode. After changing every reference to SampleConduit... to AttendanceConduit (including in the project preferences), I'm finally getting the modified program to compile. But when I try to install it in Mark/Space it does not appear. Looking at the Console I see 2005-03-20 17:12:28.426 Missing Sync for Palm OS[847] CFLog (21): Cannot find executable for CFBundle 0x45c1d70 (not loaded) In my info.plist the CFBundle Executable Key has the value AttendanceConduit, which matches the name of the executable (AttendanceConduit) in the MacOS folder in the plugin. Just to be sure I built the Sample Conduit in place and it installs beautifully. The only difference I can see in the plists is the name of the executable and the bundle identifier. I also compared the project preferences between the two and cannot see any obvious differences. Do you have any suggestions for where I can look to see what needs done? Thanks Rich -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1153 bytes Desc: not available Url : http://lists.markspace.com/pipermail/missing-sync-palmos-dev-talk/attachments/20050320/4b98f103/attachment.bin From burgisr at comcast.net Sun Mar 20 17:43:22 2005 From: burgisr at comcast.net (Rich Burgis) Date: Sun Mar 20 14:43:25 2005 Subject: [missing-sync-palmos-dev-talk] Modifying the Sample Carbon Conduit In-Reply-To: <4395b31a66c0bbb29c5abd3383e6130b@comcast.net> References: <4395b31a66c0bbb29c5abd3383e6130b@comcast.net> Message-ID: One interesting point. I opened up the project.pbxproj file within the XCode project and found 2 remaining references to SampleMachOConduit one was the name of the PBXGroup and the other was the product name. Yet what it actually produces is the AttendanceConduit I expected. I cannot find where these two reference can be found using the XCode user interface to fix them. While this isn't actually progress. It may be useful information. Thanks Rich On Mar 20, 2005, at 5:30 PM, Rich Burgis wrote: > I'm having trouble modifying the Sample Carbon Conduit using XCode. > > After changing every reference to SampleConduit... to > AttendanceConduit (including in the project preferences), I'm finally > getting the modified program to compile. > > But when I try to install it in Mark/Space it does not appear. Looking > at the Console I see > > 2005-03-20 17:12:28.426 Missing Sync for Palm OS[847] CFLog (21): > Cannot find executable for CFBundle 0x45c1d70 > HotSync/Conduits/AttendanceConduit.plugin> (not loaded) > > In my info.plist the CFBundle Executable Key has the value > AttendanceConduit, which matches the name of the executable > (AttendanceConduit) in the MacOS folder in the plugin. > > Just to be sure I built the Sample Conduit in place and it installs > beautifully. The only difference I can see in the plists is the name > of the executable and the bundle identifier. > > I also compared the project preferences between the two and cannot see > any obvious differences. > > Do you have any suggestions for where I can look to see what needs > done? > > Thanks > Rich_______________________________________________ > missing-sync-palmos-dev-talk mailing list > missing-sync-palmos-dev-talk@lists.markspace.com > http://lists.markspace.com/mailman/listinfo/missing-sync-palmos-dev- > talk -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1896 bytes Desc: not available Url : http://lists.markspace.com/pipermail/missing-sync-palmos-dev-talk/attachments/20050320/ff90301c/attachment.bin From burgisr at comcast.net Sun Mar 20 17:46:04 2005 From: burgisr at comcast.net (Rich Burgis) Date: Sun Mar 20 14:46:11 2005 Subject: [missing-sync-palmos-dev-talk] Modifying the Sample Carbon Conduit In-Reply-To: <4395b31a66c0bbb29c5abd3383e6130b@comcast.net> References: <4395b31a66c0bbb29c5abd3383e6130b@comcast.net> Message-ID: One last message. After further exploration I have tried it again, and it is working. I'll try to figure out why, but at this point thank you for reading all of these messages, and I hope you'll be as kind when I have a real problem. (Sheepishly) Thanks Rich On Mar 20, 2005, at 5:30 PM, Rich Burgis wrote: > I'm having trouble modifying the Sample Carbon Conduit using XCode. > > After changing every reference to SampleConduit... to > AttendanceConduit (including in the project preferences), I'm finally > getting the modified program to compile. > > But when I try to install it in Mark/Space it does not appear. Looking > at the Console I see > > 2005-03-20 17:12:28.426 Missing Sync for Palm OS[847] CFLog (21): > Cannot find executable for CFBundle 0x45c1d70 > HotSync/Conduits/AttendanceConduit.plugin> (not loaded) > > In my info.plist the CFBundle Executable Key has the value > AttendanceConduit, which matches the name of the executable > (AttendanceConduit) in the MacOS folder in the plugin. > > Just to be sure I built the Sample Conduit in place and it installs > beautifully. The only difference I can see in the plists is the name > of the executable and the bundle identifier. > > I also compared the project preferences between the two and cannot see > any obvious differences. > > Do you have any suggestions for where I can look to see what needs > done? > > Thanks > Rich_______________________________________________ > missing-sync-palmos-dev-talk mailing list > missing-sync-palmos-dev-talk@lists.markspace.com > http://lists.markspace.com/mailman/listinfo/missing-sync-palmos-dev- > talk -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1704 bytes Desc: not available Url : http://lists.markspace.com/pipermail/missing-sync-palmos-dev-talk/attachments/20050320/9cdac7e8/attachment.bin From burgisr at comcast.net Sun Mar 20 21:39:53 2005 From: burgisr at comcast.net (Rich Burgis) Date: Sun Mar 20 18:40:19 2005 Subject: [missing-sync-palmos-dev-talk] Link Error Message-ID: OK, I'm frustrated again, and this looks like a more substantial misunderstanding. I added the following to my OpenConduitCarbon function: CONDHANDLE hAttendanceConduit = (CONDHANDLE)0; char conduitName[ 100 ]; ::GetConduitName( conduitName, sizeof( conduitName ) ); This compiles nicely but will not link, stating that I have ld: Undefined symbols: _GetConduitName (I originally left off the :: but had the same result) OK, the template includes the SyncMgr.h file, but I don't see any of the CDK libraries. So I added them to the project, but this did not change the results. Then I noticed a number of calls to UserManager functions even without those libraries that link quite nicely. So it seems that these libraries aren't needed after all(?). So two questions. First, what is the obvious thing that I'm overlooking here? Second, my mental model of how things work is clearly lacking. Is there anything beyond the white paper that describes how this whole thing works? The MissingSync framework appears to address ObjectiveC only. But is included in the Carbon sample and the other functions clearly work, so it must be more than what I can see on the surface. Before I added the call to the GetConduitName function the whole thing worked even without the CDK libraries (At least not that I can find.) So I'm confused. Thanks Rich -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1708 bytes Desc: not available Url : http://lists.markspace.com/pipermail/missing-sync-palmos-dev-talk/attachments/20050320/d38420e1/attachment.bin From eshapiro at markspace.com Sun Mar 20 22:12:30 2005 From: eshapiro at markspace.com (Eric Shapiro) Date: Sun Mar 20 19:12:40 2005 Subject: [missing-sync-palmos-dev-talk] Link Error In-Reply-To: References: Message-ID: <0FE5FB55-99B7-11D9-874F-0003936C5928@markspace.com> On Mar 20, 2005, at 9:39 PM, Rich Burgis wrote: > Second, my mental model of how things work is clearly lacking. Is > there anything beyond the white paper that describes how this whole > thing works? The MissingSync framework appears to address ObjectiveC > only. But is included in the Carbon sample and the other functions > clearly work, so it must be more than what I can see on the surface. > Before I added the call to the GetConduitName function the whole thing > worked even without the CDK libraries (At least not that I can find.) By including the framework in a project, you get both the header file include paths AND the libraries you need. You shouldn't need anything beyond the framework. > ::GetConduitName( conduitName, sizeof( conduitName ) ); > > This compiles nicely but will not link, stating that I have > > ld: Undefined symbols: > _GetConduitName GetConduitName isn't a call for you to make - it's a call for conduits to implement so that Hotsync or The Missing Sync knows what to display for its name. If I remember correctly, you implement CopyConduitNameAsCFStringRef() now instead for bundled conduits. It's your conduit -- you should know the name. :-) If you are writing a generic piece of code that will be used in multiple conduits, I suggest putting your name in your project's plist file or #define it in a header file. The sample conduit (at least my old version) implements only 4 calls: CopyConduitNameAsCFStringRef - returns the conduit name so we know what to display OpenConduitCarbon - called when you should sync CopyActionStringAsCFStringRef - returns a string, either "sync" or "do nothing" ConfigureConduit - puts up a dialog for your settings Those are the calls you need to implement. You should be able to make nearly any calls documented in Palm's Mac SDK documentation. -Eric ----------------------------------------------- Eric Shapiro eshapiro at markspace.com ----------------------------------------------- From burgisr at comcast.net Sun Mar 20 22:23:57 2005 From: burgisr at comcast.net (Rich Burgis) Date: Sun Mar 20 19:24:01 2005 Subject: [missing-sync-palmos-dev-talk] Link Error In-Reply-To: <0FE5FB55-99B7-11D9-874F-0003936C5928@markspace.com> References: <0FE5FB55-99B7-11D9-874F-0003936C5928@markspace.com> Message-ID: <8f9c69c7c485baaf46c284d91b79258a@comcast.net> That works. I'm working from the O'Reilly book and trying to iteratively add functionality. So, I should ignore that piece. Thanks Rich On Mar 20, 2005, at 10:12 PM, Eric Shapiro wrote: > On Mar 20, 2005, at 9:39 PM, Rich Burgis wrote: > >> Second, my mental model of how things work is clearly lacking. Is >> there anything beyond the white paper that describes how this whole >> thing works? The MissingSync framework appears to address ObjectiveC >> only. But is included in the Carbon sample and the other functions >> clearly work, so it must be more than what I can see on the surface. >> Before I added the call to the GetConduitName function the whole >> thing worked even without the CDK libraries (At least not that I can >> find.) > > By including the framework in a project, you get both the header file > include paths AND the libraries you need. You shouldn't need anything > beyond the framework. > >> ::GetConduitName( conduitName, sizeof( conduitName ) ); >> >> This compiles nicely but will not link, stating that I have >> >> ld: Undefined symbols: >> _GetConduitName > > GetConduitName isn't a call for you to make - it's a call for conduits > to implement so that Hotsync or The Missing Sync knows what to display > for its name. If I remember correctly, you implement > CopyConduitNameAsCFStringRef() now instead for bundled conduits. > > It's your conduit -- you should know the name. :-) > > If you are writing a generic piece of code that will be used in > multiple conduits, I suggest putting your name in your project's plist > file or #define it in a header file. > > The sample conduit (at least my old version) implements only 4 calls: > CopyConduitNameAsCFStringRef - returns the conduit name so we know > what to display > OpenConduitCarbon - called when you should sync > CopyActionStringAsCFStringRef - returns a string, either "sync" or "do > nothing" > ConfigureConduit - puts up a dialog for your settings > > Those are the calls you need to implement. > > You should be able to make nearly any calls documented in Palm's Mac > SDK documentation. > > -Eric > > ----------------------------------------------- > Eric Shapiro eshapiro at markspace.com > ----------------------------------------------- > > _______________________________________________ > missing-sync-palmos-dev-talk mailing list > missing-sync-palmos-dev-talk@lists.markspace.com > http://lists.markspace.com/mailman/listinfo/missing-sync-palmos-dev- > talk > From burgisr at comcast.net Sun Mar 20 17:30:22 2005 From: burgisr at comcast.net (Rich Burgis) Date: Fri May 6 12:02:41 2005 Subject: [missing-sync-palmos-dev-talk] Modifying the Sample Carbon Conduit Message-ID: <4395b31a66c0bbb29c5abd3383e6130b@comcast.net> I'm having trouble modifying the Sample Carbon Conduit using XCode. After changing every reference to SampleConduit... to AttendanceConduit (including in the project preferences), I'm finally getting the modified program to compile. But when I try to install it in Mark/Space it does not appear. Looking at the Console I see 2005-03-20 17:12:28.426 Missing Sync for Palm OS[847] CFLog (21): Cannot find executable for CFBundle 0x45c1d70 (not loaded) In my info.plist the CFBundle Executable Key has the value AttendanceConduit, which matches the name of the executable (AttendanceConduit) in the MacOS folder in the plugin. Just to be sure I built the Sample Conduit in place and it installs beautifully. The only difference I can see in the plists is the name of the executable and the bundle identifier. I also compared the project preferences between the two and cannot see any obvious differences. Do you have any suggestions for where I can look to see what needs done? Thanks Rich -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1153 bytes Desc: not available Url : http://lists.markspace.com/pipermail/missing-sync-palmos-dev-talk/attachments/20050320/4b98f103/attachment-0002.bin From burgisr at comcast.net Sun Mar 20 17:43:22 2005 From: burgisr at comcast.net (Rich Burgis) Date: Fri May 6 12:02:42 2005 Subject: [missing-sync-palmos-dev-talk] Modifying the Sample Carbon Conduit In-Reply-To: <4395b31a66c0bbb29c5abd3383e6130b@comcast.net> References: <4395b31a66c0bbb29c5abd3383e6130b@comcast.net> Message-ID: One interesting point. I opened up the project.pbxproj file within the XCode project and found 2 remaining references to SampleMachOConduit one was the name of the PBXGroup and the other was the product name. Yet what it actually produces is the AttendanceConduit I expected. I cannot find where these two reference can be found using the XCode user interface to fix them. While this isn't actually progress. It may be useful information. Thanks Rich On Mar 20, 2005, at 5:30 PM, Rich Burgis wrote: > I'm having trouble modifying the Sample Carbon Conduit using XCode. > > After changing every reference to SampleConduit... to > AttendanceConduit (including in the project preferences), I'm finally > getting the modified program to compile. > > But when I try to install it in Mark/Space it does not appear. Looking > at the Console I see > > 2005-03-20 17:12:28.426 Missing Sync for Palm OS[847] CFLog (21): > Cannot find executable for CFBundle 0x45c1d70 > HotSync/Conduits/AttendanceConduit.plugin> (not loaded) > > In my info.plist the CFBundle Executable Key has the value > AttendanceConduit, which matches the name of the executable > (AttendanceConduit) in the MacOS folder in the plugin. > > Just to be sure I built the Sample Conduit in place and it installs > beautifully. The only difference I can see in the plists is the name > of the executable and the bundle identifier. > > I also compared the project preferences between the two and cannot see > any obvious differences. > > Do you have any suggestions for where I can look to see what needs > done? > > Thanks > Rich_______________________________________________ > missing-sync-palmos-dev-talk mailing list > missing-sync-palmos-dev-talk@lists.markspace.com > http://lists.markspace.com/mailman/listinfo/missing-sync-palmos-dev- > talk -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1896 bytes Desc: not available Url : http://lists.markspace.com/pipermail/missing-sync-palmos-dev-talk/attachments/20050320/ff90301c/attachment-0002.bin From burgisr at comcast.net Sun Mar 20 17:46:04 2005 From: burgisr at comcast.net (Rich Burgis) Date: Fri May 6 12:02:42 2005 Subject: [missing-sync-palmos-dev-talk] Modifying the Sample Carbon Conduit In-Reply-To: <4395b31a66c0bbb29c5abd3383e6130b@comcast.net> References: <4395b31a66c0bbb29c5abd3383e6130b@comcast.net> Message-ID: One last message. After further exploration I have tried it again, and it is working. I'll try to figure out why, but at this point thank you for reading all of these messages, and I hope you'll be as kind when I have a real problem. (Sheepishly) Thanks Rich On Mar 20, 2005, at 5:30 PM, Rich Burgis wrote: > I'm having trouble modifying the Sample Carbon Conduit using XCode. > > After changing every reference to SampleConduit... to > AttendanceConduit (including in the project preferences), I'm finally > getting the modified program to compile. > > But when I try to install it in Mark/Space it does not appear. Looking > at the Console I see > > 2005-03-20 17:12:28.426 Missing Sync for Palm OS[847] CFLog (21): > Cannot find executable for CFBundle 0x45c1d70 > HotSync/Conduits/AttendanceConduit.plugin> (not loaded) > > In my info.plist the CFBundle Executable Key has the value > AttendanceConduit, which matches the name of the executable > (AttendanceConduit) in the MacOS folder in the plugin. > > Just to be sure I built the Sample Conduit in place and it installs > beautifully. The only difference I can see in the plists is the name > of the executable and the bundle identifier. > > I also compared the project preferences between the two and cannot see > any obvious differences. > > Do you have any suggestions for where I can look to see what needs > done? > > Thanks > Rich_______________________________________________ > missing-sync-palmos-dev-talk mailing list > missing-sync-palmos-dev-talk@lists.markspace.com > http://lists.markspace.com/mailman/listinfo/missing-sync-palmos-dev- > talk -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1704 bytes Desc: not available Url : http://lists.markspace.com/pipermail/missing-sync-palmos-dev-talk/attachments/20050320/9cdac7e8/attachment-0002.bin From burgisr at comcast.net Sun Mar 20 21:39:53 2005 From: burgisr at comcast.net (Rich Burgis) Date: Fri May 6 12:02:42 2005 Subject: [missing-sync-palmos-dev-talk] Link Error Message-ID: OK, I'm frustrated again, and this looks like a more substantial misunderstanding. I added the following to my OpenConduitCarbon function: CONDHANDLE hAttendanceConduit = (CONDHANDLE)0; char conduitName[ 100 ]; ::GetConduitName( conduitName, sizeof( conduitName ) ); This compiles nicely but will not link, stating that I have ld: Undefined symbols: _GetConduitName (I originally left off the :: but had the same result) OK, the template includes the SyncMgr.h file, but I don't see any of the CDK libraries. So I added them to the project, but this did not change the results. Then I noticed a number of calls to UserManager functions even without those libraries that link quite nicely. So it seems that these libraries aren't needed after all(?). So two questions. First, what is the obvious thing that I'm overlooking here? Second, my mental model of how things work is clearly lacking. Is there anything beyond the white paper that describes how this whole thing works? The MissingSync framework appears to address ObjectiveC only. But is included in the Carbon sample and the other functions clearly work, so it must be more than what I can see on the surface. Before I added the call to the GetConduitName function the whole thing worked even without the CDK libraries (At least not that I can find.) So I'm confused. Thanks Rich -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1708 bytes Desc: not available Url : http://lists.markspace.com/pipermail/missing-sync-palmos-dev-talk/attachments/20050320/d38420e1/attachment-0002.bin From eshapiroatmarkspace.com Sun Mar 20 22:12:30 2005 From: eshapiroatmarkspace.com (Eric Shapiro) Date: Fri May 6 12:02:42 2005 Subject: [missing-sync-palmos-dev-talk] Link Error In-Reply-To: References: Message-ID: <0FE5FB55-99B7-11D9-874F-0003936C5928@markspace.com> On Mar 20, 2005, at 9:39 PM, Rich Burgis wrote: > Second, my mental model of how things work is clearly lacking. Is > there anything beyond the white paper that describes how this whole > thing works? The MissingSync framework appears to address ObjectiveC > only. But is included in the Carbon sample and the other functions > clearly work, so it must be more than what I can see on the surface. > Before I added the call to the GetConduitName function the whole thing > worked even without the CDK libraries (At least not that I can find.) By including the framework in a project, you get both the header file include paths AND the libraries you need. You shouldn't need anything beyond the framework. > ::GetConduitName( conduitName, sizeof( conduitName ) ); > > This compiles nicely but will not link, stating that I have > > ld: Undefined symbols: > _GetConduitName GetConduitName isn't a call for you to make - it's a call for conduits to implement so that Hotsync or The Missing Sync knows what to display for its name. If I remember correctly, you implement CopyConduitNameAsCFStringRef() now instead for bundled conduits. It's your conduit -- you should know the name. :-) If you are writing a generic piece of code that will be used in multiple conduits, I suggest putting your name in your project's plist file or #define it in a header file. The sample conduit (at least my old version) implements only 4 calls: CopyConduitNameAsCFStringRef - returns the conduit name so we know what to display OpenConduitCarbon - called when you should sync CopyActionStringAsCFStringRef - returns a string, either "sync" or "do nothing" ConfigureConduit - puts up a dialog for your settings Those are the calls you need to implement. You should be able to make nearly any calls documented in Palm's Mac SDK documentation. -Eric ----------------------------------------------- Eric Shapiro eshapiro at markspace.com ----------------------------------------------- From burgisr at comcast.net Sun Mar 20 22:23:57 2005 From: burgisr at comcast.net (Rich Burgis) Date: Fri May 6 12:02:42 2005 Subject: [missing-sync-palmos-dev-talk] Link Error In-Reply-To: <0FE5FB55-99B7-11D9-874F-0003936C5928@markspace.com> References: <0FE5FB55-99B7-11D9-874F-0003936C5928@markspace.com> Message-ID: <8f9c69c7c485baaf46c284d91b79258a@comcast.net> That works. I'm working from the O'Reilly book and trying to iteratively add functionality. So, I should ignore that piece. Thanks Rich On Mar 20, 2005, at 10:12 PM, Eric Shapiro wrote: > On Mar 20, 2005, at 9:39 PM, Rich Burgis wrote: > >> Second, my mental model of how things work is clearly lacking. Is >> there anything beyond the white paper that describes how this whole >> thing works? The MissingSync framework appears to address ObjectiveC >> only. But is included in the Carbon sample and the other functions >> clearly work, so it must be more than what I can see on the surface. >> Before I added the call to the GetConduitName function the whole >> thing worked even without the CDK libraries (At least not that I can >> find.) > > By including the framework in a project, you get both the header file > include paths AND the libraries you need. You shouldn't need anything > beyond the framework. > >> ::GetConduitName( conduitName, sizeof( conduitName ) ); >> >> This compiles nicely but will not link, stating that I have >> >> ld: Undefined symbols: >> _GetConduitName > > GetConduitName isn't a call for you to make - it's a call for conduits > to implement so that Hotsync or The Missing Sync knows what to display > for its name. If I remember correctly, you implement > CopyConduitNameAsCFStringRef() now instead for bundled conduits. > > It's your conduit -- you should know the name. :-) > > If you are writing a generic piece of code that will be used in > multiple conduits, I suggest putting your name in your project's plist > file or #define it in a header file. > > The sample conduit (at least my old version) implements only 4 calls: > CopyConduitNameAsCFStringRef - returns the conduit name so we know > what to display > OpenConduitCarbon - called when you should sync > CopyActionStringAsCFStringRef - returns a string, either "sync" or "do > nothing" > ConfigureConduit - puts up a dialog for your settings > > Those are the calls you need to implement. > > You should be able to make nearly any calls documented in Palm's Mac > SDK documentation. > > -Eric > > ----------------------------------------------- > Eric Shapiro eshapiro at markspace.com > ----------------------------------------------- > > _______________________________________________ > missing-sync-palmos-dev-talk mailing list > missing-sync-palmos-dev-talk@lists.markspace.com > http://lists.markspace.com/mailman/listinfo/missing-sync-palmos-dev- > talk >