• 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: Having trouble with NSView setNeedsDisplay
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Having trouble with NSView setNeedsDisplay (From: email@hidden)

  • Prev by Date: Core Data and undo with unmodeled properties
  • Next by Date: Re: HUD controls
  • Previous by thread: Having trouble with NSView setNeedsDisplay
  • Next by thread: Re: Having trouble with NSView setNeedsDisplay
  • Index(es):
    • Date
    • Thread