Re: mark added object in NSArrayController as "dirty"?

2008-08-29 Thread Matt Neuburg
On Thu, 28 Aug 2008 16:49:04 -0700, Quincey Morris <[EMAIL PROTECTED]> said: >If the insertion *must* be modal, it might be better to be explicit >about it: instead of creating an invalid object when the Add button is >clicked, display a sheet that has fields for the required object >properties, an

Re: mark added object in NSArrayController as "dirty"?

2008-08-28 Thread mmalc crawford
On Aug 28, 2008, at 4:49 PM, Quincey Morris wrote: If the insertion *must* be modal, it might be better to be explicit about it: instead of creating an invalid object when the Add button is clicked, display a sheet that has fields for the required object properties, and create the object a

Re: mark added object in NSArrayController as "dirty"?

2008-08-28 Thread Quincey Morris
On Aug 28, 2008, at 10:37, Matt Neuburg wrote: Thanks (and your answer was extremely useful and confirmed my own further experiments), but the problem is that I'm not even getting that. That would be a reduced version of what I'd like to do, i.e. it would help me if I could just fool the sy

Re: mark added object in NSArrayController as "dirty"?

2008-08-28 Thread Keary Suska
8/28/08 11:37 AM, also sprach [EMAIL PROTECTED]: >> AFAIK, you can't. And, AFAIK, simply entering a field is enough to trigger >> editing, so if you set the first blank field as as first responder, >> validation should be called on end editing. But just for that field, >> unfortunately. > > Thank

Re: mark added object in NSArrayController as "dirty"?

2008-08-28 Thread Matt Neuburg
On Thu, 28 Aug 2008 08:47:10 -0600, Keary Suska <[EMAIL PROTECTED]> said: >8/27/08 6:46 PM, also sprach [EMAIL PROTECTED]: > >> I've got a simple detail view backed by an NSArrayController. The view views >> the NSArrayController's selection. The NSArrayController manages an array of >> dictionarie

Re: mark added object in NSArrayController as "dirty"?

2008-08-28 Thread Keary Suska
8/27/08 6:46 PM, also sprach [EMAIL PROTECTED]: > I've got a simple detail view backed by an NSArrayController. The view views > the NSArrayController's selection. The NSArrayController manages an array of > dictionaries, all very simple. > > I've implemented validateValue:... and it's being call

mark added object in NSArrayController as "dirty"?

2008-08-27 Thread Matt Neuburg
I've got a simple detail view backed by an NSArrayController. The view views the NSArrayController's selection. The NSArrayController manages an array of dictionaries, all very simple. I've implemented validateValue:... and it's being called when I want it to be (thanks to "validates immediately")