Re: IB changes not reflected
Re: IB changes not reflected
- Subject: Re: IB changes not reflected
- From: Ricky Sharp <email@hidden>
- Date: Fri, 12 Nov 2004 11:18:18 -0600
On Friday, November 12, 2004, at 10:05AM, Rainer Brockerhoff <email@hidden> wrote:
>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];
Very cool! Thanks so much for pointing this out.
BTW, I also put that line of code in the revert method as well.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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