Re: NSButton state not persisting

2013-12-11 Thread Uli Kusterer
On 10 Dec 2013, at 22:26, Jens Alfke j...@mooseyard.com wrote: On Dec 10, 2013, at 1:07 PM, Pax 45rpmli...@googlemail.com wrote: Ah! Exactly right. It is nil - but surely I shouldn't have to initialise it? I never have in the past - I built the UI with IB, and I was under the impression

Re: Preferences caching?

2013-12-11 Thread Uli Kusterer
On 10 Dec 2013, at 18:08, Kyle Sluder k...@ksluder.com wrote: On Dec 10, 2013, at 7:46 AM, Jakob Egger ja...@eggerapps.at wrote: Or does OS X Mavericks recreate deleted preference files in some cases? Bingo. You are now caught up with the original post in this thread. The plist files are and

Re: NSURLSessionUploadTask - stops uploading after sending 160kB of data (5x 32kB chunks)

2013-12-11 Thread Robert Vojta
Staring at the code for a long time. Typo in one letter and found it just one minute after I did send the question, as always. Works like a charm. My apologize for the noise. Sent from my iPhone On 10. 12. 2013, at 20:38, Jens Alfke j...@mooseyard.com wrote: On Dec 10, 2013, at 11:16 AM,

Re: Threaded drawing

2013-12-11 Thread Graham Cox
On 10 Dec 2013, at 7:39 pm, Kyle Sluder k...@ksluder.com wrote: but more directly, by using CATiledLayer you don't have to handle the tiling and threading yourself, and it avoids the final blit of your buffer into the view because you're (presumably) drawing directly into the layer backing.

Re: Threaded drawing

2013-12-11 Thread Ken Thomases
On Dec 11, 2013, at 4:20 AM, Graham Cox wrote: The documentation is sparse though, I’m not quite sure what I should be using for -levelsOfDetail and -levelsOfDetailBias. It’s clear I do need to set these to something other than their defaults to get the behaviour I need, which is not to

Re: Threaded drawing

2013-12-11 Thread 2551
On 11 Dec 2013, at 17:20, Graham Cox graham@bigpond.com wrote: The documentation is sparse though SNIP...That’s my somewhat limited understanding, not particularly well-informed by the docs, but appears to work by experimentation. The commonality of this experience makes me wonder

Re: Threaded drawing

2013-12-11 Thread Graham Cox
On 11 Dec 2013, at 1:39 pm, 2551 2551p...@gmail.com wrote: The commonality of this experience makes me wonder almost with everything I try to do in Cocoa whether it really IS true as advertised that the pre-written APIs make it easier than writing your own raw code all the way down in C

Re: Threaded drawing

2013-12-11 Thread Graham Cox
On 11 Dec 2013, at 12:40 pm, Ken Thomases k...@codeweavers.com wrote: By searching the docs for levelsOfDetailBias, I found Apple's CALayerEssentials sample code. A section of the AppController.m sets these properties and has a comment which explains them fairly well: Ah, thanks! That

Custom view and NSText

2013-12-11 Thread Georg Seifert
Hi, I have an view that acts as an text view by implementing the NSTextInputClient protocol. This works fine in 10.8 but leads to crashes in 10.9. The report says: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'All NSText methods must be implemented by

Re: Threaded drawing

2013-12-11 Thread Jens Alfke
On Dec 11, 2013, at 4:39 AM, 2551 2551p...@gmail.com wrote: It’s certainly seemed the case to me that I would have probably spent less time just writing my own code from scratch than I spend trying to figure out how half the methods I’m trying to use should be implemented. That’s probably

Re: Threaded drawing

2013-12-11 Thread Jeffrey Oleander
On 2013 Dec 11, at 10:01, Jens Alfke wrote: On 2013 Dec 11, at 04:39, 2551 2551p...@gmail.com wrote: It’s certainly seemed the case to me that I would have probably spent less time just writing my own code from scratch than I spend trying to figure out how half the methods I’m trying to

Strange Static Analyzer Warning

