• 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: binding window titles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding window titles


  • Subject: Re: binding window titles
  • From: Lee Morgan <email@hidden>
  • Date: Sun, 5 Jun 2005 18:09:33 -0400

On Jun 5, 2005, at 5:29 PM, Jeff Gilbert wrote:

The Cocoa Bindings Reference for NSWindow states that displayPatternTitle1 is available in Mac OS X 10.4 and later. It seems that displayPatternTitle1 is available in 10.3 for other controls (e.g. NSTextField). To find the reference, do a full-text search in the Xcode documentation window for "NSWindow". The Cocoa Bindings Reference should be the first result.


Your right, my bad. Hum... It seems IB doesn't provide compatibility errors for bindings that don't exist on older versions... filed as Bug ID# 4139762.

My current solution, is to programatically set a KVO observation for the interested object property and in the notification I call [self synchronizeWindowTitleWithDocumentName] and just use windowTitleForDocumentDisplayName: to provide the window title.


A possible alternate solution is to bind the "title" attribute (which is in 10.3) to a string - if you need the pattern ability you can simply alter your string programmatically as needed, and use makeKeyAndOrderFront: or the other "order" methods (such as orderFront:) as needed.

But I think in-between that and what you've got working is about all the options you have available.

- Lee
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >binding window titles (From: Jeff Gilbert <email@hidden>)
 >Re: binding window titles (From: Jeff Gilbert <email@hidden>)
 >Re: binding window titles (From: Lee Morgan <email@hidden>)
 >Re: binding window titles (From: Jeff Gilbert <email@hidden>)

  • Prev by Date: Re: binding window titles
  • Next by Date: Re: Accepting image drags from Safari & Firefox
  • Previous by thread: Re: binding window titles
  • Next by thread: Crash in AppKit?
  • Index(es):
    • Date
    • Thread