bugGNUstep - Bugs: bug #3437, NSApplication does not provide...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #3437: NSApplication does not provide full notification user info on launch

Submitted by:  Stefan Urbanek <stefanu>
Submitted on:  Fri 02 May 2003 11:06:44 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Remind
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sun 11 May 2003 03:27:15 PM UTC, comment #2:

Yes, it is documented in apple's documentation of NSWorkspace in the section Constants:

The following describes keys for an NSDictionary containing information about an application. This dictionary is returned by activeApplication and launchedApplications, and is also provided in the userInfo of NSWorkspace notifications for application launch and termination:

Key Value
- "NSApplicationPath"
The full path to the application, as a string.

- "NSApplicationName"
The application's name, as a string.

- "NSApplicationProcessIdentifier"
The application's process id, as an NSNumber.

- "NSApplicationProcessSerialNumberHigh"
The high long of the process serial number (PSN), as an NSNumber.

- "NSApplicationProcessSerialNumberLow"
The low long of the process serial number (PSN), as an NSNumber.

I am going to set this bug back to not fixed, because I consider my patch a temporary hack, that 'just works'.

Stefan Urbanek <stefanu>
Project Member
Sun 11 May 2003 02:49:44 PM UTC, comment #1:

Added this fix ...
Is the user info documented anywhere???

Richard Frith-Macdonald <CaS>
Project Member
Fri 02 May 2003 11:06:44 PM UTC, original submission:

NSApplication does not provide all keys for user info dictionary of NSWorkspaceDidLaunchApplicationNotification. Attached is a patch that partially fixes this problem by including NSApplicationPath and NSApplicationProcessIdentifier.

NSApplicationProcessSerialNumber* are not implemented (i do not know how to get those numbers).

Stefan Urbanek <stefanu>
Project Member

 

Attached Files
file #422:  NSApplication.patch added by stefanu (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 11 May 2003 03:27:15 PM UTCstefanuStatusFixed=>(Error - Not Found)
Sun 11 May 2003 02:49:44 PM UTCCaSOpen/ClosedOpen=>(Error - Not Found)
Sun 11 May 2003 02:49:43 PM UTCCaSStatusNone=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1