Re: Having trouble with NSView setNeedsDisplay
Re: Having trouble with NSView setNeedsDisplay
- Subject: Re: Having trouble with NSView setNeedsDisplay
- From: Andreas Mayer <email@hidden>
- Date: Fri, 23 Nov 2007 11:23:05 +0100
Am 23.11.2007 um 10:27 Uhr schrieb email@hidden:
I am trying to add an NSView (view) on an NSWindow (window)
How are you doing this? Show some code.
so [view setNeedsDisplay: YES] seems
not to be working as I expect,
All this does, is marking the view for redisplay during the next run
through the run loop.
The view is connected to an NSView in nib file.
You don't 'connect' views. You need to make your view a subview of the
content view.
As it is displayed when
the method is called for the first time,
What method? Views are drawn in drawRect:. You don't 'call methods' to
draw them.
I think you really need to post some code for us to understand your
problem.
Also, did you read this?
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaViewsGuide/Introduction/chapter_1_section_1.html
Andreas
_______________________________________________
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