Re: Menu Item Key Equivalent

2011-08-05 Thread Bill Appleton
do you handle performKeyEquivalent: un your view? thx Bill On Fri, Aug 5, 2011 at 1:43 AM, Uli Kusterer witness.of.teacht...@gmx.netwrote: On 05.08.2011, at 08:49, Jens Alfke wrote: Photoshop has always used letter keys as commands to select tools, and most other image editors on Mac

Re: Receiving Unicode Input in NSView

2011-08-01 Thread Bill Appleton
On 2011/07/29, at 7:31, Bill Appleton wrote: Hi all, I have seen this issue come up a lot, but there isn't much information on how to receive unicode input in a NSView. (I know we are supposed to just type in a NSTextField but that is impossible in our situation where the app must run

Re: Running Cocoa from a dynamic library

2011-07-30 Thread Bill Appleton
Sadly, Cocoa and many of the frameworks on which it is based really do depend on the main thread and its run loop. Events have to be received there and its run loop has to be serviced (run) on a regular basis. this situation is basically the same on other platforms. the events come in on some

Receiving Unicode Input in NSView

2011-07-29 Thread Bill Appleton
Hi all, I have seen this issue come up a lot, but there isn't much information on how to receive unicode input in a NSView. (I know we are supposed to just type in a NSTextField but that is impossible in our situation where the app must run stand-alone and as a browser plugin). we used to call

Re: Running Cocoa from a dynamic library

2011-07-28 Thread Bill Appleton
You might try NPAPI, it is designed to let you draw on a surface and get events Your plugin runs in a separate process, and is scriptable by javascript best bill On Wed, Jul 27, 2011 at 8:02 AM, Guido Sales Calvano guidocalv...@yahoo.com wrote: Dear community, I'm building a project

Re: Receiving unicode keyboard input

2011-07-27 Thread Bill Appleton
' section in this document https://wiki.mozilla.org/NPAPI:CocoaEventModel. Aki On 2011/07/23, at 8:59, Bill Appleton wrote: Hi All, For an NPAPI plugin we need to receive Unicode keyboard input. We are calling interpretKeyEvents and receiving the insertText message, but if I type option

Re: Dialog Command Keys

2011-07-27 Thread Bill Appleton
On Tue, Jul 26, 2011 at 10:44 AM, Kyle Sluder kyle.slu...@gmail.com wrote: On Tue, Jul 26, 2011 at 10:30 AM, Bill Appleton billapple...@dreamfactory.com wrote: hi all i set the target and the action on my menu items -- this is so that i can get my handler called when someone selects a menu

Re: Dialog Command Keys

2011-07-27 Thread Bill Appleton
, at 11:26 AM, Bill Appleton wrote: hi all, oh man i hate to belabor this issue but i have studied every suggestion and the docs and i cannot figure this out the problem is that i cannot get command keys to work on dialog text, even dialogs run and managed by cocoa as suggested i set

Re: Dialog Command Keys

2011-07-27 Thread Bill Appleton
hi kyle i agree. we are in transition that direction, its great to see the mac growing in popularity it provides justification for the effort. best bill On Wed, Jul 27, 2011 at 12:13 PM, Kyle Sluder kyle.slu...@gmail.com wrote: On Wed, Jul 27, 2011 at 11:57 AM, Bill Appleton billapple

Re: Dialog Command Keys

2011-07-26 Thread Bill Appleton
in a dialog. Best On Mon, Jul 25, 2011 at 9:47 PM, Kyle Sluder kyle.slu...@gmail.com wrote: On Mon, Jul 25, 2011 at 1:43 PM, Bill Appleton billapple...@dreamfactory.com wrote: Hi all, Based on my app, the dialog boxes have to be created dynamically, so i can't use Interface Builder, so

Re: Dialog Command Keys

2011-07-26 Thread Bill Appleton
, but they DONT have any command key bindings, maybe that is the problem? i didn't create this menu in the first place thx On Tue, Jul 26, 2011 at 8:00 AM, Kyle Sluder kyle.slu...@gmail.com wrote: On Jul 26, 2011, at 7:52 AM, Bill Appleton billapple...@dreamfactory.com wrote: BUT my

Re: Dialog Command Keys

2011-07-26 Thread Bill Appleton
The main edit menu items are disabled when the dialog(s) come up. On Tue, Jul 26, 2011 at 8:23 AM, Kyle Sluder kyle.slu...@gmail.com wrote: On Jul 26, 2011, at 8:09 AM, Bill Appleton billapple...@dreamfactory.com wrote: And when i right-click in them i get a clever menu with search

