Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Benjamin Dobson


On 7 Aug 2009, at 06:46:25, Eric Schlegel wrote:



On Aug 6, 2009, at 5:13 PM, Pierce Freeman wrote:


Hi Eric:

I'll make sure to file a big about that - hopefully it can get  
resolved
before shipment.  But, when using the key, it should stop Exposé,  
shouldn't

it?  I have also tested this and it still doesn't work.  Any ideas?


Hmm, yes, the keystroke to invoke Exposé should still be blocked. I  
can't say offhand why it wouldn't be.


And is there any way to make reproduce the display capture effect  
without
using this or SetSystemUIMode.  I am attempting to make a full  
screen app,
and don't want the user to have to disable this in the system  
preferences.


You can actually capture the display with the CGDisplayCapture API -  
Exposé can't be invoked when the display is captured. Otherwise, I  
don't think so.


-eric

___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/importedfromspace%40googlemail.com

This email sent to importedfromsp...@googlemail.com


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Eric Schlegel


On Aug 7, 2009, at 8:52 AM, Pierce Freeman wrote:

Hmm, yes, the keystroke to invoke Exposé should still be blocked. I  
can't say

offhand why it wouldn't be.

Hmm... Interesting.  I’m not quite sure either – maybe something  
with the

key I’m using... F3?


Yes, that's the problem. The hardware keys aren't blocked either.


Yeah, that’s what I was using, but then I was told that I couldn't use
NSAlert with the API.  Is there someway around this, or should I  
keep the

CGDisplayCapture API?


If you absolutely must disable Expose, CGDisplayCapture is the way to  
go. The caution about NSAlert is correct, though - CGDisplayCapture is  
designed to give you one window in which to draw all of your content,  
and the window server does not guarantee that other windows could be  
displayed while the display is captured.


-eric

___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Eric Schlegel


On Aug 7, 2009, at 9:09 AM, Pierce Freeman wrote:


Yes, that's the problem. The hardware keys aren't blocked either.


In any event, I've submitted a bug report about the issue and  
hopefully it
will be resolved in Snow Leopard.  I'm not betting on it, but it may  
just

make it through.


It won't be, sorry.


If you absolutely must disable Expose, CGDisplayCapture is the way to
go. The caution about NSAlert is correct, though - CGDisplayCapture  
is

designed to give you one window in which to draw all of your content,
and the window server does not guarantee that other windows could be
displayed while the display is captured.


So, assuming that I need/want alerts, but can't have Exposé enabled  
- what

are my other options?


I don't have any good recommendations. It might be possible to  
intercept and suppress the physical Exposé key on the keyboard using  
some IOKit callbacks; I haven't tried this. Hot corner and four-finger- 
swipe activations of Exposé can be disabled in System Prefs, so you  
could instruct your users to disable those before running your  
application.


-eric

___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Pierce Freeman
 It won't be, sorry.

Yeah, that's kind of what I figured.  But it would be pretty cool if it made
it into, like, 10.6.5 or something like that.

 I don't have any good recommendations. It might be possible to
 intercept and suppress the physical Exposé key on the keyboard using
 some IOKit callbacks; I haven't tried this. Hot corner and four-finger-
 swipe activations of Exposé can be disabled in System Prefs, so you
 could instruct your users to disable those before running your
 application.

I'll definitely look into these both.  Thanks for your help!


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Eric Schlegel


On Aug 7, 2009, at 9:12 AM, Eric Schlegel wrote:



On Aug 7, 2009, at 9:09 AM, Pierce Freeman wrote:


Yes, that's the problem. The hardware keys aren't blocked either.


In any event, I've submitted a bug report about the issue and  
hopefully it
will be resolved in Snow Leopard.  I'm not betting on it, but it  
may just

make it through.


It won't be, sorry.


I take that back! It looks like this is already fixed in SnowLeopard.

-eric

___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Pierce Freeman
 
 I take that back! It looks like this is already fixed in SnowLeopard.
 

Wow, I think that just made my day.  So, both of them are fixed?  In other
words, the gestures and the hardware key?


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Eric Schlegel


