Re: Using NSController inside an Interface Builder inspector?
Re: Using NSController inside an Interface Builder inspector?
- Subject: Re: Using NSController inside an Interface Builder inspector?
- From: Jonathan Wight <email@hidden>
- Date: Wed, 9 Nov 2005 14:19:50 -0500
On Nov 9, 2005, at 02:42, John C. Randolph wrote:
So I guess what I am trying to say is - has anyone successfully
used NSController in an IB Inspector Palette?
I've done it, but as you noticed, IB is little bit uncooperative
with bindings. The view I palettized didn't involve text in any
way, so I don't really know what to suggest.
How did you link your NSObjectController to the object being
inspected? I hooked mine up to the inspector's "object" attribute but
then I had to class-dump IBInspector to find what the 'setter' for
the attribute was called and provide this little snippet of code in
my IBInspector subclasses:
- (void)setInspectedObject:(id)fp8;
{
[self willChangeValueForKey:@"object"];
[super setInspectedObject:fp8];
[self didChangeValueForKey:@"object"];
}
Did you do something similar?
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