Re: Help with Undo and MVC
Re: Help with Undo and MVC
- Subject: Re: Help with Undo and MVC
- From: Laurent Daudelin <email@hidden>
- Date: Mon, 03 Nov 2003 03:04:36 -0500
on 11/3/03 2:31 AM, Stephen Magyari at email@hidden wrote:
>
- (void)setBookTitle:(NSString *)title;
>
{
>
[[undoManager prepareWithInvocationTarget:self]
>
setBookTitle:newBookTitle];
>
[newBookTitle release];
>
newBookTitle = title;
>
}
>
>
I think the code above is correct (based on the examples I've seen) but my
>
app won't compile (under Xcode), stating, "error: 'undoManager' undeclared
>
(first use in this function....)"
Well, I think you should fix the first error you get before trying to get
going with Undo/Redo. Did you declare that 'undoManager' variable? It
doesn't seem like you did in the method above. Is it because it's an
instance variable of the class that implements 'setBookTitle:'?
-Laurent.
--
============================================================================
Laurent Daudelin AIM/iChat: LaurentDaudelin <
http://nemesys.dyndns.org>
Logiciels Nemesys Software
mailto:email@hidden
bozotic /boh-zoh'tik/ or /boh-zo'tik/ adj.: [from the name of a TV clown
even more losing than Ronald McDonald] Resembling or having the quality of a
bozo; that is, clownish, ludicrously wrong, unintentionally humorous.
Compare wonky, demented. Note that the noun `bozo' occurs in slang, but the
mainstream adjectival form would be `bozo-like' or (in New England)
`bozoish'.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.