RE: How to get the applicaiton name that loads bundle

2011-07-01 Thread Chen, Jeff (SDCC)
Dear Scott, Thank you so much! mainBundle() works well. Best Regards Jeff Chen -Original Message- From: Scott Ribe [mailto:scott_r...@elevated-dev.com] Sent: Friday, July 01, 2011 2:46 PM To: Chen, Jeff (SDCC) Cc: 'cocoa-dev@lists.apple.com' Subject: Re: How to get the applic

How to get the applicaiton name that loads bundle

2011-06-30 Thread Chen, Jeff (SDCC)
Dear All, Now I'm developing the printer driver, and I want to realize the following specificaiton: 1, If the current applicaiton loading my PDE is "TextEdit" or "Preview", do actionA 2, If the current application loading my PDE is another application, do actionB. But I don't know how to get th