• 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: newbie: Why would a NSSecureTextField show a cursor but a NSTextField not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie: Why would a NSSecureTextField show a cursor but a NSTextField not?


  • Subject: Re: newbie: Why would a NSSecureTextField show a cursor but a NSTextField not?
  • From: Carlos Salinas <email@hidden>
  • Date: Sat, 9 Jul 2005 00:48:45 -0700

Yes the text field needs to be made key.

I wouldn't put that in awakeFromNib because that only executes when the sheet is initially loaded from nib. So if you reuse the sheet (instead of reloading from nib), the awakeFromNib will not be called. Usually I only use awakeFromNib to do extra initialization that really should be done in IB but I can't.

So you should have a controller object for the sheet. That controller should have some kind of display method. For example NSOpenPanel has - beginSheet... So that display method is were you should put the set- key field code.

On Jul 9, 2005, at 12:42 AM, Scott Andrew wrote:

Yes.. So does that mean I have to make the field key on awake nib in my sheets controller? (my sheets are all in their own nibs due to keeping the functionality modular).

On 7/9/05 12:34 AM, "Carlos Salinas" <email@hidden> wrote

Do you click and then type?

Click makes the field key. The caret blinks on the key text field.

On Jul 9, 2005, at 12:31 AM, Scott Andrew wrote:

I have not touched the insertion point. I don’t know if it has something to do with how iphoto’s export dialog is done? But the minute I type I get my caret. And I can click out and back in and se my cursor. However if the field is empty then not caret.

 How do I use Quartz Debug to determine if it’s being redisplayed?

 Scott

 On 7/8/05 11:41 PM, "Carlos Salinas" <email@hidden> wrote:


Did you change the color of the insertion point (-[NSTextView setInsertionPointColor:])? You can use Quartz Debug to determine if the insertion point is being redisplayed.

 What method did you use to display the sheet?

 On Jul 8, 2005, at 10:37 PM, Scott Andrew wrote:


So this goes back to my original question about the caret and the text
field.. If I change my class to a NSecureTextField I get a caret but if its
a NSTextField I get no caret when hosted in my panel. Again this is an
iPhoto export plugin.










_______________________________________________ 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: 
 >Re: newbie: Why would a NSSecureTextField show a cursor but a NSTextField not? (From: Scott Andrew <email@hidden>)

  • Prev by Date: Re: Documentation frustrations
  • Next by Date: Re: Entities without an NSManagedObjectContext?
  • Previous by thread: Re: newbie: Why would a NSSecureTextField show a cursor but a NSTextField not?
  • Next by thread: Parameter descriptions (was Re: Documentation frustrations)
  • Index(es):
    • Date
    • Thread