Re: Dialog Command Keys

2011-07-26 Thread Bill Appleton
that the main app menus need to be enabled when the dialogs are up? the dialogs are not using the main app menu system at that time... thanks in advance On Tue, Jul 26, 2011 at 8:56 AM, Joar Wingfors j...@joar.com wrote: On 26 jul 2011, at 08:09, Bill Appleton wrote: There ARE cut, copy

Re: Dialog Command Keys

2011-07-26 Thread Bill Appleton
have a text field up on a dialog with focus it just responds to control-x and cuts the text. It doesn't matter what is happening in the application menus. On Tue, Jul 26, 2011 at 9:17 AM, Joar Wingfors j...@joar.com wrote: On 26 jul 2011, at 09:03, Bill Appleton wrote: The items

Re: Dialog Command Keys

2011-07-26 Thread Bill Appleton
(cocoa is running) also has this problem. On Tue, Jul 26, 2011 at 9:29 AM, Andy Lee ag...@mac.com wrote: On Jul 26, 2011, at 12:03 PM, Bill Appleton wrote: The items in the main menu DO have the standard key bindings, they are disabled when the modal dialogs come up That is odd. My question

Re: Dialog Command Keys

2011-07-26 Thread Bill Appleton
hi all i set the target and the action on my menu items -- this is so that i can get my handler called when someone selects a menu item i will re-read the event handler docs with regard to menu items (no keyboard issues) and see if that helps thx bill On Tue, Jul 26, 2011 at 10:02 AM, Joar

Re: Dialog Command Keys

2011-07-26 Thread Bill Appleton
is with all dialogs, even cocoa get file and put file dialogs that are not dynamically built On Tue, Jul 26, 2011 at 2:38 PM, Gregory Weston gwes...@mac.com wrote: Bill Appleton wrote: Based on my app, the dialog boxes have to be created dynamically, so i can't use Interface Builder

Receiving unicode keyboard input

2011-07-25 Thread Bill Appleton
? Unfortunately we cannot use all the core Text stuff because (as mentioned) this is an NPAPI plugin and we don't even have access to the output view or window. Best, Bill Appleton ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Receiving unicode keyboard input

2011-07-25 Thread Bill Appleton
Hi All, For an NPAPI plugin we need to receive Unicode keyboard input. We are calling interpretKeyEvents and receiving the insertText message, but if I type option-e (for example) we are not getting the accented-e character. Can anyone shed some light on the right way to get unicode characters?

Dialog Command Keys

2011-07-25 Thread Bill Appleton
Hi all, Based on my app, the dialog boxes have to be created dynamically, so i can't use Interface Builder, so they are assembled out of cocoa controls as needed. My dialogs beep when i control-x to cut some selected text What is the simple way for my dialog window to pass these command keys

Re: Problem with stopModalWithCode on a different thread

2010-06-23 Thread Bill Appleton
even know. its all software. On Wed, Jun 23, 2010 at 12:19 AM, Jens Alfke j...@mooseyard.com wrote: On Jun 22, 2010, at 7:49 PM, Bill Appleton wrote: i am pointing out that there is a giant, giant, giant difference between plugins that impose themselves on the user and those

Re: Memory management on returning nil in init

2010-06-23 Thread Bill Appleton
i type lots of stuff all the way out its easier to debug and the compilers are very good at optimizing that sort of thing there is a big balance between efficiency, size, speed, clarity, etc its usually clarity that is in short supply On Wed, Jun 23, 2010 at 7:42 PM, Scott Anguish

Re: Problem with stopModalWithCode on a different thread

2010-06-22 Thread Bill Appleton
intercept a class message in general. Is that possible? thanks in advance, bill appleton On Mon, Jun 21, 2010 at 7:56 PM, Charles Srstka cocoa...@charlessoft.comwrote: On Jun 21, 2010, at 7:33 PM, Jens Alfke wrote: In general, if you have some kind of background activity that needs to call

Re: Problem with stopModalWithCode on a different thread

2010-06-22 Thread Bill Appleton
, at 1:54 PM, Bill Appleton wrote: Hi all, Thanks for the tips. i have verified that this code actually IS running on the main thread, i was wrong about that in my original message. Here is the situation. WebKit launches WebKitPluginHost.app and that is the process that runs my NPAPI plugin

Re: Problem with stopModalWithCode on a different thread

