• 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: adding NSView from other application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding NSView from other application


  • Subject: Re: adding NSView from other application
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 30 Mar 2005 23:20:25 +0200

Dmitry,

On 30.3.2005, at 22:52, Dmitry Markman wrote:

I'd like to clarify some issue

Well, it's not that simple.

in general we can formulate problem as following:

1. there are 2 applications a1 and a2
2. a1 application creates NSView and send address of that NSView to a2 application (via TCP/IP protocol for example)
3. a2 application create NSView and attempts to add that new NSView to the NSView that a1 application created


I think it's impossible on the Macintosh,

It is not general enough. Exactly as formulated, it truly is not possible with any system which uses virtual address space. And that, I believe, is just anything these days, even, IIRC, the Symbian of mobile phones does that :))


but I'd like to know for sure and reasons (if it's impossible)

There are possibilities though to get precisely the functionality (I think) you want. First, you can get it almost for free with distributed objects: through them, you can access any object remotely, and you even should be able to vend the NSView in question bycopy (never tried myself).


Besides, without knowing the applications design one can't be sure, but it smells to me suspicious: do you really want to *create* the view in one and *send the view* to another? (No offence meant, perhaps your design is excellent, just I wonder...)

You seldom enough create views programmatically: some, I daresay, 99.9% of tasks are better solved using NIBs -- and of course, you can load one application's NIB into another app any time (presumed there are proper access rights, of course).

Also, the idea of creating a view and moving it into a different environment sounds suspicious too: don't you perchance rather want to share/send the *data* which control the view creation, and -- possibly -- to share a bundle/framework with the code which crates the view based on the data?
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


_______________________________________________
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: adding NSView from other application
      • From: Dmitry Markman <email@hidden>
References: 
 >adding NSView from other application (From: Dmitry Markman <email@hidden>)

  • Prev by Date: Re: Mouse Input...
  • Next by Date: Re: NSCopying is manual labor
  • Previous by thread: adding NSView from other application
  • Next by thread: Re: adding NSView from other application
  • Index(es):
    • Date
    • Thread