• 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: How to display AboutBox window in Agent Application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to display AboutBox window in Agent Application


  • Subject: Re: How to display AboutBox window in Agent Application
  • From: cocoa learner <email@hidden>
  • Date: Mon, 14 Sep 2009 21:17:32 +0530

Thanks TONs n TONs Nathan.I was struggling for this solution.

Regards
Cocoa.learner

On Mon, Sep 14, 2009 at 12:36 AM, Nathan Kinsinger <
email@hidden> wrote:

> On Sep 12, 2009, at 10:02 PM, cocoa learner wrote:
>
>  Hi All,
>> I have created an Agent Application using key - Application is agent
>> (UIElement) = true in Info.plist file.
>>
>> Problem # 1). my AboutBox window is not getting displayed.
>>
>> Here is my code snippet -
>>
>> AppController.h
>>
>> @interface AppController : NSObject
>>
>> {
>>
>> // some more data member to run app as Menulet item.
>>
>> IBOutlet NSWindow *aboutBox;
>>
>> }
>>
>>
>> - (IBAction) displayAboutBox: (id) sender;
>>
>>
>>
>> AppController.m
>>
>>
>> - (IBAction) displayAboutBox: (id) sender
>>
>> {
>>
>> NSLog(@"AppController : displayAboutBox : called");
>>
>> [aboutBox makeKeyAndOrderFront: NSApp];
>>
>> }
>>
>>
>> Problem # 2). When - Application is agent (UIElement) = false in
>> Info.plist
>> file. I can see the AboutBox but that is also not as top of all app
>> windows.
>> I get the AboutBox but I have to search for window in all applications.
>>
>>
>> Regards,
>>
>> Cocoa.learner
>>
>
>
> Send a activateIgnoringOtherApps:YES  message to NSApp before the
> makeKeyAndOrderFront: message.
> <
> http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSApplication_Class/Reference/Reference.html#//apple_ref/occ/instm/NSApplication/activateIgnoringOtherApps
> :>
>
> --Nathan
>
> BOINCMenubar 2
> http://brotherbard.com/boinc/
>
>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to display AboutBox window in Agent Application (From: cocoa learner <email@hidden>)
 >Re: How to display AboutBox window in Agent Application (From: Nathan Kinsinger <email@hidden>)

  • Prev by Date: Re: NSCell setControlSize:NSSmallControlSize doesn't show change
  • Next by Date: coding NSNumber in NSArray?
  • Previous by thread: Re: How to display AboutBox window in Agent Application
  • Next by thread: Core Data: How to find the NSPersistentStore of a managed object
  • Index(es):
    • Date
    • Thread