2010-06-22 Thread Bill Appleton
Hi All, Not sure I understand all the issues but this should be good news for Cocoa lovers: 1) When Safari runs as 64 bit it loads and runs a 32 bit or 64 bit Cocoa NPAPI plugin just fine. The 32 bit version of Safari will only run 32 bit NPAPI plugins. 2) The exact same 32 bit plugin for

Re: Problem with stopModalWithCode on a different thread

2010-06-22 Thread Bill Appleton
, 2010, at 4:14 PM, Bill Appleton wrote: Not sure I understand all the issues but this should be good news for Cocoa lovers: 1) When Safari runs as 64 bit it loads and runs a 32 bit or 64 bit Cocoa NPAPI plugin just fine. The 32 bit version of Safari will only run 32 bit NPAPI plugins. 2

Re: Problem with stopModalWithCode on a different thread

2010-06-22 Thread Bill Appleton
then what will you be able to do? nothing? compare what is possible on windows and mac, they can't get too far out of line. this IS sandboxed --- its in a separate process On Tue, Jun 22, 2010 at 4:02 PM, Jens Alfke j...@mooseyard.com wrote: On Jun 22, 2010, at 2:40 PM, Charles Srstka wrote:

Re: Problem with stopModalWithCode on a different thread

2010-06-22 Thread Bill Appleton
. like the dancing mortgage guy on cnn. did you want to see him? best, bill On Tue, Jun 22, 2010 at 4:59 PM, Jens Alfke j...@mooseyard.com wrote: On Jun 22, 2010, at 4:47 PM, Bill Appleton wrote: this IS sandboxed --- its in a separate process That’s not what “sandboxed” means. It refers

Re: Problem with stopModalWithCode on a different thread

2010-06-22 Thread Bill Appleton
...@mooseyard.com wrote: On Jun 22, 2010, at 5:28 PM, Bill Appleton wrote: so different vendors whip out security for different reasons. on mac, it is to prevent browser crashes, thus the separate process. on windows, it is all about preventing system corruption, thus protected mode This isn’t

Problem with stopModalWithCode on a different thread

2010-06-21 Thread Bill Appleton
Hi All, In 64 bit Safari our NPAPI plugin needs to use a few system dialogs for opening files, printing, etc. These system dialogs call stopModalWithCode to deliver the result of the dialog interaction back to the runModalForWindow function But the stopModalWithCode function does not work on

six things I wasn't able to do with Cocoa

2010-05-28 Thread Bill Appleton
way? *6)** **I **can't get the height of some wrapped text* I had to use the layout manager and some major rocket science to get this to work right. I'm not saying Text Edit was great, but at least it knows how tall the text field is. Thanks! Bill Appleton

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Bill Appleton
-- but basically anyone trying to port a large code base with printing is going to run right into this issue unless i'm missing something best, bill On Fri, May 28, 2010 at 9:04 AM, Kevin Wojniak kain...@kainjow.com wrote: On May 27, 2010, at 12:43 PM, Bill Appleton wrote: *4

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Bill Appleton
the height of some wrapped text* I had to use the layout manager and some major rocket science to get this to work right. I'm not saying Text Edit was great, but at least it knows how tall the text field is. Thanks! Bill Appleton ___ Cocoa

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Bill Appleton
On May 28, 2010, at 9:43 AM, Bill Appleton wrote: Hi Chaitanya, that code always returns a size of 100, 100 for every movie I try. really. and then the poster or frame is really pixelated because it is coming from such a small source. i am surely missing something here

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Bill Appleton
can specify the image size you want returned in the attributes dictionary (along with the image format). On May 28, 2010, at 2:55 PM, Bill Appleton wrote: the remaining problem is that the movie posetr returns a size of 100 x 100 so when i capture the poster it is really pixelated

Re: the case of the missing scroll bar

2010-05-01 Thread Bill Appleton
and calling the resize routine right after that. that is why one of the bars was hidden -- it was a horizontal bar in a vertical slot, or vice verse. best, bill appleton On Fri, Apr 30, 2010 at 12:04 PM, Bill Appleton billapple...@dreamfactory.com wrote: hi anyone out there, i am having

Re: Help with text input

2010-04-30 Thread Bill Appleton
on cocoa to determin raw key (physical key) input? thanks, bill appleton On Thu, Apr 29, 2010 at 5:47 PM, Douglas Davidson ddavi...@apple.comwrote: On Apr 29, 2010, at 5:26 PM, Charles Srstka wrote: On Apr 29, 2010, at 5:38 PM, Jens Alfke wrote: event.isARepeat; } I

