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

Re: haveChanges?


  • Subject: Re: haveChanges?
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 07 Feb 2003 19:48:36 -0800

Wow, Objective-C...  That's been a while.  I think what you want is this:

if ([ec hasChanges]) return NO;

This checks the updatedObjects, deletedObjects, and insertedObjects to see
if there is anything in those arrays.


Chuck


P.S. Sniff.  I miss my Objective-C.



At 08:25 PM 07/02/2003 -0600, Ricardo Strausz wrote:
>Hola a todos!
>
>If I am trying to prevent a user to do something else just after s.he
>insert an object and before saving, i am supposed to ask to some EO
>(may be the Editing Context) if there are some changes. Isn' it??
>
>I did try, for example, to became the delegate of my DisplayGroup and
>implement:
>
>EOEditingContext *ec //suppose this exists
>- (BOOL)displayGroup:(EODisplayGroup*)dg
>shouldChangeSelection:(NSArray*)ar{
>     if([ec editorsHaveChanges]) return NO;
>     else return YES;
>}
>
>but it did not work
>Any Idea???
>I am about to became crazy with this isue....   HELP!!!
>
>
>Dino
>http://homepage.mac.com/strausz
>_______________________________________________
>webobjects-dev mailing list | email@hidden
>Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>Do not post admin requests to the list. They will be ignored.
>

--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >haveChanges? (From: Ricardo Strausz <email@hidden>)

  • Prev by Date: Re: haveChanges?
  • Next by Date: Many to many and Direct2Web throwing exceptions on save
  • Previous by thread: Re: haveChanges?
  • Next by thread: Many to many and Direct2Web throwing exceptions on save
  • Index(es):
    • Date
    • Thread