• 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: minimize the window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: minimize the window


  • Subject: Re: minimize the window
  • From: Markus Spoettl <email@hidden>
  • Date: Thu, 17 Dec 2009 15:50:20 +0100

On Dec 17, 2009, at 2:43 PM, kirankumar wrote:
> i use this code in aWakeFromNib, but its not working , can anyone help me plz.
> [mainwindow setIsMiniaturized:TRUE];


This can have any number of reasons, if you're implementing awakeFromNib the way you spelled it, one would be it's not being called because the message name is misspelled.

One other reason could be mainwindow is not hooked up to the actual window in IB.

Thirdly the method you're calling is likely not doing what you think it does. It's defined in the NSWindowScripting protocol, which I suspect is for implementing a scriptable window. I also suspect you're getting a compiler warning about this message being absent. Use

- (void)miniaturize:(id)sender

instead. I recommend reading the documentation on NSWindow and Window Programming Guide

http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/WinPanel/WinPanel.html#//apple_ref/doc/uid/10000031

Regards
Markus
--
__________________________________________
Markus Spoettl

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >minimize the window (From: kirankumar <email@hidden>)

  • Prev by Date: Can't trap uncaught exceptions on Snow Leopard
  • Next by Date: Re: Can't trap uncaught exceptions on Snow Leopard
  • Previous by thread: minimize the window
  • Next by thread: Re: minimize the window
  • Index(es):
    • Date
    • Thread