Two sheets related questions
Two sheets related questions
- Subject: Two sheets related questions
- From: Huibert Aalbers <email@hidden>
- Date: Mon, 11 Jul 2005 17:58:47 -0500
Hi,
I am writing an application that behaves like Keynote or Pages. When
the app starts a new document is opened whit a sheet that allows the
user to select a template from a list. Everything works fine except:
1) When a a template icon receives a double-click I can detect it but
I would like to simulate a click on the default button. I guess that
the bes way to do that is to use NSEvent's (NSEvent
*)keyEventWithType:(NSEventType)type... however there are so many
parameters in this function that I have not ben able to successfully
use it. Does anyone have a working example?
2) I have noticed that when I have a document with an open sheet in
Keynote I can press Cmd-Q to quit the app but in my case the Sheet
seems to consume the event. How can I pass it to the application?
Thanks in advance,
Huibert
--
Viisit my home page at http://www.huibert-aalbers.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden