• 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
Can't seem to get the focus to change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't seem to get the focus to change


  • Subject: Can't seem to get the focus to change
  • From: Theodore Petrosky <email@hidden>
  • Date: Fri, 31 Oct 2003 04:11:47 -0800 (PST)

I can't seem to get this to work..

I have a few textFields that I populate from a
database. I am using the technique of swapping into my
mainWindow various views depending on the clients
needs.

on this one view I have a job number field. user puts
in a valid job number and the view is updated. I turn
on the enabled and editability for the other fields.

My problem is that if I type 'tab' in the number
field, the insertion point goes to the nextkeyview.
However, nothing I do programmaticaally seems to move
the keyView when the user types a return.

I have NSControlTextDidEndEditingNotification for the
textField and I thought I could use
selectText:newFieldName.... but unless you type a tab,
nothing.

I tried selectNextKeyView:nil for the window, I tried
a setNeedsDisplay for the view. I think I am just
lost.

Any ideas where I am going astray?

Ted

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
_______________________________________________
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.

  • Prev by Date: Re: Creation of constants
  • Next by Date: Re: NetInfo Modification
  • Previous by thread: Re: Please read my (unofficial) FAQ before posting.
  • Next by thread: NSOpenPanel and Selecting ONLY a volume?
  • Index(es):
    • Date
    • Thread