Re: Object change to NSView update
Re: Object change to NSView update
- Subject: Re: Object change to NSView update
- From: "Kyle Sluder" <email@hidden>
- Date: Fri, 22 Aug 2008 12:09:51 -0400
On Fri, Aug 22, 2008 at 10:58 AM, Paul Bruneau
<email@hidden> wrote:
> I am forcing the view to update after a change to one of the order step
> objects in what I am sure is The Wrong Way™ by basically chucking
> setNeedsDisplay into areas of my code such as the contextual menu handling
> code, etc. This works great for GUI-driven changes even though it's wrong,
> but it falls apart of course when changes occur due to Applescript.
Are you saying that when some GUI event occurs (like clicking a
button), you are calling -setNeedsDisplay: on your custom view?
Where's is your controller object? All of your model changes should
be going through a controller, and this controller would know to
update the other views.
--Kyle Sluder
_______________________________________________
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