Re: IB changes not reflected
Re: IB changes not reflected
- Subject: Re: IB changes not reflected
- From: Rainer Brockerhoff <email@hidden>
- Date: Fri, 12 Nov 2004 13:59:50 -0200
At 7:52 AM -0800 11/12/04, email@hidden wrote:
>From: Ricky Sharp <email@hidden>
>Date: Fri, 12 Nov 2004 09:51:09 -0600
>
>I have a custom IB palette now with three different types of widgets. Two derive from NSView; the other derives from NSButton/NSButtonCell. I have a custom attribute inspector for each widget.
>
>If I create a new nib, drag in any of my widgets, and bring up the attribute inspector, I'm able to manipulate the widget. i.e. as I interact with the attribute inspector controls, live updates are performed by my widget (e.g. color changes).
>
>If I then save the nib, quit IB and re-open that nib, things are in a strange state. While the correct attribute inspector pane is brought up for my selected widgets, making any changes are not reflected by the widget. But those changes are being written down to the nib as I can switch amongst several widget instances and see the attribute inspector's controls change.
Ricky, I think I ran into this myself. Try calling:
[[self inspectedDocument] drawObject:[self object]];
at the end of your inspector's OK method, right before [super ok:sender];
HTH,
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"It's extremely unlucky to be superstitious, for no other reason
than it is always unlucky to be colossally stupid." (Stephen Fry)
Weblog: http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
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