• 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
Window to Window handling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Window to Window handling


  • Subject: Window to Window handling
  • From: Mamdouh <email@hidden>
  • Date: Sun, 20 Jan 2002 00:40:36 +0100

Hi...

I4m a newbie at Cocoa and Objective-C so please excuse me if i4m sounding to stupid or the answer for this is very simple...

Ok, i have a really really anoying problem with a text-editor app that i4m trying to write in Objective-C ("Document based Cocoa Application"). In that app i4m try4ing to implement 2 NSWindow4s:

The main text-editor window as a NSPanel
And an extra "tools" window as a NSPanel-Utility Window

My idea is to have all the text-tools in the tools window and not inside the same window as the actual NSText-View, but the buttons in my tools window does not seem to make any action to the NSText-View inside the main text-editor window... I tried making the tools-window into a NSDrawer, and in that situation it acctually controls the NSText-view inside the main window correctly. So when i make them as separate windows the actions does4nt get sent to the NSText-view but when i make them into a main-window and a NSDrawer the actions get sent correctly... Hmmm...

I can4t seem to figor out what to do here, so my question is how do i make my tools-window send its messages and actions to the NSText-view inside the main-window?

HELP

I really hope this message is understandable for you guys, 4cause your the only one who can help me with this somewhat simple but important problem! I4m probably gonna get some kind of very simple answer that just proves that i should have used my brain a little bit harder, but right now i4m really stuck!

Thanks
Mamdouh
Student/Programmer


  • Prev by Date: NSNotification not going through
  • Next by Date: Re: NSNotification not going through
  • Previous by thread: Re: NSNotification not going through
  • Next by thread: Re: Window to Window handling
  • Index(es):
    • Date
    • Thread