Handling mouse events on transparent window conditionally

2011-05-31 Thread Deepa
Hi, I am developing an Desktop application in which I should be able to take mouse events on transparent window. But, transparent NSWindow does not take mouse events. So, I have set setIgnoreMouseEvents to NO which allows the transparent window to take mouse events. I have the problem in

Re: Handling mouse events on transparent window conditionally

2011-05-31 Thread Ken Thomases
On May 31, 2011, at 1:33 AM, Deepa wrote: I am developing an Desktop application in which I should be able to take mouse events on transparent window. But, transparent NSWindow does not take mouse events. So, I have set setIgnoreMouseEvents to NO which allows the transparent window to

Re: Why does NSArray count return NSUInteger?

2011-05-31 Thread julius
On 31 May 2011, at 10:00, Alejandro Rodríguez wrote: Hey Julius, The reason for using NSUInteger on such a high level framework as Cocoa may not seem relevant but for the sake of completeness let me go down a road less explored by many of the other answers. I think using NSUInteger vs

Re: Application Design

2011-05-31 Thread Dan Hopwood
Thanks for all your answers, they make complete sense. I have one more related question. I have developed a custom, stateful WebServiceInterface object, which manages all connection requests made to an XML-RPC server. Being stateful, I initialise this object when the app launches and at the

Re: Why does NSArray count return NSUInteger?

2011-05-31 Thread Graham Cox
On 31/05/2011, at 7:36 PM, julius wrote: On 31 May 2011, at 10:00, Alejandro Rodríguez wrote: It's more than likely that it has to do with the underlying implementation of NSArray which is surely based on C arrays. NSArray is toll-free bridged with CFArray which being part of

Stalling until notification is received

2011-05-31 Thread Indragie Karunaratne
Hi all, I need to create a simple command line application that will stall (as in keep running without exiting) until it receives a certain distributed notification via NSDistributedNotificationCenter. What would be the best way to go about doing this? I assume I'd have to have a separate

Re: Stalling until notification is received

2011-05-31 Thread Ken Thomases
On May 31, 2011, at 9:03 AM, Indragie Karunaratne wrote: I need to create a simple command line application that will stall (as in keep running without exiting) until it receives a certain distributed notification via NSDistributedNotificationCenter. What would be the best way to go about

Re: How can I work with code completion in Xcode 4?

2011-05-31 Thread Kyle Sluder
On Tue, May 31, 2011 at 8:00 AM, Guillermo Moral guillermo.mo...@leapfactor.com wrote: How can I work with code completion in Xcode 4 when I create a new project using a Template and have a static library. This is a tools question; it is more appropriate for the xcode-users list. --Kyle Sluder

Re: Autoreleased Data In Cocoa

2011-05-31 Thread Bing Li
Dear Nick and all, Thanks so much for your reply! I am still a new Cocoa developer so that I need to improve during the programming procedure. Now I modify the code and it works fine. The code is as follows. But I still have a question. If the autoreleased data will keep alive until the pool is

Re: Autoreleased Data In Cocoa

2011-05-31 Thread Nick Zitzmann
On May 31, 2011, at 9:32 AM, Bing Li wrote: But I still have a question. If the autoreleased data will keep alive until the pool is drained, what if the data is autoreleased in a Cocoa auto-created pool? It will keep alive unless the process is shutdown? No. The framework makes and drains

Re: Autoreleased Data In Cocoa

2011-05-31 Thread Matt Patenaude
The Cocoa-created autorelease pool is automatically drained at an unspecified time, typically every few iterations of the run loops. You can trust it to do the right thing. -Matt Sent from my iPhone On May 31, 2011, at 8:32 AM, Bing Li lbl...@gmail.com wrote: Dear Nick and all, Thanks so

Fuzzy string matching

2011-05-31 Thread Eric E. Dolecki
Wondering if anyone knows of or has an Obj-C Class that can provide levels of fuzzy string matching... looking for % match or something similar. I have something now but it's returning results that aren't nearly accurate enough for me to employ with confidence. Thank you, Eric Google Voice:

Re: Fuzzy string matching

2011-05-31 Thread Dave DeLong
I've used this in the past with pretty good results: http://weblog.wanderingmango.com/?pg=2 HTH, Dave Sent from my iPad On May 31, 2011, at 9:32 AM, Eric E. Dolecki edole...@gmail.com wrote: Wondering if anyone knows of or has an Obj-C Class that can provide levels of fuzzy string

Re: Fuzzy string matching

2011-05-31 Thread Eric E. Dolecki
Thanks - I'm not sure that's going to be flexible enough for me or not, but I'll give it a go. Thanks again! Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki http://blog.ericd.net On Tue, May 31, 2011 at 12:47 PM, Dave DeLong

Re: Cocoa-preferred licensing key style?

2011-05-31 Thread Todd Heberlein
Thanks everyone! This has definitely helped. Todd ___ 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

Re: Application Design

