• 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: How to set default value for NSTextField from program before window is displayed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set default value for NSTextField from program before window is displayed?


  • Subject: Re: How to set default value for NSTextField from program before window is displayed?
  • From: "Kyle Sluder" <email@hidden>
  • Date: Fri, 21 Mar 2008 20:29:19 -0400

On Fri, Mar 21, 2008 at 8:09 PM, Samvel Khalatian <email@hidden> wrote:
>  Field (NSTextField), call it 'mate name', is connected to Controller
>  via IBOutlet. Unfortunately setting any value in given text field from
>  Controller init method does  not produce any meaningful effect because
>  it is executed before main window actually displayed resulting in
>  empty field shown upon window appearance.

You need to elaborate on what's going on with this Controller object.
You really shouldn't need one; NSArrayController should suffice.  You
would then bind the NSTextField to the array controller's selection
key.

--Kyle Sluder
_______________________________________________

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: How to set default value for NSTextField from program before window is displayed?
      • From: Samvel Khalatian <email@hidden>
References: 
 >How to set default value for NSTextField from program before window is displayed? (From: Samvel Khalatian <email@hidden>)

  • Prev by Date: How to set default value for NSTextField from program before window is displayed?
  • Next by Date: Re: How to set default value for NSTextField from program before window is displayed?
  • Previous by thread: How to set default value for NSTextField from program before window is displayed?
  • Next by thread: Re: How to set default value for NSTextField from program before window is displayed?
  • Index(es):
    • Date
    • Thread