On Aug 7, 2009, at 9:28 AM, Pierce Freeman wrote:



I take that back! It looks like this is already fixed in SnowLeopard.



Wow, I think that just made my day.  So, both of them are fixed?  In  
other

words, the gestures and the hardware key?


In my testing on my MacBook Pro running a recent build of SnowLeopard,  
yes. SnowLeopard has not been released to customers yet, so of course  
there's always a possibility of something changing, but it does seem  
to work properly at the moment. Further discussion of SnowLeopard  
should probably be moved to the developer forums on developer.apple.com.


-eric

___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread I. Savant


  Oops ... have we forgotten our NDA?

--
I.S.



On Aug 7, 2009, at 12:37 PM, Eric Schlegel wrote:


On Aug 7, 2009, at 9:28 AM, Pierce Freeman wrote:



I take that back! It looks like this is already fixed in  
SnowLeopard.




Wow, I think that just made my day.  So, both of them are fixed?   
In other

words, the gestures and the hardware key?


In my testing on my MacBook Pro running a recent build of  
SnowLeopard, yes. SnowLeopard has not been released to customers  
yet, so of course there's always a possibility of something  
changing, but it does seem to work properly at the moment. Further  
discussion of SnowLeopard should probably be moved to the developer  
forums ondeveloper.apple.com.


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Pierce Freeman
 In my testing on my MacBook Pro running a recent build of SnowLeopard,
 yes. SnowLeopard has not been released to customers yet, so of course
 there's always a possibility of something changing, but it does seem
 to work properly at the moment. Further discussion of SnowLeopard
 should probably be moved to the developer forums on developer.apple.com.

Wow.  Thanks for letting me know.  I may just have to make my app Snow
Leopard only then.  After all, it's only $29.


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Alex Kac
Well he is an Apple employee. I suppose they can kind of do what they  
want :)


On Aug 7, 2009, at 11:39 AM, I. Savant wrote:



 Oops ... have we forgotten our NDA?

--
I.S.



On Aug 7, 2009, at 12:37 PM, Eric Schlegel wrote:


On Aug 7, 2009, at 9:28 AM, Pierce Freeman wrote:



I take that back! It looks like this is already fixed in  
SnowLeopard.




Wow, I think that just made my day.  So, both of them are fixed?   
In other

words, the gestures and the hardware key?


In my testing on my MacBook Pro running a recent build of  
SnowLeopard, yes. SnowLeopard has not been released to customers  
yet, so of course there's always a possibility of something  
changing, but it does seem to work properly at the moment. Further  
discussion of SnowLeopard should probably be moved to the developer  
forums ondeveloper.apple.com.


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/alex%40webis.net

This email sent to a...@webis.net


Alex Kac - President and Founder
Web Information Solutions, Inc.

If at first you don't succeed, skydiving is not for you.
-- Francis Roberts





___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread I. Savant

On Aug 7, 2009, at 12:52 PM, Alex Kac wrote:

Well he is an Apple employee. I suppose they can kind of do what  
they want :)


  We could continue the debate offline (in strictly a friendly way)  
if you want, but I'll just say I would imagine Apple employees would  
be under heavier scrutiny so as to avoid a software engineer  
preempting the marketing and legal departments ...


  I won't discuss this on-list any further though - it's not Cocoa- 
relevant.


--
I.S.


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Sean McBride
On 8/7/09 9:47 AM, Pierce Freeman said:

I may just have to make my app Snow
Leopard only then.  After all, it's only $29.

Only $29, yes; but remember it's also Intel-only.  So if you require
10.6, you loose any/all PowerPC customers.

--

Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer  Montréal, Québec, Canada


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-07 Thread Pierce Freeman
Very true, so I guess I'll have to weigh my options.  Thanks to everyone for
their help!


On 8/7/09 10:08 AM, Sean McBride s...@rogue-research.com wrote:

 On 8/7/09 9:47 AM, Pierce Freeman said:
 
 I may just have to make my app Snow
 Leopard only then.  After all, it's only $29.
 
 Only $29, yes; but remember it's also Intel-only.  So if you require
 10.6, you loose any/all PowerPC customers.
 
 --
 
 Sean McBride, B. Eng s...@rogue-research.com
 Rogue Researchwww.rogue-research.com
 Mac Software Developer  Montréal, Québec, Canada
 
 


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Sean McBride
On 8/5/09 7:39 PM, Pierce Freeman said:

Which version of OS X are you using?  With the latest of Leopard, it just
doesn't seem to work.

Are you using the same flags are Ricky?

I use SetSystemUIMode (kUIModeAllSuppressed, 0) and Exposé is allowed
(which I want).  Or do you mean this broke in 10.5.8 (which I haven't
installed yet).

--

Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer  Montréal, Québec, Canada


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
Hi Sean:

Yeah, I completely copied his code and inserted it into my project.  Even
odder, it doesn't allow the Apple-Tab function (which is what it is supposed
to do) but lets Exposé work just fine.

I don't mean that it broke in the latest version of Leopard, as the old
version I was using still did not have it enabled.  I was wondering if it
worked on Leopard at all, and based on your reply it does.  So I don't have
much idea as to what to try now.


On 8/6/09 7:56 AM, Sean McBride s...@rogue-research.com wrote:

 On 8/5/09 7:39 PM, Pierce Freeman said:
 
 Which version of OS X are you using?  With the latest of Leopard, it just
 doesn't seem to work.
 
 Are you using the same flags are Ricky?
 
 I use SetSystemUIMode (kUIModeAllSuppressed, 0) and Exposé is allowed
 (which I want).  Or do you mean this broke in 10.5.8 (which I haven't
 installed yet).
 
 --
 
 Sean McBride, B. Eng s...@rogue-research.com
 Rogue Researchwww.rogue-research.com
 Mac Software Developer  Montréal, Québec, Canada
 
 


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Ricky Sharp


On Aug 5, 2009, at 9:39 PM, Pierce Freeman wrote:

Which version of OS X are you using?  With the latest of Leopard, it  
just

doesn't seem to work.



When writing my initial response to this thread, it was 10.5.7.

Just tested with 10.5.8 and all is still well (no Expose, no process  
switching).


___
Ricky A. Sharp mailto:rsh...@instantinteractive.com
Instant Interactive(tm)   http://www.instantinteractive.com


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
Really odd, do you think you could send me a little example to see if your
same code works on my system?


On 8/6/09 2:59 PM, Ricky Sharp rsh...@mac.com wrote:

 
 On Aug 5, 2009, at 9:39 PM, Pierce Freeman wrote:
 
 Which version of OS X are you using?  With the latest of Leopard, it
 just
 doesn't seem to work.
 
 
 When writing my initial response to this thread, it was 10.5.7.
 
 Just tested with 10.5.8 and all is still well (no Expose, no process
 switching).
 
 ___
 Ricky A. Sharp mailto:rsh...@instantinteractive.com
 Instant Interactive(tm)   http://www.instantinteractive.com
 
 


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Ricky Sharp


On Aug 6, 2009, at 10:10 AM, Pierce Freeman wrote:

Yeah, I completely copied his code and inserted it into my project.   
Even
odder, it doesn't allow the Apple-Tab function (which is what it is  
supposed

to do) but lets Exposé work just fine.

I don't mean that it broke in the latest version of Leopard, as the  
old
version I was using still did not have it enabled.  I was wondering  
if it
worked on Leopard at all, and based on your reply it does.  So I  
don't have

much idea as to what to try now.



Hmm, I wonder if it has something to do with how I create my windows?

I create blanking windows and put one of those on each screen  
(borderless window covers entire screen).  Then, I create a content  
window (also borderless) that is then set to appropriate size (1024 x  
768 in my case), centered on, and made a child of, the blanking window  
on the main screen.


The call to SetSystemUIMode is made in applicationDidFinishLaunching:  
before I create windows.


Both the blanking and content windows are subclasses of NSWindow.

