• 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
Binding alignment property of NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Binding alignment property of NSTextField


  • Subject: Binding alignment property of NSTextField
  • From: Luc Van Bogaert <email@hidden>
  • Date: Sat, 27 Oct 2012 11:26:10 +0200

Hi,

I'm using bindings to set various properties of a textfield object in a nib file, eg. Font, TextColor, Hidden, etc. These textfield properties are all bound to the nib's File's Owner, which is a viewcontroller. This all works fine, except for the alignment property.

The textfield alignment is bound to an enum property of the viewcontroller. The strange thing is that, when I create a *new* viewcontroller object from the nib, the textfield alignment is set correctly based on the current enum property value. So, it seems that the binding indeed works, but

when I set the enum property of an existing viewcontroller object to some other value, the textfield alignment is not adjusted accordingly.

--
Luc Van Bogaert



_______________________________________________

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: Binding alignment property of NSTextField
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: App rejection due to app-sandboxing invalid entitlement
  • Next by Date: Re: Binding alignment property of NSTextField
  • Previous by thread: Re: Need faster approach to load data in NSTableView from a file
  • Next by thread: Re: Binding alignment property of NSTextField
  • Index(es):
    • Date
    • Thread