Can an app query the values in its own Info.plist?

2009-09-27 Thread Hippo Man
Is there a way for me to put my own, custom key into a Cocoa application's Info.plist and have the application query that key's setting? I know that I can use the dictionaryWithContentsOfFile: method of an NSDictionary to read an arbitrary, dictionary-like property list, given its pathname.

Re: Can an app query the values in its own Info.plist?

2009-09-27 Thread Hippo Man
Duh. Not sure what I was thinking. Sorry, Hippo Man. Thanks for the heads up, Graham and Kyle. Kiel Well, many thanks and much appreciation to all of you. This is exactly the information I was looking for, and it's good to know that there's a consensus that I _can_ put app-specific info

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
On Wed, Sep 23, 2009 at 06:46, Jeremy Pereira a...@jeremyp.net wrote: Speaking as a user of Mac OS X, I am relieved about this.  Spaces is a feature that is designed to allow the user to manage the way his/her apps appear.  Applications which interfere with the user's preferences (e.g. by

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
On Tue, Sep 22, 2009 at 12:19, Eric Schlegel eri...@apple.com wrote: On Sep 21, 2009, at 4:39 PM, Hippo Man wrote: Is there a way in Cocoa to programmatically query which Space the user is currently looking at? [ ... ] You could use the (CoreGraphics, not Cocoa) API

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
On Tue, Sep 22, 2009 at 12:27, Jesper Storm Bache jsba...@adobe.com wrote: So far we have the following: [ ... etc. ... ] For example, to determine whether or not a (candidate) window is on the active Space on 10.5, I ended up doing: [ ... etc. ... ] Obviously this is not desirable code,

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
On Wed, Sep 23, 2009 at 14:44, Kyle Sluder kyle.slu...@gmail.com wrote: This issue has come up a few times recently: I want to do X on my own computer!  I should be able to do it! I'm not trying to assert that I _should_ be able to anything. Please re-read my messages here, so you can disabuse

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
On Tue, Sep 22, 2009 at 12:27, Jesper Storm Bache jsba...@adobe.com wrote: There is very little external control over Spaces. Be sure to file enhancement request radars. One related question: I'm new to the Apple development world, and I want to make sure that I know the right place to file

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
Randall Meadows wrote: On Sep 23, 2009, at 2:27 PM, Hippo Man wrote: On Tue, Sep 22, 2009 at 12:27, Jesper Storm Bache jsba...@adobe.com wrote: There is very little external control over Spaces. Be sure to file enhancement request radars. One related question: I'm new to the Apple

Re: Controlling Spaces and retrieving information about the current Space?

2009-09-23 Thread Hippo Man
to the Switch Directly Into a Space events, and then I can use Apple Events in my application to send these keystrokes. None of this is ideal, of course, but it's workable and acceptable for my purposes. Thanks again to all. -- Hippo Man apple.hippo...@gmail.com |.-, 0__0

Controlling Spaces and retrieving information about the current Space?

2009-09-22 Thread Hippo Man
I'm fairly new to the Cocoa world and completely new to this mailing list. I hope that I'm posting this question to the correct forum. If not, I'd be grateful for a pointer to a more appropriate place to repost this. Before coming here, I tried to locate the answer I'm looking for on the net. I