How to resize NSPanel

Discussion in 'Mac Programming' started by satyam90, Jan 8, 2008.

  1. satyam90 macrumors regular


    Jul 30, 2007
    Bangalore, India
    I am developing an Application using XCode 2.4.1, Obj C on Cocoa Framework.

    I am creating NSPanel which will display some text ( like Notification on right top corner or Mac ). I want to resize NSPanel at runtime according to the text size & width I want to display. The text can be dislayed in more than one line. I couldn't find appropriate resize function in NSPanel or NSWindow documentation.

    Can anybody tell me how to implement this?
  2. kainjow Moderator emeritus


    Jun 15, 2000
    Use NSWindow's setFrame:display:animate: method. Also check out this.

Share This Page