Re: saving state of non-document-based agent [solved]

2008-07-02 Thread Daniel Richman
Thanks! This is perfect. Ken Thomases wrote: On Jul 2, 2008, at 5:21 PM, Daniel Richman wrote: I thought of that, and it's certainly a possibility, but it seems mainly intended for preferences. I was wondering, before I turn to that, if there's some other way of doing it that's more designed

Re: saving state of non-document-based agent

2008-07-02 Thread Scott Anguish
On Jul 2, 2008, at 6:33 PM, Ken Thomases wrote: On Jul 2, 2008, at 5:21 PM, Daniel Richman wrote: I thought of that, and it's certainly a possibility, but it seems mainly intended for preferences. I was wondering, before I turn to that, if there's some other way of doing it that's more des

Re: saving state of non-document-based agent

2008-07-02 Thread Ken Thomases
On Jul 2, 2008, at 5:21 PM, Daniel Richman wrote: I thought of that, and it's certainly a possibility, but it seems mainly intended for preferences. I was wondering, before I turn to that, if there's some other way of doing it that's more designed for this. -[NSDictionary writeToFile:atom

Re: saving state of non-document-based agent

2008-07-02 Thread Daniel Richman
I thought of that, and it's certainly a possibility, but it seems mainly intended for preferences. I was wondering, before I turn to that, if there's some other way of doing it that's more designed for this. Thanks, Daniel I. Savant wrote: I need some way for the agent to save its list of ale

Re: saving state of non-document-based agent

2008-07-02 Thread I. Savant
I need some way for the agent to save its list of alerts in case the user logs out or shuts down. The list is stored as an NSMutableDictionary. Thoughts? NSUserDefaults? -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

saving state of non-document-based agent

2008-07-02 Thread Daniel Richman
Hi All, I'm writing a program with a helper agent. The agent runs in the background, occasionally putting up alerts for the user to see. When the main program is running, it communicates information to the agent about what alerts to display. Then, the agent remembers this information after th