Re: Bridging object expanding
Re: Bridging object expanding
- Subject: Re: Bridging object expanding
- From: Pontus Ilbring <email@hidden>
- Date: Fri, 27 May 2005 21:50:34 +0200
On 5/27/05, Mark Thomas <email@hidden> wrote:
> Hi,
> I'm working with a NSMutabledictionary, which I know I can use
> CFMutabledictionary calls on, as it's a bridging object. What I wasn't sure
> is did mine own NSMarksMutabledictionary could I still CFMutabledictionary
> calls on it ?, as all I need to do is over ride a few of the default
> archiving methods I think.
>
> Is this safe ?
I just did a quick test with mutable arrays, and it worked. But it
doesn't seem safe at all.
> Also
>
> Is there a way to work with a NSObject in C land, as I would like to use
> the object counting ability which these NSObjects have, but I need to get
> access to this object within C only library. I guess C Struct's are out of
> the question here, and my other NSObject, holds a NSString and I want to get
> access to this.
Object counting? You mean retain counts? You can use CFRetain and
CFRelease on all core foundation objects, and on all objects that are
bridged to core foundation objects, like NSString. NSObject itself is
not bridged, so even if that works it is also something unsafe.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden