• 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
[NEWBIE]: Dynamically loading NSViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[NEWBIE]: Dynamically loading NSViews


  • Subject: [NEWBIE]: Dynamically loading NSViews
  • From: J Tichenor <email@hidden>
  • Date: Sat, 2 Oct 2004 10:23:00 +0100

I know I am missing something and hope someone will give me a hint.

I have the main window, with a browser on top and then a NSView below.

Depending on what is chosen in the browser, a different NSView will be loaded into the main window's child NSView.

That all works fine. I click my item in the browser and using -replaceSubiew:with: I am able to load one of my various NSView alternates.

The problem is in nextKeyView and in delegation. For whatever reason, even though the chosen view has been placed as a subview of the main window, delegation messages are not passing back up the chain, as they were when I hard placed my NSTextField, etc, elements into the window. I am using the -controlTextDidEndEditing delegate method to know what has changed in my textFields. But now that I've wired in this dynamic loading of the views, that message is never sent back to the delegate.

And my nextKeyView isn't triggering properly. It's fine within each view, but won't span the views. I've tried every combination of wiring nextKeyViews from the various views, although that's not technically right. No quite sure where I am going wrong.

Does any of this twig anything for anyone?

TAI -

~j~



James Tichenor
VFX Supervisor
AIM: email@hidden
(07779) 256 103
http://www.lehopictures.com/the_joint/


_______________________________________________
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
  • Follow-Ups:
    • Re: [NEWBIE]: Dynamically loading NSViews
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: RE: Re: NSScanner problem[SOLVED]
  • Next by Date: Re: NSScanner problem
  • Previous by thread: RE: Re: NSScanner problem[SOLVED]
  • Next by thread: Re: [NEWBIE]: Dynamically loading NSViews
  • Index(es):
    • Date
    • Thread