• 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: Ending Editing when Doc Saves?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ending Editing when Doc Saves?


  • Subject: Re: Ending Editing when Doc Saves?
  • From: Dave Fernandes <email@hidden>
  • Date: Thu, 29 May 2008 08:41:41 -0400

Make the window the first responder in your document's saveDocument method...

- (IBAction)saveDocument:(id)sender
{
	NSWindow* window = [self windowForSheet];
	[window makeFirstResponder:window];
	[super saveDocument:sender];
}

On May 28, 2008, at 11:15 PM, David Carlisle wrote:

If I'm adding text to an NSTextField, then I select Save, somehow the message needs to get to the NSTextField wherever it is that it needs to terminate editing and send its contents to the model before the model is saved. I don't see how I should go about implementing that? Any suggestions are welcome.


_______________________________________________

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:
40utoronto.ca


This email sent to email@hidden

_______________________________________________

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


  • Follow-Ups:
    • Re: Ending Editing when Doc Saves?
      • From: David Carlisle <email@hidden>
    • Re: Ending Editing when Doc Saves?
      • From: Mike Abdullah <email@hidden>
    • Re: Ending Editing when Doc Saves?
      • From: Roland King <email@hidden>
References: 
 >Ending Editing when Doc Saves? (From: David Carlisle <email@hidden>)

  • Prev by Date: Re: Mount Point
  • Next by Date: Re: Ending Editing when Doc Saves?
  • Previous by thread: Ending Editing when Doc Saves?
  • Next by thread: Re: Ending Editing when Doc Saves?
  • Index(es):
    • Date
    • Thread