NSView confusion
NSView confusion
- Subject: NSView confusion
- From: Charlie Dickman <email@hidden>
- Date: Mon, 18 Aug 2008 19:02:36 -0400
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.
_______________________________________________
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