• 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
Bindings: Value With Pattern Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings: Value With Pattern Question


  • Subject: Bindings: Value With Pattern Question
  • From: Dave Garaffa <email@hidden>
  • Date: Wed, 17 Dec 2003 12:47:47 -0500

Has anyone played with the "Value With Pattern" type of bindings yet?

Mini-Example: NSController has 2 keys/values: firstname and lastname

I can then drag out a TextField onto my window (in IB) and bind (also in IB) the text field using "Value With Pattern" instead of just "Value" so the 1st (displayValueBinding1) is bound to the firstname and then add a 2nd (displayValueBinding2) and bind it to lastname and finally sent the Display Pattern to something like "First Name is: %{value1}@ Last Name is: %{value2}@"

Okay that works just fine... it displays "First Name is: Ted Last Name is: Smith"

Finally on to the question:

Does anyone know of a way to force a \n, line-break, etc into the "Display Pattern"?

Something like: "First Name is: %{value1}@ \n Last Name is: %{value2}@" (but this doesn't work) I also tried stuff like {\n} %{\n} and a few others that I can remember now... none seemed to work... I've also TRIED (really I did) to search the docs but nothing turns up with all the keywords I've been using...

Also if anyone is really in the know... what other codes are available when using "Display Pattern" (if any)...

Any help would be great!

TIA

Dave
_______________________________________________
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: Bindings: Value With Pattern Question
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: RE: Changing the Locale for a single App?
  • Next by Date: Re: Interface builder, .nibs, etc ...
  • Previous by thread: Re: CoreFoundation on Win32
  • Next by thread: Re: Bindings: Value With Pattern Question
  • Index(es):
    • Date
    • Thread