• 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: key-value support for Objective-C "class" variables?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: key-value support for Objective-C "class" variables?


  • Subject: Re: key-value support for Objective-C "class" variables?
  • From: Scott Stevenson <email@hidden>
  • Date: Sat, 28 Jul 2007 14:37:10 -0700


On Jul 28, 2007, at 8:20 AM, Michael Johnson wrote:

and I would really like to wire these up in IB with bindings for, say, a debugging panel inside my app. Even if I'm wrapping them up inside of some sort of app controller as a reflected instance variable there, I'm then realizing that I'm not sure how I could notify interested parties in the fact that these values changed, short of sending out a notification.

I'm assuming this topic has come up before, but googling hasn't helped...

A singleton seems like the simplest, cleanest solution. That's what I've used in the past.


     - Scott
_______________________________________________

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


References: 
 >key-value support for Objective-C "class" variables? (From: Michael Johnson <email@hidden>)

  • Prev by Date: Re: Changing the app language
  • Next by Date: Explanation needed regarding dependent keys
  • Previous by thread: Re: key-value support for Objective-C "class" variables?
  • Next by thread: Using -interpretKeyEvents in NSTextView to interpret key events
  • Index(es):
    • Date
    • Thread