• 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: NSToolbar missing notification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSToolbar missing notification?


  • Subject: Re: NSToolbar missing notification?
  • From: Ken Victor <email@hidden>
  • Date: Mon, 5 Dec 2005 12:03:15 -0800

thanx for the reply. yes i did consider those first. however, i wish to allow the user to configure the toolbars different for each window for each document, and documents may come and go. if i were to use this approach, then the user's pref file would grow indefinitely as the user worked with more docs, and if the user deleted a doc, there would be no way to delete the items from the pref file.

thus, i wish to save doc/window/toolbar info as part of the doc.

ken


At 7:34 PM +0000 12/5/05, Wain wrote:
Hi,

Have you considered using:

http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/Classes/NSToolbar.html#//apple_ref/occ/instm/NSToolbar/autosavesConfiguration

and related methods?

Wain


On 5 Dec 2005, at 19:26, Ken Victor wrote:

i have a multi-doc multi-window document app. i'm saving the toolbar state for my various windows in my doc. i use the NSToolbarDidRemoveItemNotification and NSToolbarWillAddItemNotification notifications to detect changes in the toolbar and cache the toolbar state, and then i write the toolbar state to my document when the doc is saved.

this works fine for adding and deleting items from the toolbar. however, if the user moves items around on the toolbar, i don't seem to get any notifications. i sorta (naively) expected that i might get a removed notification followed by an add notification. so... how am i supposed to save the state properly?

thanx,
ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



___________________________________________________________To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: Re: Unified instead of Brushed Metal NSDrawer
  • Next by Date: Re: NSToolbar missing notification?
  • Previous by thread: Fwd: NSToolbar missing notification?
  • Next by thread: Re: Unified instead of Brushed Metal NSDrawer
  • Index(es):
    • Date
    • Thread