Re: Localization for nibs

2012-02-22 Thread Jerry Krinock
I believe that the single nib approach has been made more viable by Auto Layout in Lion, and expect to see more developers using single nib in the future. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

NSStepper - useless?

2012-02-22 Thread William Squires
Okay, 'nuther dumb question. How do I hook the different arrows in an NSStepper to actions in my view controller? Or how do I ask (id)sender which arrow was clicked? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

NSTextView and -becomeFirstResponder

2012-02-22 Thread Jim McGowan
Hi, I have an NSTextView subclass and I need it to inform another object of when it becomes first responder - along the lines of overriding -becomeFirstResponder something along the lines of this: - (BOOL)becomeFirstResponder { [someOtherObject textViewBecameFirstResponer:self];

Re: __block __weak - am I doing this right?

2012-02-22 Thread Matt Neuburg
On Sat, 18 Feb 2012 16:45:56 -0800, Greg Parker gpar...@apple.com said: Precisely. clang now warns about this case (or will soon; I don't know which release of Xcode has this). test.m:9:33: warning: variable 'x' is uninitialized when captured by block [-Wuninitialized] id x = [Foo

Re: How EXC_BAD_ACCESS in objc_msgSend if receiver, parms OK?

2012-02-22 Thread Matt Neuburg
On Fri, 17 Feb 2012 16:06:01 -0800, Greg Parker gpar...@apple.com said: No. objc_msgSend() also reads from the class's method cache and method list. It's possible for the receiver object to be valid, but still crash because of a memory smasher that hit the method cache or method list It's also

Re: My runloop-based async code breaks with GCD

2012-02-22 Thread Matt Neuburg
On Sat, 18 Feb 2012 01:24:00 -0500, Dave Keck davek...@gmail.com said: The root of your problem seems to be your assumption that GCD runs the run loop. NSURLConnection case: the delegate methods aren't called because NSURLConnection machinery requires the run loop to be run, which GCD isn't

Re: binding a binding?

2012-02-22 Thread Seth Willits
On Feb 19, 2012, at 3:11 PM, William Squires wrote: Now, I can bind the label's value to File's Owner's self.stringInterval without Xcode/IB complaining. I think you can all see where this is going... yep, the label doesn't update because it's static; there's nothing to tell the label to

Re: How EXC_BAD_ACCESS in objc_msgSend if receiver, parms OK?

2012-02-22 Thread Sean McBride
On Fri, 17 Feb 2012 16:06:01 -0800, Greg Parker said: Those of us who wrote objc_msgSend() can sometimes track down the problem by finding which data structure was damaged and examining the bad data. Everyone else should try Zombies, Guard Malloc, and Malloc Scribble. And valgrind... if it works

Re: AXUIElementPostKeyboardEvent - not sending key presses to Safari/TextEdit in Lion

2012-02-22 Thread Mark Munz
Don't hold your breath for a new API. Apple does not want sandboxed apps to communicate with each other except through extremely limited means: OS X Services (which is limited to static Services only) and what appears to be a one-way mechanism defined under Mtn Lion (not sure what part of it is

allow users to opt-out of iCloud

2012-02-22 Thread Martin Hewitson
Dear list, If an app uses iCloud to sync data between machines, should we provide the user a check-box to opt-out of iCloud syncing? Is there are recommended best practice here? What are others doing? Reading the iCloud documentation I find this phrasing: What user interface support is

[ANN] Receigen, a smart code generator for Mac App Store receipt and InApp purchase validation

2012-02-22 Thread Laurent Etiemble
Hello, Receigen has been updated and now supports InApp purchase validation. Receigen is a smart code generator for both Mac App Store receipt and InApp purchase validation. The generated code is ready-to-integrate, fully debuggable and integrates various protection mechanisms to harden the

Choosing correct ArrayController depending on active TableView

2012-02-22 Thread Mikael Wämundson
Hi, I have two ArrayControllers in IB, ArrayControllerA and ArrayControllerB, who's content are setup to show in two TableViews, TableViewA and TableViewB. Pressing a button in the interface will perform some actions on the selected objects from TableViewA or TableViewB. I can of course select

Sudden and hard to reproduce crashes in libcache

2012-02-22 Thread Dragan Milić
First of all, I apologise if this is not the right topic for this list. Some beta testers of an application I'm working on experience rather strange and sudden crashes, very often when the application is doing nothing, just sitting idle in the background. The crash happens in a thread named

help with usb

2012-02-22 Thread ronald b. kopelman
I have a usb glucometer that keeps the user's blood sugar level in a database on the device. The data base file does not appear on the thumb drive part of the device but I would like to find it use it. This involves learning how to program a usb device. I expect to do this, of course

Issue with NSAlert in ARC !!

2012-02-22 Thread Naresh Kongara
HI, I'm working on a Cocoa Desktop application, which we recently migrated from Manual memory to ARC. Application is sometimes crashing when the alert is closed. Here is the crash log and stack trace. *** -[NSPanel release]: message sent to deallocated instance 0x111c74a60 #0

How can NSView say which keys it actually used?

2012-02-22 Thread Vojtěch Meluzín
Hi, I have a problem in an AudioUnit plugin with NSView GUI - it takes the keyboard routines to get info about keys being pressed. But there actually 2 crazy cases in different hosts : 1) in Logic it blocks the spacebar - I need when user presses spacebar to let logic know about that, not use it

I added an exception breakpoint to my app...

2012-02-22 Thread R
and now see: Catchpoint 2 (throw)Pending breakpoint 1 - objc_exception_throw resolved No further details. The app appears to be fine with no errors or warnings. Is this a problem? (SnowLeopard Xcode 4) ___ Cocoa-dev mailing list

Tab view and radio buttons

2012-02-22 Thread McLaughlin, Michael P.
In Xcode 4.2 (Snow Leopard), I have a window with several tab views. Inside each tab view is a matrix of radio buttons with one preselected as default. I am seeing a problem in which I select a radio button in a view, flip to another tab then back again. When I do this for one of the tabbed

Re: NSStepper - useless?

2012-02-22 Thread Seth Willits
On Feb 19, 2012, at 4:11 PM, William Squires wrote: Okay, 'nuther dumb question. How do I hook the different arrows in an NSStepper to actions in my view controller? Or how do I ask (id)sender which arrow was clicked? You don't. You ask for the stepper's value. -- Seth Willits

Re: NSTextView and -becomeFirstResponder

2012-02-22 Thread Kyle Sluder
On Sun, Feb 19, 2012 at 9:29 PM, Jim McGowan jim_mcgo...@mac.com wrote: However, I'm a bit confused by the docs.  -becomeFirstResponder is marked as being deprecated for NSTextView, but not deprecated in its superclass NSResponder.  The NSTextView docs for this method reads: Informs the

Re: NSStepper - useless?

2012-02-22 Thread Fritz Anderson
On 19 Feb 2012, at 6:11 PM, William Squires wrote: Okay, 'nuther dumb question. How do I hook the different arrows in an NSStepper to actions in my view controller? Or how do I ask (id)sender which arrow was clicked? It's not useless, it just doesn't have the use you hope for. NSStepper is

Can't create window context…crash

2012-02-22 Thread Gideon King
Hi all, I am seeing quite a number of reports from users of my software where on the console, there are errors like the ones below, but I haven't been able to reproduce the problem here: 2012-02-21 23:49:05 +0800[3]: kCGErrorIllegalArgument: CGSDeviceCreate: Invalid window 2012-02-21 23:49:05

Re: NSStepper - useless?

2012-02-22 Thread Graham Cox
On 20/02/2012, at 11:11 AM, William Squires wrote: Okay, 'nuther dumb question. How do I hook the different arrows in an NSStepper to actions in my view controller? Or how do I ask (id)sender which arrow was clicked? You can't, it works differently. Instead it has a value , just like a

Re: binding a binding?

2012-02-22 Thread Lee Ann Rucker
On Feb 19, 2012, at 3:11 PM, William Squires wrote: Now, I can bind the label's value to File's Owner's self.stringInterval without Xcode/IB complaining. I think you can all see where this is going... yep, the label doesn't update because it's static; there's nothing to tell the label