Blanking window's designated initializer is just a thin wrapper around  
NSWindow's initWithContentRect:styleMask:backing:defer:


- styleMask is NSBorderlessWindowMask
- backing is NSBackingStoreBuffered
- defer is NO

I then set these additional attributes:

- hidesOnDeactivate (YES)
- releasedWhenClosed (NO)
- movableByWindowBackground (NO)
- hasShadow (NO)
- optimizedDrawing (YES)
- opaque (YES)

I also override canBecomeKeyWindow (returns NO) and  
canBecomeMainWindow (also returns NO).



In my content window subclass, same setup as blanking window (in terms  
of attributes listed above).  And, overrides to canBecomeKeyWindow and  
canBecomeMainWindow return YES.



___
Ricky A. Sharp mailto:rsh...@instantinteractive.com
Instant Interactive(tm)   http://www.instantinteractive.com



___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
That's definitely a possibility.  However, I am basically creating my
windows the same way that you are.  The only difference is, I didn't set any
of those attributes and my main window just appears by Cocoa default.


On 8/6/09 3:10 PM, Ricky Sharp rsh...@mac.com wrote:

 
 On Aug 6, 2009, at 10:10 AM, Pierce Freeman wrote:
 
 Yeah, I completely copied his code and inserted it into my project.
 Even
 odder, it doesn't allow the Apple-Tab function (which is what it is
 supposed
 to do) but lets Exposé work just fine.
 
 I don't mean that it broke in the latest version of Leopard, as the
 old
 version I was using still did not have it enabled.  I was wondering
 if it
 worked on Leopard at all, and based on your reply it does.  So I
 don't have
 much idea as to what to try now.
 
 
 Hmm, I wonder if it has something to do with how I create my windows?
 
 I create blanking windows and put one of those on each screen
 (borderless window covers entire screen).  Then, I create a content
 window (also borderless) that is then set to appropriate size (1024 x
 768 in my case), centered on, and made a child of, the blanking window
 on the main screen.
 
 The call to SetSystemUIMode is made in applicationDidFinishLaunching:
 before I create windows.
 
 Both the blanking and content windows are subclasses of NSWindow.
 
 Blanking window's designated initializer is just a thin wrapper around
 NSWindow's initWithContentRect:styleMask:backing:defer:
 
 - styleMask is NSBorderlessWindowMask
 - backing is NSBackingStoreBuffered
 - defer is NO
 
 I then set these additional attributes:
 
 - hidesOnDeactivate (YES)
 - releasedWhenClosed (NO)
 - movableByWindowBackground (NO)
 - hasShadow (NO)
 - optimizedDrawing (YES)
 - opaque (YES)
 
 I also override canBecomeKeyWindow (returns NO) and
 canBecomeMainWindow (also returns NO).
 
 
 In my content window subclass, same setup as blanking window (in terms
 of attributes listed above).  And, overrides to canBecomeKeyWindow and
 canBecomeMainWindow return YES.
 
 
 ___
 Ricky A. Sharp mailto:rsh...@instantinteractive.com
 Instant Interactive(tm)   http://www.instantinteractive.com
 
 
 


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Eric Schlegel


On Aug 6, 2009, at 8:10 AM, Pierce Freeman wrote:


Hi Sean:

Yeah, I completely copied his code and inserted it into my project.   
Even
odder, it doesn't allow the Apple-Tab function (which is what it is  
supposed

to do) but lets Exposé work just fine.


Pierce, how are you entering Exposé: function key, mouse button, or  
screen hot corner? SetSystemUIMode attempts to disable Exposé as best  
it can, but only the function key and mouse button methods are  
disabled. Screen hot corners are still enabled so you'd have to  
disable those manually in System Prefs.


-eric

___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
Hi Eric:

I am using the four finger swipe gesture on a Unibody MacBook Pro and the
key.  Neither of which SetSystemUIMode over rides.  Maybe there is a way to
just set a window to be at the edges of the screen all the time, and then
put the main window in front of that?


