Re: iOS when is my app launched

2010-12-08 Thread Jason Bobier
Hi Glenn, This is for a game, which is an exception to this rule. Jason On Dec 8, 2010, at 9:27 AM, glenn andreas wrote: > > On Dec 8, 2010, at 7:38 AM, Jason Bobier wrote: > >> Hey Dave, >> >> I'm talking about the Carbon equivalent of processLaunchDate i

Re: iOS when is my app launched

2010-12-08 Thread Jason Bobier
Hey Dave, I'm talking about the Carbon equivalent of processLaunchDate in the ProcessInfoExtendedRec. This is the actual date & time that the process launched. I want to use it to give my game's splash screen a consistent amount of time on screen. Here's how: I set the Default.png to the spla

iOS when is my app launched

2010-12-07 Thread Jason Bobier
How do I find the date and time when my application launched? I've done this before on OS X, but it was a while ago and I've forgotten how. :) Thanks so much! Jason ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requ

Re: Using NSKeyedArchiver to save and restore state on iPhone apps

2010-02-10 Thread Jason Bobier
ant, which means that it should be archivable. It appears that some of the NSCoding compliant objects aren't completely restorable tho. :-/ Jason On Feb 10, 2010, at 4:53 PM, Ricky Sharp wrote: > > On Feb 10, 2010, at 12:40 PM, Jason Bobier wrote: > > You don't want to tak

Re: Using NSKeyedArchiver to save and restore state on iPhone apps

2010-02-10 Thread Jason Bobier
at 12:54 PM, Jason Bobier wrote: >> All of these are NSCoding compliant, which means that if I archive it, I >> should be able to unarchive it and get the exact state back (subject to >> conditional archiving, etc...) as long as I archive a complete object graph. > >

Re: Using NSKeyedArchiver to save and restore state on iPhone apps

2010-02-10 Thread Jason Bobier
hierarchy for other apps, I'm just trying to be clever and to save myself a bunch of complex coding (that easily gets out of sync with how your hierarchies can be stacked) this time... :) Jason On Feb 10, 2010, at 3:12 PM, Jens Alfke wrote: > > On Feb 10, 2010, at 10:40 AM, Jason Bob

Using NSKeyedArchiver to save and restore state on iPhone apps

2010-02-10 Thread Jason Bobier
As many of you know, saving and restoring complex navigation hierarchies on the iPhone can be a real chore. So, I had this brilliant idea of setting up my app delegate like this: applicationDidFinishLaunching if userdefaults contains an archived navcontroller unarchive co

RegisterEventHotKey still the best way for global hotkeys

2009-02-21 Thread Jason Bobier
Hey there, before I use RegisterEventHotKey, I just wanted to make sure that it was still the only way to add a global hotkey to a machine? All that I really want to do is to cause my application to open when a hotkey is pressed if there happens to be a better way to do that. Thanks, Jas

Re: unable to break out of runloop because timers are fired and then the loop waits

2008-09-24 Thread Jason Bobier
Thanks Nick. I'm trying to avoid polling tho (since that is the whole point of runloops and mach ports). Jason On Sep 24, 2008, at 3:38 PM, Nick Zitzmann wrote: On Sep 24, 2008, at 1:15 PM, Jason Bobier wrote: Hey folks, I have a runloop on a thread that looks like this:

unable to break out of runloop because timers are fired and then the loop waits

