• 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
NSView confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView confusion


  • Subject: NSView confusion
  • From: Charlie Dickman <email@hidden>
  • Date: Wed, 20 Aug 2008 10:25:39 -0400

Nobody has anything to offer other than a nebulous "try changing the declarations"?

I have tried everything I can think of and have tried the documentation I can find and I still can not figure out what is going on or what to do about it.

I have an app that contains multiple NSView's which are all visible at the same time. They are all sub-classes of NSView but not of any of the others. Each has its initialize, initWithRect and drawRect methods invoked as it should.

With the exception of the 1st one I defined, the workhorse view, no methods implemented in any of the others and declared in the respective .h files are visible to any of the other views at compile time. I import the appropriate .h files and invoke the method via [view method... and the compiler reports that no such method can be found. Yet if I invoke the method via [view performSelector:... at execution time it works just fine.

I have no idea why the compile time recognition fails. Can someone explain to me what is going on and what I can do about it? Should there be a view hierarchy? If so, how structured?

Also, how does one synchronize events with the update of the various views? I can instruct each view what to draw and it draws it just fine (I use lockFocus, etc. when drawing is external to drawRect) and the updated view is seen _eventually_ but I can not synchronize subsequent activity to happen after the appropriate display is seen. How can I accomplish this synchronization? And how can I force a view to update? Invoking [view display] has no effect on forcing the display toshow the latest update.

Thanks for any help you can provide.

Charlie Dickman
email@hidden



_______________________________________________

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: NSView confusion
      • From: Negm-Awad Amin <email@hidden>
    • Re: NSView confusion
      • From: Randall Meadows <email@hidden>
    • Re: NSView confusion
      • From: Andy Lee <email@hidden>
    • Re: NSView confusion
      • From: Joseph Kelly <email@hidden>
  • Prev by Date: Re: Best Way to Handle Properties?
  • Next by Date: Re: Right place to unobserve notifications in a document
  • Previous by thread: Re: NSView confusion
  • Next by thread: Re: NSView confusion
  • Index(es):
    • Date
    • Thread