• 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
NSTextView setStringValue not Visible
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView setStringValue not Visible


  • Subject: NSTextView setStringValue not Visible
  • From: "Joe Fleck" <email@hidden>
  • Date: Wed, 14 Nov 2007 09:55:51 -0800

Hello Folks,
I'm working on my first Cocoa project - and pulling my hair out on this one.
Any help would be appreciated.

I'm writing a System Preference. During my mainViewDidLoad, I'm trying to
set the text of a local TextField by doing a

        [theTextField setStringValue:@"test"];

similar to the example at
http://developer.apple.com/documentation/CoreFoundation/Conceptual/CFPreferences/Tasks/UsingHighAPI.html
in
the mainViewDidLoad method.


The text never appears until later if I call setStringValue after I show
another sheet within the preference pane — then it appears. I'm NSLogging to
make sure mainViewDidLoad was being called - it was.

I've tried changing from mainViewDidLoad to willSelect, didSelect etc
thinking maybe it had to do with the timing that I was calling
setStringValue... No luck with any of them.

Can anyone give me an idea of what I might be able to try?  Thanks.

Joe
_______________________________________________

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

  • Prev by Date: Re: Bring app to foreground in 10.5
  • Next by Date: Re: How to add button in NIB by code?
  • Previous by thread: Re: Bring app to foreground in 10.5
  • Next by thread: Re: NSTextView setStringValue not Visible
  • Index(es):
    • Date
    • Thread