Re: NSUserDefaults locks up on 10.8

2012-08-10 Thread Quincey Morris
On Aug 9, 2012, at 22:49 , Martin Hewitson martin.hewit...@aei.mpg.de wrote: I have a table view bound to shared user defaults with a key which returns an array of strings. I have a button for creating a new entry. This calls a piece of code like this: NSUserDefaults *defaults =

Re: NSUserDefaults locks up on 10.8

2012-08-10 Thread Martin Hewitson
Hi Quincey, Your suggested fix works fine, except I used -arrayForKey rather than -arrayValueForKey (which I couldn't find). Thanks for the explanation! Cheers, Martin On Aug 10, 2012, at 07:15 AM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Aug 9, 2012, at 22:49 , Martin

Re: Not getting all the data over the cell network

2012-08-10 Thread Jens Alfke
On Aug 8, 2012, at 12:19 PM, Stevo Brock devli...@sunsetmagicwerks.com wrote: What we see is that occasionally (25% of the time?) the app loads all 87187 bytes, but the rest of the time, the app loads less data and no error or any other condition is ever returned. How much less data? Is it

Missing creating date for items copied with copyItemAtPath:toPath:error:?

2012-08-10 Thread Laurent Daudelin
As anybody ever noticed after copying files to an external HFS+ drive using -[NSFileManager copyItemFromPath:toPath:error:] that the copied files would be missing their creation dates? I didn't even think it was possible but a user of my software sent me screen shots from the Get Info window in

Re: Navigating in a NSTableView with tab key

2012-08-10 Thread Kyle Sluder
On Aug 8, 2012, at 11:09 PM, François Pelsser co...@frol.be wrote: Hello, I want to be able to navigate in a table view with the tab key. So i subclassed NSTableView and i added the overwrite the method - (void) textDidEndEditing: (NSNotification *) notification Since NSTableView

Re: filtering the values in an NSTableColumn

2012-08-10 Thread Koen van der Drift
On Aug 9, 2012, at 10:47 AM, Ken Thomases k...@codeweavers.com wrote: Better would be to create a property on your controller which returns the predicate, constructing it on demand for each call (perhaps with some smart caching). (I'll call the property minMaxPredicate for discussion.)

MPMoviePlayerController doesn't work with remoteControlReceivedWithEvent

2012-08-10 Thread Mr. Gecko
I want to allow the controls from my keyboard to work in my app. The controls use Apple's Remote Control events (beginReceivingRemoteControlEvents, endReceivingRemoteControlEvents, and remoteControlReceivedWithEvent), however I cannot seem to get this to work with MPMoviePlayerController. I do

Re: filtering the values in an NSTableColumn

2012-08-10 Thread Keary Suska
On Aug 10, 2012, at 5:07 AM, Koen van der Drift wrote: On Aug 9, 2012, at 10:47 AM, Ken Thomases k...@codeweavers.com wrote: Better would be to create a property on your controller which returns the predicate, constructing it on demand for each call (perhaps with some smart caching).

Re: filtering the values in an NSTableColumn

2012-08-10 Thread Koen van der Drift
On Fri, Aug 10, 2012 at 8:42 AM, Keary Suska cocoa-...@esoteritech.com wrote: Where in the predicate formatting guide (https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Predicates/predicates.html) does it show that your syntax is in any way valid? Well, it talks about

Re: PI-iOS 2.51.19 Log for Taleo's iPhone

2012-08-10 Thread Alex Kac
Thanks. I've switched to just using a stringWithFormat: with CFGregorianDate. Just simpler overall :) On Aug 10, 2012, at 9:28 AM, Philippe Marsteau marst...@gmail.com wrote: Seems like a iOS bug:

Re: filtering the values in an NSTableColumn

2012-08-10 Thread Fritz Anderson
On 10 Aug 2012, at 7:48 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: On Fri, Aug 10, 2012 at 8:42 AM, Keary Suska cocoa-...@esoteritech.com wrote: Where in the predicate formatting guide

Re: filtering the values in an NSTableColumn

2012-08-10 Thread Koen van der Drift
Yeah, I saw the BETWEEN a bit later, I'll go ahead and try that. Or maybe turn my float into an NSNumber, I need to think how that works with the rest of my model. - Koen. On Fri, Aug 10, 2012 at 10:51 AM, Fritz Anderson fri...@manoverboard.org wrote: On 10 Aug 2012, at 7:48 AM, Koen van der

Re: How make iPhone HOT (yes, increase the temperature)??

2012-08-10 Thread Jean Suisse
Hi Rodrigo, For some reasons [1], getting an iPhone hot is trickier than it looks and engineers have worked hard to make this device's operation as energy-efficient as possible. The only way to make an iPhone heat itself, when not connected to a power source, is by draining its battery power

Formatting a set of NSDecimalNumber values

2012-08-10 Thread Sixten Otto
I'm working on an app where I need to take several sets of numeric values (currently stored as NSDecimalNumber), and display them in columns. Each set will have approximately the same magnitude, but the magnitude of each set may change, and I won't know ahead of time what they are. So one might be

Re: Formatting a set of NSDecimalNumber values

2012-08-10 Thread Jens Alfke
On Aug 10, 2012, at 8:58 AM, Sixten Otto hims...@sfko.com wrote: In order to make the columns line up, and to know how much space I'll need, what I'd like to do is to figure out, for each set of numbers, the width of the format I'll need. In other words, the maximum number of integer places,

Re: Trying to capture raw touch events on the trackpad

2012-08-10 Thread Raleigh Ledet
mouseEntered do you also have a tracking area setup? When are you calling setAcceptsTouchEvent:? FYI, You won't get touch events unless the cursor is over your view when the first touch occurs. While dragging the cursor, the touch doing that was latched to some other view. All touches are

Re: filtering the values in an NSTableColumn

2012-08-10 Thread Fritz Anderson
They are not alternatives, and the conversion to NSNumber is not optional. You have to do all three. — F On 10 Aug 2012, at 9:58 AM, Koen van der Drift koenvanderdr...@gmail.com wrote: Yeah, I saw the BETWEEN a bit later, I'll go ahead and try that. Or maybe turn my float into an

Re: filtering the values in an NSTableColumn

2012-08-10 Thread Ken Thomases
On Aug 10, 2012, at 12:28 PM, Fritz Anderson wrote: They are not alternatives, and the conversion to NSNumber is not optional. You have to do all three. What? There's no requirement that one use NSNumbers. And BETWEEN is a nice clear operator to use, but it would be fine to do %f value

Re: Formatting a set of NSDecimalNumber values

2012-08-10 Thread Kyle Sluder
On Aug 10, 2012, at 9:29 AM, Jens Alfke j...@mooseyard.com wrote: That doesn't seem like a workaround, it seems like the correct solution (although why not use the user's real locale?). Fundamentally you are trying to display and align character strings, so you have to treat the numbers as

Re: Formatting a set of NSDecimalNumber values

2012-08-10 Thread Sixten Otto
I'm definitely aware of the font issues, and those I can deal with (I think?). In particular, if I can line up the decimal separators vertically, everything else should align, as I should be able to force a font that has lining figures. My reasoning for measuring the strings in a fixed locale

Re: Not getting all the data over the cell network

2012-08-10 Thread Stevo Brock
Hi Jens, Thanks for pointing me to the other list. I'll continue the conversation over there. To answer your questions quickly here: Generally around 10% of the data doesn't arrive, and it's a different amount every time. As far as I can tell the data is truncated. ATT cell network here.

Re: Formatting a set of NSDecimalNumber values

2012-08-10 Thread Sixten Otto
On Fri, Aug 10, 2012 at 10:46 AM, Kyle Sluder k...@ksluder.com wrote: Don't forget bout languages where numbers read right-to-left. Like which? (I had, shamefully, completely forgotten r-t-l text in this scheme. But some casual googling leads me to believe that Hebrew and Arabic, at least, write

Re: Formatting a set of NSDecimalNumber values

2012-08-10 Thread Jens Alfke
On Aug 10, 2012, at 10:55 AM, Sixten Otto hims...@sfko.com wrote: I could, as you say, measure the drawn sizes of the localized strings. I guess my resistance to that idea is really that I'd have to do it a couple of times (the width of the whole string, and the position of the decimal

Re: filtering the values in an NSTableColumn

2012-08-10 Thread Kyle Sluder
On Fri, Aug 10, 2012, at 10:44 AM, Ken Thomases wrote: What? There's no requirement that one use NSNumbers. You're correct, but I certainly didn't expect that! From the Predicate Programming Guide: The format string supports printf-style format arguments such as %x (see “Formatting String

Re: Formatting a set of NSDecimalNumber values

2012-08-10 Thread Kyle Sluder
On Fri, Aug 10, 2012, at 11:05 AM, Sixten Otto wrote: On Fri, Aug 10, 2012 at 10:46 AM, Kyle Sluder k...@ksluder.com wrote: Don't forget bout languages where numbers read right-to-left. Like which? (I had, shamefully, completely forgotten r-t-l text in this scheme. But some casual googling

Re: filtering the values in an NSTableColumn

2012-08-10 Thread Fritz Anderson
How embarrassing. I relied on the description in the documentation I found, and didn't go deeper. Sorry. — F On 10 Aug 2012, at 12:44 PM, Ken Thomases k...@codeweavers.com wrote: On Aug 10, 2012, at 12:28 PM, Fritz Anderson wrote: They are not alternatives, and the conversion to

Thousands separators added to number fields

2012-08-10 Thread James Merkel
As of 10.8, it looks like thousands separators are automatically added to numbers displayed in text boxes. Can this be disabled? In some places it doesn't make sense like in a display of a year. TIA, Jim Merkel ___ Cocoa-dev mailing list

Get EXIF information from a Quicktime Movie

2012-08-10 Thread mailist
For a JPG image, I can just use CGImageSourceCopyPropertiesAtIndex to obtain the various bits of EXIF information from the image. However, this API does not work with quicktime movie files. What similar Cocoa APIs can I use to extact EXIF information from a Quicktime movie file? Or, if

Re: Thousands separators added to number fields

2012-08-10 Thread James Merkel
As of 10.8, it looks like thousands separators are automatically added to numbers displayed in text boxes. Can this be disabled? In some places it doesn't make sense like in a display of a year. Ok, I see from:

Re: Thousands separators added to number fields

2012-08-10 Thread Kyle Sluder
On Fri, Aug 10, 2012, at 01:17 PM, James Merkel wrote: As of 10.8, it looks like thousands separators are automatically added to numbers displayed in text boxes. Can this be disabled? In some places it doesn't make sense like in a display of a year. Ok, I see from:

Re: Thousands separators added to number fields

2012-08-10 Thread James Merkel
On Aug 10, 2012, at 1:17 PM, James Merkel jmerk...@mac.com wrote: +[NSString localizedStringWithFormat:] Never mind -- I see I can use +[NSString stringWithFormat:] rather than +[NSString localizedStringWithFormat:] to avoid the thousand separators. Jim Merkel

Re: Thousands separators added to number fields

2012-08-10 Thread James Merkel
Ok, I could do it that way also. Jim Merkel On Aug 10, 2012, at 1:28 PM, Kyle Sluder k...@ksluder.com wrote: On Fri, Aug 10, 2012, at 01:17 PM, James Merkel wrote: As of 10.8, it looks like thousands separators are automatically added to numbers displayed in text boxes. Can this be

help indexer or hiutil help

2012-08-10 Thread Shane
I'm trying to use Help Indexer.app after a long while and a few upgrades of a working help project. When trying to select the MyHelp.help bundle, I can't because its grayed out. Any ideas? But I can get into the bundle on the command line, so I go into the dirs and try to use hiutil as shown in

Re: 32-bit on 10.8

2012-08-10 Thread Charles Srstka
On Aug 10, 2012, at 12:51 AM, Nick Zitzmann n...@chronosnet.com wrote: On Aug 2, 2012, at 7:02 PM, Kurt Bigler kkbli...@breathsense.com wrote: I'd seriously wish for some statement from Apple ASAP if that were a possibility that 32-bit support would be fully eliminated in 10.9. You won't

Re: 32-bit on 10.8

2012-08-10 Thread Jayson Adams
On Aug 10, 2012, at 5:17 PM, Charles Srstka wrote: You won't get one. But between you and me, I would say it is highly unlikely, since they'd kill MS Office support if they did that, and Office is one of the two or three most important third-party apps on OS X. MS is, however, working on

Detecting focus on control

2012-08-10 Thread Erik Stainsby
Is it the case that setting up a trackingArea over a given control is the easiest way to detect the arrival of focus on a given control? I'm thinking in terms of tab-advancing keyboard activity here, where the user advances onto a modestly complex screen region (a postal address displayed in

Re: 32-bit on 10.8

2012-08-10 Thread Kyle Sluder
On Fri, Aug 10, 2012, at 05:44 PM, Jayson Adams wrote: Except Apple itself says it might not make sense to do so. From the 64-bit Transition Guide: Although 64-bit executables make it easier for you to manage large data sets (compared to memory mapping of large files in a 32-bit

Re: Detecting focus on control

2012-08-10 Thread Kyle Sluder
On Fri, Aug 10, 2012, at 05:54 PM, Erik Stainsby wrote: Is it the case that setting up a trackingArea over a given control is the easiest way to detect the arrival of focus on a given control? Hmm? Tracking areas have nothing to do with focus. You probably want to override

Re: 32-bit on 10.8

2012-08-10 Thread Charles Srstka
On Aug 10, 2012, at 7:44 PM, Jayson Adams jay...@circusponies.com wrote: On Aug 10, 2012, at 5:17 PM, Charles Srstka wrote: You won't get one. But between you and me, I would say it is highly unlikely, since they'd kill MS Office support if they did that, and Office is one of the two or

Re: Detecting focus on control

2012-08-10 Thread Graham Cox
On 11/08/2012, at 10:54 AM, Erik Stainsby erik.stain...@roaringsky.ca wrote: It seems like this sort of awareness ought to be trivial to glean, but I'm not seeing it in NSView nor NSControl where I would expect to find it documented. Advice on where I ought to look? Keep going: these

Re: Detecting focus on control

2012-08-10 Thread Andy Lee
If there's one specific control class that you want to detect focus for, you can subclass it and override becomeFirstResponder. If super returns true, do your thing. If you want to apply this to a bunch of varied controls, you might want to use a subclass of NSWindow and override

Re: 32-bit on 10.8

2012-08-10 Thread Jayson Adams
On Aug 10, 2012, at 5:57 PM, Charles Srstka wrote: On Aug 10, 2012, at 7:44 PM, Jayson Adams jay...@circusponies.com wrote: Except Apple itself says it might not make sense to do so. From the 64-bit Transition Guide:

Re: 32-bit on 10.8

2012-08-10 Thread Greg Parker
On Aug 10, 2012, at 7:42 PM, Jayson Adams jay...@circusponies.com wrote: I'm not trying to argue that you are wrong in your general conclusion about the fate of 32-bit, because you don't know and I don't know either. What I am saying, though, is that for all of the 32-bit-the-sky-is-falling,

Re: 32-bit on 10.8

2012-08-10 Thread Eric Wing
On 8/10/12, Jayson Adams jay...@circusponies.com wrote: On Aug 10, 2012, at 5:57 PM, Charles Srstka wrote: On Aug 10, 2012, at 7:44 PM, Jayson Adams jay...@circusponies.com wrote: Except Apple itself says it might not make sense to do so. From the 64-bit Transition Guide:

Re: 32-bit on 10.8

2012-08-10 Thread Charles Srstka
On Aug 10, 2012, at 9:42 PM, Jayson Adams jay...@circusponies.com wrote: On Aug 10, 2012, at 5:57 PM, Charles Srstka wrote: On Aug 10, 2012, at 7:44 PM, Jayson Adams jay...@circusponies.com wrote: Except Apple itself says it might not make sense to do so. From the 64-bit Transition

Re: 32-bit on 10.8

2012-08-10 Thread Graham Cox
On 11/08/2012, at 1:02 PM, Charles Srstka cocoa...@charlessoft.com wrote: Apple says a lot of things. I'm still struggling to build for 680x0 you insensitive clod! --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Cocoa-dev Digest, Vol 9, Issue 569

2012-08-10 Thread James Merkel
On Fri, 10 Aug 2012 13:47:48 -0600 mail...@ericgorr.net wrote: For a JPG image, I can just use CGImageSourceCopyPropertiesAtIndex to obtain the various bits of EXIF information from the image. However, this API does not work with quicktime movie files. What similar Cocoa APIs can I use

Re: Thousands separators added to number fields

2012-08-10 Thread Charles Srstka
On Aug 10, 2012, at 4:06 PM, James Merkel jmerk...@mac.com wrote: Ok, I could do it that way also. Jim Merkel On Aug 10, 2012, at 1:28 PM, Kyle Sluder k...@ksluder.com wrote: On Fri, Aug 10, 2012, at 01:17 PM, James Merkel wrote: As of 10.8, it looks like thousands separators are

Re: 32-bit on 10.8

2012-08-10 Thread Jayson Adams
On Aug 10, 2012, at 8:02 PM, Charles Srstka wrote: Not everyone uses ARC, or the other recent additions Apple has made to the language. Yes, but the fact that everything new that Apple adds assumes that you're compiling for 64-bit only really ought to tell you something. Tell me what

NSOutlineView group item - suppress ugly show/hide button ?

2012-08-10 Thread Graham Cox
In my outline view I return NO for a certain row from the delegate method [outlineView:shouldCollapseItem:], which is also set to be a 'group' item. This does prevent the group item being collapsed correctly, but it still shows that horrible 'show'/'hide' button - it's just that it no longer

Re: 32-bit on 10.8

2012-08-10 Thread Charles Srstka
On Aug 11, 2012, at 12:10 AM, Jayson Adams jay...@circusponies.com wrote: On Aug 10, 2012, at 8:02 PM, Charles Srstka wrote: Not everyone uses ARC, or the other recent additions Apple has made to the language. Yes, but the fact that everything new that Apple adds assumes that you're

Re: NSOutlineView group item - suppress ugly show/hide button ?

2012-08-10 Thread Quincey Morris
On Aug 10, 2012, at 22:18 , Graham Cox graham@bigpond.com wrote: In my outline view I return NO for a certain row from the delegate method [outlineView:shouldCollapseItem:], which is also set to be a 'group' item. This does prevent the group item being collapsed correctly, but it still