Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Process tracker
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Yash99" data-source="post: 37817"><p><strong>accessory methods in OSX</strong></p><p></p><p>I could do this in my own app by creating a printoperation and adding the panel. Easy peazy:</p><p></p><p> NSPrintOperation *op = [NSPrintOperation printOperationWithView:self];</p><p> // Assume printAccessoryView exists and returns your custom view</p><p> NSView *accView = [self printAccessoryView];</p><p> [op setAccessoryView<img src="/images/smilies/angel.gif" class="smilie" loading="lazy" alt=":a" title="Angel :a" data-shortname=":a" />ccView];</p><p> [op runOperation];</p><p></p><p>HOWEVER: in this case I don't know the pointer to the PrintOperation because another application invokes it. </p><p></p><p>Now I want to catch a user starting such an operation and insert my own NSView. </p><p></p><p>What to do, What to do? (I just started working for a company and if i don't figure it out they'll fire me :/</p><p></p><p>Yash</p></blockquote><p></p>
[QUOTE="Yash99, post: 37817"] [b]accessory methods in OSX[/b] I could do this in my own app by creating a printoperation and adding the panel. Easy peazy: NSPrintOperation *op = [NSPrintOperation printOperationWithView:self]; // Assume printAccessoryView exists and returns your custom view NSView *accView = [self printAccessoryView]; [op setAccessoryView:accView]; [op runOperation]; HOWEVER: in this case I don't know the pointer to the PrintOperation because another application invokes it. Now I want to catch a user starting such an operation and insert my own NSView. What to do, What to do? (I just started working for a company and if i don't figure it out they'll fire me :/ Yash [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Process tracker
Top