On 8/6/09 3:59 PM, Eric Schlegel eri...@apple.com wrote:

 
 On Aug 6, 2009, at 8:10 AM, Pierce Freeman wrote:
 
 Hi Sean:
 
 Yeah, I completely copied his code and inserted it into my project.
 Even
 odder, it doesn't allow the Apple-Tab function (which is what it is
 supposed
 to do) but lets Exposé work just fine.
 
 Pierce, how are you entering Exposé: function key, mouse button, or
 screen hot corner? SetSystemUIMode attempts to disable Exposé as best
 it can, but only the function key and mouse button methods are
 disabled. Screen hot corners are still enabled so you'd have to
 disable those manually in System Prefs.
 
 -eric
 


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Eric Schlegel


On Aug 6, 2009, at 4:03 PM, Pierce Freeman wrote:


Hi Eric:

I am using the four finger swipe gesture on a Unibody MacBook Pro  
and the

key.  Neither of which SetSystemUIMode overrides.


Yes, that's the problem. SetSystemUIMode doesn't prevent entering  
Exposé via that method. Please file a bug about that; we have the  
infrastructure in place finally in SnowLeopard to fix this, so we  
should be able to address the problem in a future release.


 Maybe there is a way to just set a window to be at the edges of the  
screen all the time, and then

put the main window in front of that?


I don't think I understand what you're proposing. In general, I don't  
think there's a way to prevent Exposé from occurring in this case,  
without just disabling the gesture in System Prefs.


-eric

___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
Hi Eric:

I'll make sure to file a big about that - hopefully it can get resolved
before shipment.  But, when using the key, it should stop Exposé, shouldn't
it?  I have also tested this and it still doesn't work.  Any ideas?


On 8/6/09 5:02 PM, Eric Schlegel eri...@apple.com wrote:

 
 On Aug 6, 2009, at 4:03 PM, Pierce Freeman wrote:
 
 Hi Eric:
 
 I am using the four finger swipe gesture on a Unibody MacBook Pro
 and the
 key.  Neither of which SetSystemUIMode overrides.
 
 Yes, that's the problem. SetSystemUIMode doesn't prevent entering
 Exposé via that method. Please file a bug about that; we have the
 infrastructure in place finally in SnowLeopard to fix this, so we
 should be able to address the problem in a future release.
 
  Maybe there is a way to just set a window to be at the edges of the
 screen all the time, and then
 put the main window in front of that?
 
 I don't think I understand what you're proposing. In general, I don't
 think there's a way to prevent Exposé from occurring in this case,
 without just disabling the gesture in System Prefs.
 
 -eric
 


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Pierce Freeman
And is there any way to make reproduce the display capture effect without
using this or SetSystemUIMode.  I am attempting to make a full screen app,
and don't want the user to have to disable this in the system preferences.


On 8/6/09 5:02 PM, Eric Schlegel eri...@apple.com wrote:

 
 On Aug 6, 2009, at 4:03 PM, Pierce Freeman wrote:
 
 Hi Eric:
 
 I am using the four finger swipe gesture on a Unibody MacBook Pro
 and the
 key.  Neither of which SetSystemUIMode overrides.
 
 Yes, that's the problem. SetSystemUIMode doesn't prevent entering
 Exposé via that method. Please file a bug about that; we have the
 infrastructure in place finally in SnowLeopard to fix this, so we
 should be able to address the problem in a future release.
 
  Maybe there is a way to just set a window to be at the edges of the
 screen all the time, and then
 put the main window in front of that?
 
 I don't think I understand what you're proposing. In general, I don't
 think there's a way to prevent Exposé from occurring in this case,
 without just disabling the gesture in System Prefs.
 
 -eric
 


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Ken Thomases

On Aug 6, 2009, at 7:18 PM, Pierce Freeman wrote:

And is there any way to make reproduce the display capture effect  
without

using this or SetSystemUIMode.


I'm not quite clear on what you're saying here.  When you say without  
using this, do you mean without actually capturing the display?  Why  
don't you want to use the display capture API[1] if you're looking to  
achieve the capture of the display?


Regards,
Ken

