Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to implement an "open pane" to an existing window (document)



I have an app where each window has a primary document (an image). It also supports the ability to open other images in separate panes (in split views).

I need to define a means to open these panes using AppleScript.

I've thought about it a bit, but no matter what the solution it seems like an odd duck.


PART A

1) I can tell the app to open a document with an optional parameter that indicates it should be done in a pane in the first window).

2) I can tell the first document to open another document.

3) I can tell the window to open a sub pane.

PART B

1) I can (try to) re-use the "open" command no matter which of the three above (or other) solution I use.

2) I can define a new command ("open pane" ?)



Suggestions would be most welcome.

David


PS: From an implementation standpoint, the current "Document" that is opened by NSApplication treats this first document as "special" - it shows the title in the window, and this document is not closable without closing the window. Beyond that its just the first entry an a possible array of images.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.