• 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
Re: Object change to NSView update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Object change to NSView update
      • From: Paul Bruneau <email@hidden>
References: 
 >Object change to NSView update (From: Paul Bruneau <email@hidden>)

  • Prev by Date: Re: Object change to NSView update
  • Next by Date: Re: File Extensions Problem
  • Previous by thread: Re: Object change to NSView update
  • Next by thread: Re: Object change to NSView update
  • Index(es):
    • Date
    • Thread