From sgruby at markspace.com Mon Jan 2 11:52:56 2006
From: sgruby at markspace.com (Scott Gruby)
Date: Mon Jan 2 11:52:59 2006
Subject: [missing-sync-palmos-dev-talk] Sync Services Developer Dinner at
MacWorld
Message-ID: <488312B8-78B4-4A18-9572-C2F8887912A6@markspace.com>
Mark/Space, Inc. invites all developers working on applications using
the Mac OS X Sync Services framework to an informal, no-host dinner
at MacWorld. This is an excellent opportunity for you to meet other
developers and provide API feedback to members of the Apple Sync
Services engineering team. The number of applications using Sync
Services Is expected to grow rapidly so collaboration is important
for improved interoperability between our products and ensuring Apple
receives valuable feedback on the Sync Services framework. Don't miss
this opportunity to help influence the future!
Please RSVP to sgruby@markspace.com by January 9 so that we can
reserve a room large enough for our group. If you have any questions,
please feel free to contact me. Please note that this dinner is not
sponsored by Mark/Space and each attendee will be responsible for
paying for their dinner.
Date: Wednesday, January 11, 2006
Time: 7:30 PM
Place: Buca di Beppo - San Francisco
855 Howard Street
San Francisco CA 94103
415.543.7673
--
Scott Gruby
Lead Engineer
Mark/Space, Inc.
Please visit for assistance with
Mark/Space products.
From mark.chung at sri.com Mon Jan 23 18:35:46 2006
From: mark.chung at sri.com (Mark Chung)
Date: Mon Jan 23 18:35:49 2006
Subject: [missing-sync-palmos-dev-talk] how to create conduit installer?
Message-ID: <43D59282.5000906@sri.com>
I used the Mark/Space SampleConduit code to develop a conduit, which
works for me on OS X 10.4.3 and HotSync 3.2.1 (thanks to Mark/Space for
the sample code, it was a lifesaver!). I also created an installer with
PackageMaker.
I've tested the installer and the conduit successfully on my development
system, but a beta user said that the conduit doesn't show up in the
Conduit Settings even though the installer copied the file to the right
location, and the user was an administrator. I get similar results on a
test machine. Before creating the installer, I recursively set the
permissions on the conduit to 775 and the ownership to root:admin, and
set the installer to authorize as root.
Am I missing something?
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5193 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.markspace.com/pipermail/missing-sync-palmos-dev-talk/attachments/20060123/48f10f44/smime.bin
From sgruby at markspace.com Mon Jan 23 18:58:58 2006
From: sgruby at markspace.com (Scott Gruby)
Date: Mon Jan 23 18:59:05 2006
Subject: [missing-sync-palmos-dev-talk] how to create conduit installer?
In-Reply-To: <43D59282.5000906@sri.com>
References: <43D59282.5000906@sri.com>
Message-ID: <78413A37-C0BF-4F38-9F3A-290171D151DF@markspace.com>
On Jan 23, 2006, at 6:35 PM, Mark Chung wrote:
> I used the Mark/Space SampleConduit code to develop a conduit, which
> works for me on OS X 10.4.3 and HotSync 3.2.1 (thanks to Mark/
> Space for
> the sample code, it was a lifesaver!). I also created an installer
> with
> PackageMaker.
>
> I've tested the installer and the conduit successfully on my
> development system, but a beta user said that the conduit doesn't
> show up in the Conduit Settings even though the installer copied
> the file to the right
> location, and the user was an administrator. I get similar results
> on a test machine. Before creating the installer, I recursively set
> the permissions on the conduit to 775 and the ownership to
> root:admin, and set the installer to authorize as root.
> Am I missing something?
Was the tester using HotSync Manager or Missing Sync? Since you said
you're using HotSync, the conduit you created should work on either.
I doubt it is a permissions issue. Are you sure the file got placed
in /Library/Application Support/Palm HotSync/Conduits/? Feel free to
send the installer to me off list and I can probably tell pretty
quickly the problem.
--
Scott Gruby
Lead Engineer
Mark/Space, Inc.
Please visit for assistance with
Mark/Space products.
From sgruby at markspace.com Tue Jan 24 08:00:25 2006
From: sgruby at markspace.com (Scott Gruby)
Date: Tue Jan 24 08:00:30 2006
Subject: [missing-sync-palmos-dev-talk] how to create conduit installer?
In-Reply-To: <43D59282.5000906@sri.com>
References: <43D59282.5000906@sri.com>
Message-ID:
On Jan 23, 2006, at 6:35 PM, Mark Chung wrote:
> I used the Mark/Space SampleConduit code to develop a conduit, which
> works for me on OS X 10.4.3 and HotSync 3.2.1 (thanks to Mark/
> Space for
> the sample code, it was a lifesaver!). I also created an installer
> with
> PackageMaker.
>
> I've tested the installer and the conduit successfully on my
> development system, but a beta user said that the conduit doesn't
> show up in the Conduit Settings even though the installer copied
> the file to the right
> location, and the user was an administrator. I get similar results
> on a test machine. Before creating the installer, I recursively set
> the permissions on the conduit to 775 and the ownership to
> root:admin, and set the installer to authorize as root.
> Am I missing something?
>
I'll reply to the entire list; HotSync Manager seems to require the
bundle bit to be set on the conduit folder. The only way I've found
to do this from an installer is to write a PostInstall application
that does it. Here's code that should work; compile it as a command
line Foundation Tool and link in the Carbon Framework.
#import
void SetBundleFlag(NSString *inFilePath)
{
OSErr err;
FSRef targetRef;
FSRef parentRef;
FSCatalogInfo catalogInfo;
FileInfo finderInfo;
err = FSPathMakeRef((UInt8*)[inFilePath fileSystemRepresentation],
&targetRef, NULL );
if (err )
{
return;
}
err = FSGetCatalogInfo( &targetRef, kFSCatInfoFinderInfo,
&catalogInfo, NULL, NULL, &parentRef);
if (err)
{
return;
}
memcpy(&finderInfo, catalogInfo.finderInfo, sizeof
(catalogInfo.finderInfo));
finderInfo.finderFlags |= kHasBundle;
memcpy(catalogInfo.finderInfo, &finderInfo, sizeof
(catalogInfo.finderInfo));
(void) FSSetCatalogInfo( &targetRef, kFSCatInfoFinderInfo,
&catalogInfo);
}
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
SetBundleFlag(@"/Library/Application Support/Palm HotSync/Conduits/
MyConduit.plugin");
[pool release];
return 0;
}
--
Scott Gruby
Lead Engineer
Mark/Space, Inc.
Please visit for assistance with
Mark/Space products.