[1] http://developer.apple.com/documentation/graphicsimaging/Reference/Quartz_Services_Ref/Reference/reference.html#//apple_ref/c/func/CGCaptureAllDisplaysWithOptions 



___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Eric Schlegel


On Aug 6, 2009, at 5:13 PM, Pierce Freeman wrote:


Hi Eric:

I'll make sure to file a big about that - hopefully it can get  
resolved
before shipment.  But, when using the key, it should stop Exposé,  
shouldn't

it?  I have also tested this and it still doesn't work.  Any ideas?


Hmm, yes, the keystroke to invoke Exposé should still be blocked. I  
can't say offhand why it wouldn't be.


And is there any way to make reproduce the display capture effect  
without
using this or SetSystemUIMode.  I am attempting to make a full  
screen app,
and don't want the user to have to disable this in the system  
preferences.


You can actually capture the display with the CGDisplayCapture API -  
Exposé can't be invoked when the display is captured. Otherwise, I  
don't think so.


-eric

___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-06 Thread Chilton Webb

Hi Eric,

On Aug 7, 2009, at 12:46 AM, Eric Schlegel wrote:

Hmm, yes, the keystroke to invoke Exposé should still be blocked. I  
can't say offhand why it wouldn't be.


I filed a bug on this originally in 2005 (it is still open), radar://4376456
In that specific case, Front Row can bypass kiosk mode, if the remote  
control is not deactivated in the System Prefs. I sent in a follow-up  
when Exposé shipped, because that also overrode kiosk mode. I don't  
see a radar for that one though, so it was probably sent in as a  
either a DTS incident, or an email to one of the engineers that wrote  
back regarding that radar bug.


My point here is that while I realize these are fairly specific  
issues, it can become an issue for anyone writing software that will  
be used in a kiosk-like environment.


I'd LOVE to see these resolved. Maybe there is still time to see that  
in Snow Leopard? ;-)


Thank you!
-Chilton Webb___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-05 Thread Ricky Sharp


On Aug 5, 2009, at 8:45 PM, Pierce Freeman wrote:

I am wondering if anyone knows of a way to disable Exposé in  
SystemUIMode.
I am using this class to create a kiosk-based application and don't  
want the
user to be able to switch between other windows.  If there isn't a  
way to do

this inside the class, is there another class that can accomplish this
instead?



Using SetSystemUIMode disables Expose in my app just fine.  I call it  
with these parameters:


OSStatus status = SetSystemUIMode (kUIModeAllHidden,  
kUIOptionDisableProcessSwitch);


There's a technote here which covers the options (although seems a bit  
outdated)


http://developer.apple.com/technotes/tn2002/tn2062.html

___
Ricky A. Sharp mailto:rsh...@instantinteractive.com
Instant Interactive(tm)   http://www.instantinteractive.com



___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Disabling Exposé in SystemUIMode

2009-08-05 Thread Pierce Freeman
Hi Ricky:

Which version of OS X are you using?  With the latest of Leopard, it just
doesn't seem to work.


On 8/5/09 7:34 PM, Ricky Sharp rsh...@mac.com wrote:

 
 On Aug 5, 2009, at 8:45 PM, Pierce Freeman wrote:
 
 I am wondering if anyone knows of a way to disable Exposé in
 SystemUIMode.
 I am using this class to create a kiosk-based application and don't
 want the
 user to be able to switch between other windows.  If there isn't a
 way to do
 this inside the class, is there another class that can accomplish this
 instead?
 
 
 Using SetSystemUIMode disables Expose in my app just fine.  I call it
 with these parameters:
 
 OSStatus status = SetSystemUIMode (kUIModeAllHidden,
 kUIOptionDisableProcessSwitch);
 
 There's a technote here which covers the options (although seems a bit
 outdated)
 
 http://developer.apple.com/technotes/tn2002/tn2062.html
 
 ___
 Ricky A. Sharp mailto:rsh...@instantinteractive.com
 Instant Interactive(tm)   http://www.instantinteractive.com
 
 
 


___

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/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com