Re: Help with text input

2010-04-30 Thread Bill Appleton
@bigpond.com wrote: On 01/05/2010, at 12:12 AM, Bill Appleton wrote: what is the best way on cocoa to determin raw key (physical key) input? I don't know, but I wonder if this is the right question. If you look at the methods of NSResponder, you'll see that most functional keys

Re: Help with text input

2010-04-30 Thread Bill Appleton
equivalent now that is also getting typed does anyone know how to filter between characters that should be typed other stuff? thanks, bill On Fri, Apr 30, 2010 at 8:14 AM, Shawn Erickson shaw...@gmail.com wrote: On Fri, Apr 30, 2010 at 7:12 AM, Bill Appleton billapple...@dreamfactory.com

Re: Help with text input

2010-04-30 Thread Bill Appleton
hi all, don't i need to use interpretKeyEvents to gather the key events until insertText is called? wow there is very little information on that thx bill On Fri, Apr 30, 2010 at 8:55 AM, Shawn Erickson shaw...@gmail.com wrote: On Fri, Apr 30, 2010 at 8:48 AM, Bill Appleton billapple

Re: Help with text input

2010-04-30 Thread Bill Appleton
to interpretkeyevents forgetting it thanks, bill On Fri, Apr 30, 2010 at 9:32 AM, Charles Srstka cocoa...@charlessoft.comwrote: On Apr 30, 2010, at 11:08 AM, Bill Appleton wrote: don't i need to use interpretKeyEvents to gather the key events until insertText is called? Yep, just do something

Re: Help with text input

2010-04-30 Thread Bill Appleton
wow thanks everyone so much this is working great! On Fri, Apr 30, 2010 at 10:04 AM, Douglas Davidson ddavi...@apple.comwrote: On Apr 30, 2010, at 9:59 AM, Charles Srstka wrote: On Apr 30, 2010, at 11:41 AM, Douglas Davidson wrote: Here is the normal sequence when a text-handling

Re: Help with text input

2010-04-30 Thread Bill Appleton
mine too :) On Fri, Apr 30, 2010 at 10:13 AM, Charles Srstka cocoa...@charlessoft.comwrote: On Apr 30, 2010, at 12:07 PM, Bill Appleton wrote: wow thanks everyone so much this is working great! No problem. World Builder was one of my favorite things of my childhood. :-) Charles

Re: Strange NSScroller sizing behaviour

2010-04-30 Thread Bill Appleton
, and a vertical bar stuck in the horizontal slot the slots are correct in size, but the bar hasn't re-jiggered to fit the slot does anyone know what is going on? thanks, bill On Thu, Apr 29, 2010 at 12:08 PM, Bill Appleton billapple...@dreamfactory.com wrote: hi Jo, i am also working

the case of the missing scroll bar

2010-04-30 Thread Bill Appleton
of the vertical slot, and a vertical bar stuck in the horizontal slot the slots are correct in size, but maybe the bar hasn't re-jiggered to fit the slot does anyone know what is going on? thanks, bill appleton ___ Cocoa-dev mailing list (Cocoa-dev

Re: Strange NSScroller sizing behaviour

2010-04-29 Thread Bill Appleton
calcSize and sizeToFit? thx bill appleton On Thu, Apr 29, 2010 at 4:59 AM, Jo Meder jome...@ihug.co.nz wrote: Hi, I'm using NSScrollers directly, e.g. not in an NSScrollView. Using 10.6.3 (haven't checked anything else mind you) I'm seeing some strange behaviour when I try and resize

Help with text input

2010-04-29 Thread Bill Appleton
: kEventRawKeyRepeat: -- this let me get changes in modifier keys, and the key repeat message i have been looking in NSResponder and see some of this, but how do i get the higher level messages like the unicode string and key repeats ? thanks, bill appleton

Re: white screen windows at first

2010-04-28 Thread Bill Appleton
hi all, i have been working on this a lot have some new information previously i was using carbon and core graphics when i draw to the screen, sometimes it is in the update event but sometimes it was in response to a mouse click, or some other event this always worked: *

Re: white screen windows at first

2010-04-28 Thread Bill Appleton
on non-drawRect graphics so i think if i remember when this is called from the drawRect loop versus other times and add this code it will (kinda) work. is there somebody out there that knows what is really going on? thx bill On Wed, Apr 28, 2010 at 11:29 AM, Bill Appleton billapple

