Use of NSView enterFullScreenMode withOptions causes warning about deprecated CPSSetForegroundOperationState

2010-02-18 Thread Shayne Wissler
version of OSX, 10.5.8. Any tips would be appreciated. Thanks, Shayne Wissler ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at

Re: Cocoa+OpenGL app crashes iMac

2010-02-09 Thread Shayne Wissler
Thanks for the tips, I will review my code according to your suggestions. I did try the OpenGL profiler--that causes a kernel panic almost instantly. Shayne Wissler On Tue, Feb 9, 2010 at 3:21 PM, Jean-Daniel Dupas wrote: > > Le 9 févr. 2010 à 22:38, Shayne Wissler a écrit : > &g

Cocoa+OpenGL app crashes iMac

2010-02-09 Thread Shayne Wissler
when OSX comes crashing down. Any tips? Shayne Wissler ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/U

Re: Timer in drawing loop performance problems

2009-08-15 Thread Shayne Wissler
Evidently I wasn't clear. It's using ~15% of the CPU while not drawing anything at all, but just from the timer going off and calling setNeedsDisplay. I don't actually redisplay unless something changed. Thanks for the tip on CVDisplayLink, I missed that. Shayne Wissler On Sat,

Timer in drawing loop performance problems

2009-08-14 Thread Shayne Wissler
quot;[self setNeedsDisplay:YES]". Is all this normal/expected? Shayne Wissler ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.

enterFullScreenMode and tearing

2009-08-14 Thread Shayne Wissler
alues: &swapInterval forParameter: NSOpenGLCPSwapInterval]; CGLContextObj cglContext = (CGLContextObj)[[self openGLContext] CGLContextObj]; GLint newSwapInterval = 1; CGLSetParameter(cglContext, kCGLCPSwapInterval, &newSwapInterval); with no beneficial effect. Any help would be apprecia

Re: Disabling key bindings

2009-03-05 Thread Shayne Wissler
there are also not part of the Cocoa > key bindings system, but you do have some more control over them. If you > override -[NSApplication sendEvent:] you can see those key events and even > prevent their normal processing. So there are really 3 key bindings systems to be aware of then.

Re: Disabling key bindings

2009-03-05 Thread Shayne Wissler
On Thu, Mar 5, 2009 at 12:17 PM, Ken Thomases wrote: > On Mar 5, 2009, at 11:59 AM, Shayne Wissler wrote: > > I have an application in which the user's normal OSX key bindings are >> meaningless, and while they are in that application I would like to detect >> any keyb

Disabling key bindings

2009-03-05 Thread Shayne Wissler
e either a way to disable the key bindings in a Cocoa app, or is there perhaps a different method for receiving the raw, literal keycodes? Or is what I'm after impossible unless you modify the user's key bindings? Thanks, Shayne Wissler ___ Co

Official keycode table?

2009-02-16 Thread Shayne Wissler
table somewhere, preferably in an OSX header file? Thanks, Shayne Wissler ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.appl

Raw keyboard events under Cocoa

2009-02-14 Thread Shayne Wissler
Hello, Is there a way in cocoa to get the raw key press/release events? Let's say you were making a game that wanted to know when the control or caps lock key was down or up, how would you do that in Cocoa? Thanks, Shayne Wissler ___ Coco

Re: Display sleep vs. enterFullScreenMode

2009-01-05 Thread Shayne Wissler
Is there any way to re-enable the display sleep timer? Or do I need to implement my own display sleep timer if I use that API? Thanks for your help. Shayne Wissler On Wed, Dec 31, 2008 at 4:34 PM, Sean McBride wrote: > Shayne Wissler (wiss...@gmail.com) on 2008-12-31 3:11 PM said: > &g

Display sleep vs. enterFullScreenMode

2008-12-31 Thread Shayne Wissler
o not want my application to interfere with the user's default sleep settings (unless my application explicitly needs to when it's in a given mode--but that doesn't depend on whether it's in fullscreen or normal mode). Thank you

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
On Thu, Dec 11, 2008 at 12:03 PM, Sherm Pendley wrote: > On Dec 11, 2008, at 1:42 PM, Shayne Wissler wrote: > >> Just like an X application would work on Linux. I >> don't want for it to be required to have a .app directory with plists >> or nibs or anything other th

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
On Thu, Dec 11, 2008 at 11:55 AM, Eric Schlegel wrote: >> Can you perhaps suggest a book from which I would have learned this >> and other architectural nuances of systems programming on the Mac? > > I can't, partly because I haven't done an exhaustive survey of all > programming books on Mac OS

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
Hi Bill, I've got an application that isn't specifically for the Mac, and I want the same standard user-experience whether they are on the Mac or on Windows or on Linux. I want them to be able to run this program from the command line by directly using the binary (without calling "open"), to have

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
On Thu, Dec 11, 2008 at 11:18 AM, Eric Schlegel wrote: > Jumping in late here... > > It sounds like what you want to create is just a flat-file binary that does > not use the bundle hierarchy that is typical for a Mac OS X app. I.e., you > want your app to just be a single file "MyApp" rather than

Re: Starting Cocoa apps from the command line

2008-12-11 Thread Shayne Wissler
ns, thanks again. Shayne Wissler On Wed, Dec 10, 2008 at 2:47 PM, Shayne Wissler <[EMAIL PROTECTED]> wrote: > Hello, > > I have a Cocoa application that I am compiling in the traditional UNIX > manner using Makefiles and I want to be able to invoke it with > command-line

Starting Cocoa apps from the command line

2008-12-10 Thread Shayne Wissler
to do what I'm wanting, and if so, why does it half-work rather than fail with a decent error message? Shayne Wissler ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Not getting KeyDown events (and other peculiar things)

2008-12-08 Thread Shayne Wissler
w] isKeyWindow] on a mouseDown event and it is indeed true, making this seem even more bizarre to me. Note: I am not using nib files so "awakeFromNib" does not get called in my application. Any helpful comments would be appreciated! Shayne Wissler __

Re: Not getting KeyDown events (and other peculiar things)

2008-12-06 Thread Shayne Wissler
Hello, I'm resending this because it didn't seem to get through to the list: On Fri, Dec 5, 2008 at 8:47 AM, Shayne Wissler <[EMAIL PROTECTED]> wrote: > I'm writing something like a game engine using NSOpenGLView and am > getting some odd behaviors (I am new to Coc

Not getting KeyDown events (and other peculiar things)

2008-12-05 Thread Shayne Wissler
eyWindow] on a mouseDown event and it is indeed true, making this seem even more bizarre to me. Note: I am not using nib files so "awakeFromNib" does not get called in my application. Any helpful comments would be appreciated! Shayne Wissler __