• 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: Help with Undo and MVC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Help with Undo and MVC
      • From: Stephen Magyari <email@hidden>
References: 
 >Help with Undo and MVC (From: Stephen Magyari <email@hidden>)

  • Prev by Date: Re: Help with Undo and MVC
  • Next by Date: ParseAIFFHeader broken in 10.3 ?
  • Previous by thread: Re: Help with Undo and MVC
  • Next by thread: Re: Help with Undo and MVC
  • Index(es):
    • Date
    • Thread