Re: Toll-free bridge type at runtime
Re: Toll-free bridge type at runtime
- Subject: Re: Toll-free bridge type at runtime
- From: Mark Ritchie <email@hidden>
- Date: Thu, 02 Apr 2009 22:59:18 -0400
On 2-Apr-09, at 10:38 PM, Ryan Joseph wrote:
I think I need explain what exactly I need this for. I'm making a
Pascal bridge to Cocoa and it would be convenient if I could pass a
CF type or a Pascal wrapper indiscriminately and decide at runtime
how they should handled. If I knew the type was CF (thus NOT a
wrapper, because it was created from a CoreFoundation function) I
would not dereference the object and cause crashing.
Hi Ryan
Would the Pascal wrapper be a custom subclass of NSArray which has
some specific functionality for the bridge? I'm trying to understand
how this wrapped array would be different from another array. As Ali
said, it would be better if you could avoid the test.
Thanks!
Mark
__
Mark Ritchie
Cocoa and WebObjects Developer
Diamond Lake Consulting Inc.
Toronto, Ontario, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden