• 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
Using NSController inside an Interface Builder inspector?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using NSController inside an Interface Builder inspector?


  • Subject: Using NSController inside an Interface Builder inspector?
  • From: Jonathan Wight <email@hidden>
  • Date: Tue, 8 Nov 2005 16:46:29 -0500

I am trying to speed up development of an Interfacer Builder palette by using NSController/bindings for the Inspector window of the edited view.

I was binding the GUI elements to the 'object' property of IB inspector. The values were changing but IB refused to update the edited view until i called "ok:" on the IB inspector. The only way I could really figure out to do that was to subclass my NSObjectController and override setValue:forKeyPath: causing it to call the IB inspector's ok: method whenever a value changed.

That actually works fine for some properties - however any property that is linked to a text field causes the stack to explode... Changing a value triggers the NSController, which calls ok, which causes the text field to send another "text field did change" event to the controller...

So I guess what I am trying to say is - has anyone successfully used NSController in an IB Inspector Palette?

Regards.

	Jon.
_______________________________________________
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: Using NSController inside an Interface Builder inspector?
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Questiong on NSString sizeWithAttributes
  • Next by Date: Re: AppKit source code should be public when...
  • Previous by thread: Re: AppKit source code should be public when...
  • Next by thread: Re: Using NSController inside an Interface Builder inspector?
  • Index(es):
    • Date
    • Thread