Re: haveChanges?
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>) |