• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bridging object expanding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Bridging object expanding
      • From: Frederick Cheung <email@hidden>
References: 
 >Bridging object expanding (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Automatic build number incrementing
  • Next by Date: Re: How to get NSTableView to notice a change in NSTableDataModel
  • Previous by thread: Bridging object expanding
  • Next by thread: Re: Bridging object expanding
  • Index(es):
    • Date
    • Thread