Process tracker

Y

Yash99

Guest
Objective-c / Xcode / PBuilder Question:

I need to make available to the user, a way of renaming the name under which the document gets printed without renaming the original file. So I figure ill capture printdialogs opening, then add my own accessory pane.

I have been looking for DAYS for any information on a way to track opening applications in OS X.3. My app should run in the background (ea Daemon process-got that) But I can't find a way to actually capture when a printdialog pops up, then I will use accessory panes to insert my own panel.

Other option is to monitor the PrintManager. but at that time the PDF will already have been created. Which means more dev time. Although if it can be done, please share.

Does anyone know of a way of doing this. Any Mac gurus out there?

Thank you
 
OP
Y

Yash99

Guest
accessory methods in OSX

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
 
OP
Y

Yash99

Guest
Is it possible to use Notifications? Sign observers to other application notifications? I doubt it but worth the though?
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top