Re: NSButton state not persisting

2013-12-11 Thread Uli Kusterer
On 10 Dec 2013, at 22:26, Jens Alfke 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 that that w

Re: Preferences caching?

2013-12-11 Thread Uli Kusterer
On 10 Dec 2013, at 18:08, Kyle Sluder wrote: >> On Dec 10, 2013, at 7:46 AM, Jakob Egger 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 always have been an impleme

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 wrote: > > >> On Dec 10, 2013, at 11:16 AM, Robert Vojta

Re: Threaded drawing

2013-12-11 Thread Graham Cox
On 10 Dec 2013, at 7:39 pm, Kyle Sluder 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. > > Yup,

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 wrote: > The documentation is sparse though ...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 almost with everything I try

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 i

Re: Threaded drawing

2013-12-11 Thread Graham Cox
On 11 Dec 2013, at 12:40 pm, Ken Thomases 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 makes more sense an

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 b

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 prob

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 t

Re: Threaded drawing

2013-12-11 Thread Mike Abdullah
On 11 Dec 2013, at 13:10, Graham Cox 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 make it eas

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 col

Re: Strange Static Analyzer Warning

2013-12-11 Thread Steve Mills
On Dec 11, 2013, at 10:25:42, Keary Suska 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" (highlights > kDMTab

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 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 drawing is async, so if th

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 backgroun

Re: Threaded drawing - JPEG

2013-12-11 Thread Greg Parker
On Dec 11, 2013, at 9:53 AM, Steve Sisak 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 on the > main thr

Re: Threaded drawing

2013-12-11 Thread David Duncan
On Dec 11, 2013, at 8:05 AM, Jeffrey Oleander 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?!? It > needs

Re: Threaded drawing - JPEG

2013-12-11 Thread Kevin Meaney
On 11 Dec 2013, at 22:43, Greg Parker wrote: > On Dec 11, 2013, at 9:53 AM, Steve Sisak 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 resu

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 wrote: > On Dec 11, 2013, at 8:05 AM, Jeffrey Oleander 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 l

Re: Threaded drawing

2013-12-11 Thread David Duncan
On Dec 11, 2013, at 4:17 PM, Dave Fernandes 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 current zoom level) but thats

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 t

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 GP

Re: Autolayout Freespace

2013-12-11 Thread dangerwillrobinsondanger
Sent from my iPhone > On 2013/12/12, at 13:50, Luther Baker 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 string as pseudo

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 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 UI. > > Hangouts:

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 wrote: > They simulated iOS 7 looks using iOS 6 SDK. It is not that difficult by using > appearance proxy. > > On Dec 12, 201

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

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 wrote: > The other way around - they styled their UI in iOS 7 fashion but used iOS 6 > SDK. It is actually quite simpl

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

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 wrote: > Technically, an iPad running iOS7 can run apps in iOS6 compatibility mode. > > The keyboard is a

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 Maxthon Chan
There are situations that new frameworks failed to support old code and debugging may be impossible, especially games. Apple will not prevent them from being released. (Some apps are known to be linked against ancient SDKs like iOS 4 SDK when released) On Dec 12, 2013, at 14:46, Rick Mann wrot

Re: iPad keyboards

2013-12-11 Thread Greg Parker
On Dec 11, 2013, at 10:46 PM, Maxthon Chan 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 > have versio

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 different