2011-05-31 Thread Steve Christensen
How about providing a singleton class method? Then you just include WebServiceInterface.h where needed. No need to have a global variable. @implementation WebServiceInterface ... + (WebServiceInterface*) sharedInterface { static WebServiceInterface* sharedInstance = nil; if

Re: Fuzzy string matching

2011-05-31 Thread Heath Borders
CLucene might be a bit heavy, but it works great for me. -Heath From my iTouch4 On May 31, 2011, at 12:02 PM, Eric E. Dolecki edole...@gmail.com wrote: Thanks - I'm not sure that's going to be flexible enough for me or not, but I'll give it a go. Thanks again! Google Voice: (508) 656-0622

How to set keyboard type for custom view?

2011-05-31 Thread Jeffrey Walton
Hi All, I have a view that accepts input using UIKeyInput. The VC's viewWillAppear: calls [myHiddenView becomeFirstResponder] which shows the alphanumeric keyboard. I get input as expected through insertText: and deleteBackwards:. How does one change the keyboard type to UIKeyboardTypeNumberPad?

Re: How to set keyboard type for custom view?

2011-05-31 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/31/11 12:23 PM, Jeffrey Walton wrote: Hi All, I have a view that accepts input using UIKeyInput. The VC's viewWillAppear: calls [myHiddenView becomeFirstResponder] which shows the alphanumeric keyboard. I get input as expected through

Re: How to set keyboard type for custom view?

2011-05-31 Thread Jeffrey Walton
On Tue, May 31, 2011 at 3:49 PM, Conrad Shultz con...@synthetiqsolutions.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/31/11 12:23 PM, Jeffrey Walton wrote: Hi All, I have a view that accepts input using UIKeyInput. The VC's viewWillAppear: calls [myHiddenView

iOS: getting the shakes

2011-05-31 Thread Graham Cox
In my IOS app, I'm overriding -motionBegan:withEvent: in my view controller, trying to receive shake events. But it's never called (iOS simulator, version 4.3). Is there something else I need to do to specifically enable delivery of shake events? I have scoured the docs but didn't find

Re: iOS: getting the shakes

2011-05-31 Thread Eli Bach
On May 31, 2011, at 9:35 PM, Graham Cox wrote: In my IOS app, I'm overriding -motionBegan:withEvent: in my view controller, trying to receive shake events. But it's never called (iOS simulator, version 4.3). Is there something else I need to do to specifically enable delivery of shake

Re: iOS: getting the shakes

2011-05-31 Thread David Rowland
It's an iOS device, not a computer. No mouse, no keyboard. I think you want, - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event You make a subclass of UIView, instantiate it, and implement the above within that subclass. David On May 31, 2011, at 8:42 PM, Eli Bach

Re: iOS: getting the shakes

2011-05-31 Thread Graham Cox
On 01/06/2011, at 1:42 PM, Eli Bach wrote: Well, how hard did you shake your computer? You have to actually shake the computer, as neither your mouse nor your keyboard have a motion sensor. Eli You're a funny guy. :) I assume you are being funny: the simulator has a shake menu command

NSOpenPanel not honoring some settings

2011-05-31 Thread Tito Ciuro
Hello, I'm trying to display an NSOpenPanel that only allows to select plist files. I have the following code in place: NSOpenPanel *openPanel= [NSOpenPanel openPanel]; [openPanel setResolvesAliases:YES]; [openPanel setCanChooseDirectories:NO]; [openPanel

Re: iOS: getting the shakes

2011-05-31 Thread David Rowland
That should be a subclass of UIResponder. You don't need a UIView, but I suppose you could use an existing one. D On May 31, 2011, at 8:55 PM, David Rowland wrote: It's an iOS device, not a computer. No mouse, no keyboard. I think you want, - (void)motionEnded:(UIEventSubtype)motion

Re: iOS: getting the shakes

2011-05-31 Thread Graham Cox
On 01/06/2011, at 1:55 PM, David Rowland wrote: I think you want, - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event You make a subclass of UIView, instantiate it, and implement the above within that subclass. Hmm, thanks but it's still not called. I have a

Re: iOS: getting the shakes

2011-05-31 Thread Roland King
Is your uiresponder the first responder? On Jun 1, 2011, at 11:35, Graham Cox graham@bigpond.com wrote: In my IOS app, I'm overriding -motionBegan:withEvent: in my view controller, trying to receive shake events. But it's never called (iOS simulator, version 4.3). Is there

Re: NSOpenPanel not honoring some settings

2011-05-31 Thread Quincey Morris
On May 31, 2011, at 21:00, Tito Ciuro wrote: [openPanel setAllowedFileTypes:[NSArray arrayWithObject:@plist]]; [openPanel beginSheetForDirectory:NSHomeDirectory() file:nil modalForWindow:window modalDelegate:self didEndSelector:@selector(didEndImportSheet:returnCode:contextInfo:)

[SOLVED] Re: iOS: getting the shakes

2011-05-31 Thread Graham Cox
On 01/06/2011, at 2:19 PM, Roland King wrote: s your uiresponder the first responder? Aha! No, it wasn't :) Thanks - it's working now. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: NSOpenPanel not honoring some settings

2011-05-31 Thread Tito Ciuro
Hi Quincey, On May 31, 2011, at 9:35 PM, Quincey Morris wrote: On May 31, 2011, at 21:00, Tito Ciuro wrote: [openPanel setAllowedFileTypes:[NSArray arrayWithObject:@plist]]; [openPanel beginSheetForDirectory:NSHomeDirectory() file:nil modalForWindow:window modalDelegate:self