• 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: custom view won't update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custom view won't update


  • Subject: Re: custom view won't update
  • From: Shawn Erickson <email@hidden>
  • Date: Tue, 11 Sep 2007 07:12:13 -0700


On Sep 11, 2007, at 5:24 AM, Paul Bruneau wrote:

On Sep 11, 2007, at 8:16 AM, H M wrote:

It seems a little strange that an NSView subclass has IBActions/ IBOutlets... yet the above code seems to imply that.

hm, come to think of it, i'd say you're right, they should be in a controller class. that means i have to access the variables using accessor methods, but that shouldn't be a problem. the question is, how do I get that controller class to update my view?

Please excuse me barging in to ask a quick question of someone: I have a subclass of NSView also. It has an IBOutlet for its controller. Is this the correct way to get data from the controller to the view?

Yeah sorry poorly worded on my part... it isn't that unusual for a view to have an outlet to a data source however it is unusual for a view to have outlets to other views.


Normally a controller, even in the case of a data source, is the one that tells the view new/what data exists to display, etc.

-Shawn
_______________________________________________

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


References: 
 >custom view won't update (From: H M <email@hidden>)
 >Re: custom view won't update (From: Shawn Erickson <email@hidden>)
 >Re: custom view won't update (From: H M <email@hidden>)
 >Re: custom view won't update (From: "I. Savant" <email@hidden>)
 >Re: custom view won't update (From: H M <email@hidden>)
 >Re: custom view won't update (From: Shawn Erickson <email@hidden>)
 >Re: custom view won't update (From: H M <email@hidden>)
 >Re: custom view won't update (From: Paul Bruneau <email@hidden>)

  • Prev by Date: Getting data into a view (was Re: custom view won't update)
  • Next by Date: Re: the mechanics of writing over fullscreen
  • Previous by thread: Getting data into a view (was Re: custom view won't update)
  • Next by thread: Re: custom view won't update
  • Index(es):
    • Date
    • Thread