2013-12-11 Thread Keary Suska
(I have been trying to send this to xcode-users, but for some reason it won't go through, although it is not entirely off-topic for this list) In this method: - (void) drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView { if (self.state == NSOnState) { // If selected we need to

Cocoaheads 92630 will be meeting today, Wed, Dec 11 at 7pm

2013-12-11 Thread Scott Ellsworth
CocoaHeads Lake Forest will be meeting on the second Wednesday of the month. We will be meeting at the Orange County Public Library (El Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630. Peter Hosey will be discussing bugs he has found and fixed in his own apps, with an open mic to

Re: Threaded drawing

2013-12-11 Thread Mike Abdullah
On 11 Dec 2013, at 13:10, Graham Cox graham@bigpond.com wrote: On 11 Dec 2013, at 1:39 pm, 2551 2551p...@gmail.com wrote: The commonality of this experience makes me wonder almost with everything I try to do in Cocoa whether it really IS true as advertised that the pre-written APIs

Re: Strange Static Analyzer Warning

2013-12-11 Thread Ken Thomases
On Dec 11, 2013, at 10:25 AM, Keary Suska wrote: In this method: - (void) drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView { if (self.state == NSOnState) { // If selected we need to draw the border new background for selection (otherwise we will use default back color)

Re: Strange Static Analyzer Warning

2013-12-11 Thread Steve Mills
On Dec 11, 2013, at 10:25:42, Keary Suska cocoa-...@esoteritech.com wrote: I am getting a warning that I wasn't getting before, in Xcode 4.3.3 LLVM 3.1: Potential leak of an object allocated on line 139, with two sub-warnings: 1) Method returns an Objective-C object with a +1 retain count

Re: Threaded drawing - JPEG

2013-12-11 Thread Steve Sisak
At 10:25 AM -0800 12/10/13, Seth Willits wrote: On Dec 10, 2013, at 1:32 AM, Graham Cox graham@bigpond.com wrote: But my situation is that I need to draw VECTOR objects up to 25,000% zoom with no pixelization. You're given a CGContext to draw into; What's the difference? The tiled

Re: Strange Static Analyzer Warning

2013-12-11 Thread Keary Suska
On Dec 11, 2013, at 9:48 AM, Ken Thomases wrote: On Dec 11, 2013, at 10:25 AM, Keary Suska wrote: In this method: - (void) drawBezelWithFrame:(NSRect)frame inView:(NSView *)controlView { if (self.state == NSOnState) { // If selected we need to draw the border new background for

Re: Threaded drawing - JPEG

2013-12-11 Thread Greg Parker
On Dec 11, 2013, at 9:53 AM, Steve Sisak sgs-li...@codewell.com wrote: Not to hijack the thread, but I'm just getting head into optimizing some code which displays live preview for a number of JPEG streams simultaneously. Most implementations I've tried result in being CPU bound in JPEG code

Re: Threaded drawing

2013-12-11 Thread David Duncan
On Dec 11, 2013, at 8:05 AM, Jeffrey Oleander jgo...@yahoo.com wrote: * (The posted snippet from sample code was as clear as mud to me. Why powers of 4 (and -4) instead of 5 when we're talking about 5 levels of detail? 1/(2^2) - 2^2 = (1/4) - 4 means ...levelsOfDetail should be set to 5?!?

Re: Threaded drawing - JPEG

2013-12-11 Thread Kevin Meaney
On 11 Dec 2013, at 22:43, Greg Parker gpar...@apple.com wrote: On Dec 11, 2013, at 9:53 AM, Steve Sisak sgs-li...@codewell.com wrote: Not to hijack the thread, but I'm just getting head into optimizing some code which displays live preview for a number of JPEG streams simultaneously. Most

Re: Threaded drawing

2013-12-11 Thread Dave Fernandes
Is there any way to zoom in just one dimension? On Dec 11, 2013, at 6:05 PM, David Duncan david.dun...@apple.com wrote: On Dec 11, 2013, at 8:05 AM, Jeffrey Oleander jgo...@yahoo.com wrote: * (The posted snippet from sample code was as clear as mud to me. Why powers of 4 (and -4) instead

Re: Threaded drawing

2013-12-11 Thread David Duncan
On Dec 11, 2013, at 4:17 PM, Dave Fernandes dave.fernan...@utoronto.ca wrote: Is there any way to zoom in just one dimension? Not really. You could put a counter transform before drawing that eliminates the opposite direction (and the aforementioned sample should show how to find out the

Autolayout Freespace

2013-12-11 Thread Luther Baker
Is there a way autolayout can be told to proportionally divide available free space amongst a set of views? For example (please ignore the actual 'VFL' and consider the following horizontal layout string as pseudo code): H:|-[FirstName]-[LastName]-[SocialSecurity]-[Birthday]-[Age]-| Assume

iPad keyboards

2013-12-11 Thread Rick Mann
Why does the Google Hangouts app on iPad, on iOS 7, have a nice-looking iOS-6 style keyboard? Other UI in the app looks like iOS 7 UI. Hangouts: http://cl.ly/image/1U2T1e1y1G15 Safari: http://cl.ly/image/2C1B2r2n2J3J -- Rick signature.asc Description: Message signed with OpenPGP using

Re: Autolayout Freespace

2013-12-11 Thread dangerwillrobinsondanger
Sent from my iPhone On 2013/12/12, at 13:50, Luther Baker lutherba...@gmail.com wrote: Is there a way autolayout can be told to proportionally divide available free space amongst a set of views? For example (please ignore the actual 'VFL' and consider the following horizontal layout

Re: iPad keyboards

2013-12-11 Thread Maxthon Chan
They simulated iOS 7 looks using iOS 6 SDK. It is not that difficult by using appearance proxy. On Dec 12, 2013, at 13:26, Rick Mann rm...@latencyzero.com wrote: Why does the Google Hangouts app on iPad, on iOS 7, have a nice-looking iOS-6 style keyboard? Other UI in the app looks like iOS 7

Re: iPad keyboards

2013-12-11 Thread Rick Mann
I'm running iOS 7. You're saying they styled their own keyboard to look like the iOS 6 keyboard? It's a pretty good imitation. On Dec 11, 2013, at 21:29 , Maxthon Chan xcvi...@me.com wrote: They simulated iOS 7 looks using iOS 6 SDK. It is not that difficult by using appearance proxy. On

Re: iPad keyboards

2013-12-11 Thread Maxthon Chan
The other way around - they styled their UI in iOS 7 fashion but used iOS 6 SDK. It is actually quite simple if you ignore the blur effect. And I used to do that as well - when I worked for a game company and designed a UIKit-only game imitating iOS 7 looks on iOS 6 SDK. On Dec 12, 2013, at

Re: iPad keyboards

2013-12-11 Thread Rick Mann
They released the latest version of their app Nov 19. They would've had to build against the iOS 7 SDK. So, how do they get that look? On Dec 11, 2013, at 21:47 , Maxthon Chan xcvi...@me.com wrote: The other way around - they styled their UI in iOS 7 fashion but used iOS 6 SDK. It is

Re: Autolayout Freespace

2013-12-11 Thread Luther Baker
Thanks - and yeah, I'm trying to avoid calculation. And just to clarify, if I need to do some manual calculation, would I be using frames, etc? Frame feels like such a dirty word in autolayout world; is there something else specific to autolayout (like intrinsic size - obviously not in this case)

Re: iPad keyboards

2013-12-11 Thread Luther Baker
Technically, an iPad running iOS7 can run apps in iOS6 compatibility mode. The keyboard is a dead giveaway. It is similar to an original OSX upgrade from OS9, where some OS9 apps could run within OSX under an OS9 compatibility mode. Or think of it like running a windows app in Parallels on a

Re: iPad keyboards

2013-12-11 Thread Rick Mann
Right, so how were they able to release an app 11/19 without using the iOS 7 sdk? I doubt they submitted it long before that. Sent from my iPhone On Dec 11, 2013, at 22:04, Luther Baker lutherba...@gmail.com wrote: Technically, an iPad running iOS7 can run apps in iOS6 compatibility mode.

Re: iPad keyboards

2013-12-11 Thread Maxthon Chan
Bad example - you should use the example between NeXTSTEP/Mach and OS X, which the identical technology, library versioning, is used. (People do you still remember that OS X derived from NeXTSTEP, to the extent that OS X 10.0 have version number 4.0, picking up where NeXTSTEP left off, and this

Re: iPad keyboards

2013-12-11 Thread Greg Parker
On Dec 11, 2013, at 10:46 PM, Maxthon Chan xcvi...@me.com wrote: Bad example - you should use the example between NeXTSTEP/Mach and OS X, which the identical technology, library versioning, is used. (People do you still remember that OS X derived from NeXTSTEP, to the extent that OS X 10.0

Re: iPad keyboards

2013-12-11 Thread Maxthon Chan
Well on OS X Mavericks I have /System/Library/Frameworks/Foundation.framework/Version/C/Foundation - and I can assume tat versions A are from NeXTSTEP (possibly used in early PPC OS X too) Also, I distribute my CGIKit framework in two versions, version F and G - versions F and G have