• 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: mark added object in NSArrayController as "dirty"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: mark added object in NSArrayController as "dirty"?
  • From: Keary Suska <email@hidden>
  • Date: Thu, 28 Aug 2008 13:07:27 -0600
  • Thread-topic: mark added object in NSArrayController as "dirty"?

8/28/08 11:37 AM, also sprach email@hidden:

>> 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.
>
> 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 system into thinking that the user has edited any field
> at all. Being *in* a field is not enough to do this; you have to *change*
> the field. But I need to do this in a way that makes the system think the
> *user* changed the field...

Have you tried:

  id object = [textField objectValue];
  [textField setObjectValue:object];

?

I have used this technique to re-trigger formatting....

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

References: 
 >Re: mark added object in NSArrayController as "dirty"? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Convert unicode string into ascii
  • Next by Date: Re: global key bindings
  • Previous by thread: Re: mark added object in NSArrayController as "dirty"?
  • Next by thread: Re: mark added object in NSArrayController as "dirty"?
  • Index(es):
    • Date
    • Thread