Re: NSApplicationMain question

2010-04-27 Thread Bill Appleton
you are right, that will work, thanks! On Tue, Apr 27, 2010 at 2:57 AM, Paul Sanders p.sand...@alpinesoft.co.ukwrote: are you saying there is a way to set the min, max and value on an nsscroller? sorry, not clear on that Why do you need min and max anyway? The current position is

menu madness with retain count

2010-04-27 Thread Bill Appleton
wrong? thanks bill appleton ___ 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

Re: menu madness with retain count

2010-04-27 Thread Bill Appleton
://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html --Graham On 27/04/2010, at 11:46 PM, Bill Appleton wrote: hi all, i like to create some menus, set them as the main menu bar, then maybe delete them, and create some more menus, use them, etc

Re: white screen windows at first

2010-04-27 Thread Bill Appleton
altogether -- can't resize it, etc. thanks, bill On Tue, Apr 27, 2010 at 10:31 AM, vincent habchi vi...@macports.org wrote: Le 26 avr. 2010 à 23:35, Bill Appleton a écrit : hi all, when my windows are first shown there is no drawing inside, they are white but when i slowly move

Re: white screen windows at first

2010-04-27 Thread Bill Appleton
: On 27.04.2010, at 00:10, Bill Appleton wrote: i added flush window to the drawRect method -- no help it IS calling draw rect right before the window is shown then you see it --- all white Are you using multiple threads? I got effects like that when I was screwing up AppKit state by messing

Re: menu madness with retain count

2010-04-27 Thread Bill Appleton
Over the years, I think that looking at the retain count is the #1 cause of hairpulling on this list. it's too bad this is unreliable an object should be able to return this info and it isn't simple, it gets convoluted in process if i add a submenu to an item then it is retained by the menu

Re: white screen windows at first

2010-04-27 Thread Bill Appleton
but for some reason i am using core graphics wrong or didn't set it up right to be used does this make sense to anybody? thanks, bill On Tue, Apr 27, 2010 at 1:41 PM, Uli Kusterer witness.of.teacht...@gmx.netwrote: On 27.04.2010, at 00:10, Bill Appleton wrote: i added flush window

Re: white screen windows at first

2010-04-27 Thread Bill Appleton
out by looking at the window server log in the console. Jesper On Apr 27, 2010, at 4:01 PM, Bill Appleton wrote: i have tried that way *CGContextRef context = [[NSGraphicsContext currentContext] graphicsPort]; * and this way * NSWindow *mywindow; CGContextRef context = [[mywindow

Re: NSApplicationMain question

2010-04-26 Thread Bill Appleton
is common, i need a scroll bar that behaves like a puppet DOES nothing thanks again, bill appleton On Sun, Apr 25, 2010 at 4:05 PM, Charles Srstka cocoa...@charlessoft.comwrote: On Apr 25, 2010, at 6:00 PM, Klaus Backert wrote: On 25 Apr 2010, at 22:28, Charles Srstka wrote: The best

Re: NSApplicationMain question

2010-04-26 Thread Bill Appleton
it needs to look like a scroll bar... is that possible? On Mon, Apr 26, 2010 at 6:54 AM, Jack Nutting jnutt...@gmail.com wrote: On Mon, Apr 26, 2010 at 3:51 PM, Bill Appleton billapple...@dreamfactory.com wrote: did anyone have some more color on question (2) the need to create a raw

Re: NSApplicationMain question

2010-04-26 Thread Bill Appleton
hi all, so in the NSScroler docs there is no way to set the min, max, and value -- that is the problem there is a way to set the proportion of the page... or am i missing something? thx On Mon, Apr 26, 2010 at 7:06 AM, Paul Sanders p.sand...@alpinesoft.co.ukwrote: did anyone have some

conflict between Core Graphics and NSView graphics

2010-04-26 Thread Bill Appleton
, and then setting the CG font and size, etc. like before but it is as if I need to also set the NSFont or something like that other graphics (lines, bitmaps, etc.) are drawing correctly can someone shed some light on this and/or point me to some documentation? thanks, bill appleton

Re: conflict between Core Graphics and NSView graphics

2010-04-26 Thread Bill Appleton
, How are you rendering the text ? We recommend sticking to Cocoa text rendering API in order to support proper Unicode rendering. Thanks, Aki On Apr 26, 2010, at 12:24 PM, Bill Appleton wrote: hi all i converted a bunch of quickdraw code to core graphics successfully -- it worked

Re: conflict between Core Graphics and NSView graphics

2010-04-26 Thread Bill Appleton
(CGContextSetTextPosition). You need to reset the text matrix before calling CGContextSetTextPosition, or you could just update the text position using CGContextSetTextMatrix. Aki On Apr 26, 2010, at 12:39 PM, Bill Appleton wrote: hi Aki, i am using CGContextShowGlyphsWithAdvances i have a very large

Re: white screen windows at first

2010-04-26 Thread Bill Appleton
: On Apr 26, 2010, at 3:35 PM, Bill Appleton wrote: when my windows are first shown there is no drawing inside, they are white but when i slowly move the mouse over to the close box and the close box responds to the mouse hover suddenly they draw their content properly does this ring any

Re: white screen windows at first

2010-04-26 Thread Bill Appleton
performance and, depending on exactly what is being drawn when, can cause 'screen flash'. Paul Sanders. - Original Message - From: Bill Appleton billapple...@dreamfactory.com To: cocoa-dev list cocoa-dev@lists.apple.com Sent: Monday, April 26, 2010 10:35 PM Subject: white screen windows

Re: conflict between Core Graphics and NSView graphics

2010-04-26 Thread Bill Appleton
cocoa...@mikeabdullah.netwrote: On 26 Apr 2010, at 20:24, Bill Appleton wrote: hi all i converted a bunch of quickdraw code to core graphics successfully -- it worked now i am converting a bunch of carbon UI code to cocoa but when I draw text, my fonts are wrong and my font sizes

Re: NSApplicationMain question

2010-04-26 Thread Bill Appleton
are you saying there is a way to set the min, max and value on an nsscroller? sorry, not clear on that thx bill On Mon, Apr 26, 2010 at 6:46 PM, Charles Srstka cocoa...@charlessoft.comwrote: On Apr 26, 2010, at 9:32 AM, Paul Sanders wrote: If you want to support Tiger, you will have to

Re: NSApplicationMain question

2010-04-25 Thread Bill Appleton
hi all, i wanted to do a reality check on some of my code ask some specific questions. 1) how do i get that nifty application/preferences/services menu? i create my menus dynamically (not nibs) 2) i need to create a raw NSScroller and control it like a NSSlider (min, max, value, proportion)

