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

Re: resizing a NSView


  • Subject: Re: resizing a NSView
  • From: email@hidden (Henri Hansen)
  • Date: Wed, 16 Jan 2002 15:49:36 +0100

email@hidden writes:
>This code is working for me:
>
>[IBresizableView_
>setFrameSize:NSMakeSize(tSize.width,-tSize.height+SIZE_DIFF)];
>[[IBresizableView_ superview] setNeedsDisplay:YES];

Thanks for your answer.

It seems, that it is not working for me. And the reason might be the
following:

You are setting setNeedsDisplay of the superview of the view, which is the
window in which the view is displayed. But acording to the documentation
and also to the feedback of ProjectBuilder NSWindow does not have a method
setNeedsDisplay. So terefor I wonder if this realy works for you or if you
have made some typos or if I have made some more mistakes in my code or
the settings of my view in IB are wrong ...

greetings Henri


References: 
 >Re: resizing a NSView (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: Re: How to deal with long pathnames in Cocoa ?
  • Next by Date: Re: Tips on Reading TFM?
  • Previous by thread: Re: resizing a NSView
  • Next by thread: ANN: GNUMail.app 1.0.0pre1 / Pantomime 0.9.0
  • Index(es):
    • Date
    • Thread