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 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 subclasses NSC

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 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.) Bind > the array

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 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 t

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 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 using the greater tha

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 wrote: > Seems like a iOS bug: > http://stackoverflow.com/questions/143075/nsdateformatter-am-i-doing-something-wrong-or-is-this-a-bug > > Maybe

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 wrote: > On Fri, Aug 10, 2012 at 8:42 AM, Keary Suska > wrote: >> > >> Where in the predicate formatting guide >> (https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Predicates/predicates.html) >> does it show that your sy

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 wrote: > On 10 Aug 2012, at 7:48 AM, Koen van der Drift > wrote: > >> O

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 a

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 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, and the maxi

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 la

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 wrote: > 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

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 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 > strings whe

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 with

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. AT&T 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 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 numbers in big-

Re: Formatting a set of NSDecimalNumber values

2012-08-10 Thread Jens Alfke
On Aug 10, 2012, at 10:55 AM, Sixten Otto 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 separator), and th

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 Obj

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 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

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 wrote: > On Aug 10, 2012, at 12:28 PM, Fritz Anderson wrote: > >> They are not alternatives, and the conversion to NSNumber is not o

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 (Cocoa-dev@l

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 ther

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: https://developer.apple.com/library/mac/#releasenotes/CoreFoundation/CoreFou

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: > https://

Re: Thousands separators added to number fields

2012-08-10 Thread James Merkel
On Aug 10, 2012, at 1:17 PM, James Merkel 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 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 disabled? In s

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 th

Re: 32-bit on 10.8

2012-08-10 Thread Charles Srstka
On Aug 10, 2012, at 12:51 AM, Nick Zitzmann wrote: > On Aug 2, 2012, at 7:02 PM, Kurt Bigler 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 get one. But between you and me, I

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, wor

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 N

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 -becomeFirstRespon

Re: 32-bit on 10.8

2012-08-10 Thread Charles Srstka
On Aug 10, 2012, at 7:44 PM, Jayson Adams 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 three most imp

Re: Detecting focus on control

2012-08-10 Thread Graham Cox
On 11/08/2012, at 10:54 AM, Erik Stainsby 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 inherit from NSResponder. T

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 makeFirstRespo

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 wrote: > >> Except Apple itself says it might not make sense to do so. From the 64-bit >> Transition Guide: >> >> https://developer.apple.com/library/mac/#documentation/Darwin/Conceptual/64bitPorti

Re: 32-bit on 10.8

2012-08-10 Thread Greg Parker
On Aug 10, 2012, at 7:42 PM, Jayson Adams 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, the > first place a

Re: 32-bit on 10.8

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

Re: 32-bit on 10.8

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

Re: 32-bit on 10.8

2012-08-10 Thread Graham Cox
On 11/08/2012, at 1:02 PM, Charles Srstka 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 post admin requests or mod

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 u

Re: Thousands separators added to number fields

2012-08-10 Thread Charles Srstka
On Aug 10, 2012, at 4:06 PM, James Merkel wrote: > Ok, I could do it that way also. > > Jim Merkel > > On Aug 10, 2012, at 1:28 PM, Kyle Sluder 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 >>

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

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 act

Re: 32-bit on 10.8

2012-08-10 Thread Charles Srstka
On Aug 11, 2012, at 12:10 AM, Jayson Adams 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 >> compiling fo

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

2012-08-10 Thread Quincey Morris
On Aug 10, 2012, at 22:18 , Graham Cox 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 > shows that horribl