Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / January 2006



Tip: Looking for answers? Try searching our database.

setAccessoryView and view in MainMenu.nib

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mhz - 28 Jan 2006 20:55 GMT
The checkox is created in the panel (used just to hold the checbox view) in MainMenu.nib
The MenuController is connected to the checkbox with save_accessory_chkbox_ref
The code to open the Save Panel is:

  sp = [NSSavePanel savePanel];
  [sp setAccessoryView:save_accessory_chkbox_ref];
  answer = [sp runModal];
  ...
  [sp setAccessoryView:nil];

This work perfectly the first time I use the Savel Panel
but the next time I got this error message:

  *** -[_NSViewAuxiliary setAutoresizingMask:]: selector not recognized [self = 0x35df80]

What I is wrong ?
mhz - 31 Jan 2006 01:02 GMT
Solved: insert

    [save_accessory_chkbox_ref retain];

in the code...

> The checkox is created in the panel (used just to hold the checbox view) in MainMenu.nib
> The MenuController is connected to the checkbox with save_accessory_chkbox_ref
[quoted text clipped - 12 lines]
>
> What I is wrong ?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.