Re: NSApplicationMain question

2010-04-23 Thread Bill Appleton
by this interface which runs under WebKit / Safari / Firefox. so its a real world scenario instead off the best of all possible worlds but its great to meet so many knowledgeable people, i'll have some more tangible questions as this progresses thanks, bill appleton On Thu, Apr 22, 2010 at 6:39 PM

Re: NSApplicationMain question

2010-04-23 Thread Bill Appleton
, 2010 at 9:00 AM, Jens Alfke j...@mooseyard.com wrote: On Apr 23, 2010, at 7:08 AM, Bill Appleton wrote: so i have made a lot of efforts to learn cocoa, but our product is an NPAPI browser plugin Whoa, hold on, stop the music — That changes things. You’re not writing an app, then. So you

NSApplicationMain question

2010-04-22 Thread Bill Appleton
hi all, i am converting from carbon to cocoa with NSApplicationMain i need to know how to call some startup code before receiving events and upon quit i need to call some shutdown code are there some docs on this issue? examples? advice? thanks, bill appleton

Re: NSApplicationMain question

2010-04-22 Thread Bill Appleton
Kartik Reddyreddy karthikredd...@gmail.com wrote: Try the NSApplicationDelegate . On Apr 21, 2010, at 6:50 PM, Bill Appleton wrote: hi all, i am converting from carbon to cocoa with NSApplicationMain i need to know how to call some startup code before receiving events use

Re: NSApplicationMain question

2010-04-22 Thread Bill Appleton
...?? or soem specific events?? you get key and mouse events inside NSView. If you are looking to capture events at NSWindow or NSApp level override sendevent method - (void) sendEvent:(NSEvent *)cocoaEvent On Apr 22, 2010, at 4:34 PM, Bill Appleton wrote: hi all, thanks

Re: NSApplicationMain question

2010-04-22 Thread Bill Appleton
with NSWindow and watch the carnage ensue thx, bill On Thu, Apr 22, 2010 at 3:18 PM, Shawn Erickson shaw...@gmail.com wrote: On Thu, Apr 22, 2010 at 1:34 PM, Bill Appleton billapple...@dreamfactory.com wrote: hi all, thanks for the feedback i wrote a subclass for NSWindow