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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
