• 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: SetControlReference equivalent in NSControl?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SetControlReference equivalent in NSControl?


  • Subject: Re: SetControlReference equivalent in NSControl?
  • From: Graham Cox <email@hidden>
  • Date: Wed, 25 Jun 2008 08:45:08 +1000

Bear in mind that the typical purpose of a ControlRef in Carbon is to keep track of an associated wrapper object (or other extended data). In Cocoa, NSControl already is that object. The way to extend an object is to subclass it and add whatever ivars you need. So there would appear to be no need for an equivalent to a ControlRef in the Carbon sense.

What are you trying to do? Better advice might be available knowing that.

Graham


On 25 Jun 2008, at 4:53 am, email@hidden wrote:

Hi,

In Carbon you can tie a 32 bit value to a control with SetControlReference. Is there an equivalent method in NSControl? I looked around in the header files but couldn't find anything (NSControl, NSView, NSResponder, NSObject).

thanks
Jeff

_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: SetControlReference equivalent in NSControl?
      • From: Kevin Elliott <email@hidden>
References: 
 >SetControlReference equivalent in NSControl? (From: email@hidden)

  • Prev by Date: Core Animation: Disabling Implicit Animations
  • Next by Date: Leak in NSSavePanel
  • Previous by thread: Re: SetControlReference equivalent in NSControl?
  • Next by thread: Re: SetControlReference equivalent in NSControl?
  • Index(es):
    • Date
    • Thread