2008-09-24 Thread Jason Bobier
Hey folks, I have a runloop on a thread that looks like this: while (! _cancelled) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [runloop runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; [pool rel

Re: best way to determine if portion of window is visible?

2008-08-19 Thread Jason Bobier
use of the transparency of the covering windows, it is even more difficult to know whether the window is exposed or not. :-) Jason On Aug 15, 2008, at 6:07 PM, Michael Ash wrote: On Fri, Aug 15, 2008 at 2:18 PM, Jason Bobier <[EMAIL PROTECTED]> wrote: Hey folks, I'd like to fade my window

Re: best way to determine if portion of window is visible?

2008-08-19 Thread Jason Bobier
n't visible and in fact, causes it to appear as if nothing is happening if a large number of non-exposed windows are faded before the exposed ones are. Jason On Aug 15, 2008, at 5:09 PM, Andy Lee wrote: On Aug 15, 2008, at 2:18 PM, Jason Bobier wrote: I'd like to fade my window out

Re: best way to determine if portion of window is visible?

2008-08-19 Thread Jason Bobier
Hi Amin, Unless I am misunderstanding, this would tell me if it was onscreen, but not if the window was exposed (not hidden by other windows). Jason On Aug 15, 2008, at 5:03 PM, [EMAIL PROTECTED] wrote: Hey folks, I'd like to fade my window out if any portion of it is visible to the user,

best way to determine if portion of window is visible?

2008-08-15 Thread Jason Bobier
Hey folks, I'd like to fade my window out if any portion of it is visible to the user, otherwise I simply want to close it for speed. Is there an easy way to determine if some portion of the window is visible? Thanks! Jason ___ Cocoa-dev mailing

Re: Recommended way of checking OS version

2008-08-06 Thread Jason Bobier
Cool. I was wondering how they would get it to work with 10.4.11, but then noticed that they added specific gestalts for major, minor, and bug fix in 10.4. Thanks, Jason On Aug 6, 2008, at 5:46 PM, Nick Zitzmann wrote: On Aug 6, 2008, at 6:37 PM, Jason Bobier wrote: Hey folks, does

Recommended way of checking OS version

2008-08-06 Thread Jason Bobier
Hey folks, does anyone know the recommended way of checking whether my app is running on Tiger or Leopard? It used to be that you could just check that appkit version against one of the #defines, but apple appears to have stopped updating them. At least 10.3.5 is the latest that I see. Is

Re: controlling system muting ?

2008-07-08 Thread Jason Bobier
I also need to determine the user's current mute and volume settings and restore them after my alert plays, which is the other reason that I was looking for something other than AppleScript. Jason On Jul 8, 2008, at 4:02 PM, I. Savant wrote: But that isn't what the OP asked. The OP asks *h

Re: controlling system muting ?

2008-07-08 Thread Jason Bobier
lol.. I knew I should have specified that this is a product requirement from users to avoid all of the worrying people are doing about my app. :-) Jason On Jul 8, 2008, at 7:52 AM, Andreas Mayer wrote: Am 08.07.2008 um 12:46 Uhr schrieb [EMAIL PROTECTED]: 2. Bring up an alert and after a

Re: controlling system muting ?

2008-07-08 Thread Jason Bobier
s. Jason On Jul 8, 2008, at 12:24 AM, Phil wrote: On Tue, Jul 8, 2008 at 3:25 PM, Jason Bobier <[EMAIL PROTECTED]> wrote: Has anyone figured out how to control a machine's volume level (specifically muting) from code? I know that you can do it from Applescript, but running an

controlling system muting ?

2008-07-07 Thread Jason Bobier
Hey folks, Has anyone figured out how to control a machine's volume level (specifically muting) from code? I know that you can do it from Applescript, but running an applescript from code seems to be a rather clunky approach. This is for emergency notification, so I have to be able to cra

Re: NSSound won't play wave files???

2008-07-07 Thread Jason Bobier
Hey Charles, I just did and that worked fine, so at least I have a work around. :-) Jason On Jul 7, 2008, at 3:01 AM, Charles Srstka wrote: On Jul 7, 2008, at 1:53 AM, Jason Bobier wrote: Has anyone else had issues playing wave files with NSSound? Not only does it refuse to play the file

Re: NSSound won't play wave files???

2008-07-07 Thread Jason Bobier
} works fine. On Jul 7, 2008, at 2:53 AM, Jason Bobier wrote: Has anyone else had issues playing wave files with NSSound? Not only does it refuse to play the file (even tho I can open it with the Quicktime Player and play it), but it fails to error. It simply doesn't make a sound.

NSSound won't play wave files???

2008-07-06 Thread Jason Bobier
Has anyone else had issues playing wave files with NSSound? Not only does it refuse to play the file (even tho I can open it with the Quicktime Player and play it), but it fails to error. It simply doesn't make a sound. AIFF files seem to play just fine. Here is the code in a generic projec

Re: Unvending a distributed object

2008-06-11 Thread Jason Bobier
Yes, that is how you do it. Jason On Jun 11, 2008, at 7:09 PM, Ken Thomases wrote: On Jun 11, 2008, at 6:05 PM, Mike Manzano wrote: Does anyone know how to unvend an object? I found this thread on the list: http://lists.apple.com/archives/Cocoa-dev/2002/Mar/msg00710.html but it didn't se

Re: NSTask(syslog)->NSPipe->NSFileHandle->readInBackgroundAndNotify buffers

2008-06-11 Thread Jason Bobier
appears in Leopard). Any other thoughts? Jason PS, I read the Domain of the Bored ASL stuff before I started and it saved me countless headaches. :-) On Jun 11, 2008, at 5:05 PM, Ken Thomases wrote: On Jun 11, 2008, at 3:10 PM, Jason Bobier wrote: The issue that I'm having is that I&#

NSTask(syslog)->NSPipe->NSFileHandle->readInBackgroundAndNotify buffers

2008-06-11 Thread Jason Bobier
Hey folks, I know that this has been discussed here before, but after spending hours reading cocoa-dev posts, I have yet to find the solution. The issue that I'm having is that I'm using NSTask to create a syslog process with the -w option to continually parse specific syslog entries. The p