• 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
DisplayName not shown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DisplayName not shown


  • Subject: DisplayName not shown
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Sat, 26 May 2012 13:26:10 +0700

 I have a Document based app, which successfully uses setDisplayName: .

But when the app restarts, it does:

- (void)restoreStateWithCoder:(NSCoder *)coder
{
	[ super restoreStateWithCoder: coder ];
	NSString *s = [ coder decodeObjectForKey: @"DisplayName" ];
	[ self setDisplayName: s ];
}

Now this display name is never seen. The window just shows "Untitled".

It seems that setDisplayName: only works when the document does not yet have a window.
But restoreStateWithCoder: is called after windowControllerDidLoadNib:.

What is do be done?


Kind regards,

Gerriet.

10.7.4


_______________________________________________

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: DisplayName not shown
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: group row custom drawing nstableview
  • Next by Date: Re: Sending a list of path strings to the Finder via Scripting Bridge
  • Previous by thread: iOS: How to get the user's name/email/etc?
  • Next by thread: Re: DisplayName not shown
  • Index(es):
    • Date
    • Thread