NSOutlineView click and bug

2015-01-07 Thread Leonardo
Hi, I'm struggling with a singular trouble. In my window I have put an NSOutlineView and a NSScrollView containing a NSClipView containing an NSView. I subclassed the NSClipView and overrided the magnifyWithEvent method. This way I can better control the zooming of the clipView and its

Re: NSVisualEffectView NSVisualEffectBlendingModeBehindWindow transparency

2015-01-07 Thread Jacek Oleksy
On Tue, Jan 6, 2015 at 12:58 AM, Corbin Dunn corb...@apple.com wrote: On Dec 26, 2014, at 2:26 AM, Jacek Oleksy jole...@opera.com wrote: The popup that is created gets the vibrancy effect only from the window that is right below it. Any ideas on how to make it work for custom window?

Re: URLByResolvingBookmarkData not case sensitive

2015-01-07 Thread Robert Martin
Since the file system is case insensitive, why not store the path in upper or lower case, and convert the path you’re comparing accordingly? When adding new files, I need to make sure the file is not already in the database so I compare the paths. This works well except when the case

Re: Blurry is the New Sharp

2015-01-07 Thread Michael Crawford
The last time I reported a bug of any sort to anyone, I reported quite a serious iOS security hole via Radar. The Apple engineer who responded quite angrily closed my bug as works as expected. He didn't just close the bug - he expressed a great deal of anger for having reported the exploit at

Re: Request for guidance re. CALayer

2015-01-07 Thread Graham Cox
On 8 Jan 2015, at 2:02 am, Luc Van Bogaert luc.van.boga...@me.com wrote: I also have implemented a custom view class CanvasView representing the app’s drawing canvas. I realise I could do all the drawing using this view’s drawRect: method. But somehow I keep having this feeling that I

Re: NSOutlineView click and bug

2015-01-07 Thread Graham Cox
On 7 Jan 2015, at 8:01 pm, Leonardo mac.iphone@gmail.com wrote: The zoom occurs so slowly On 10.10? This is a bug in the OS. They changed it so that it would interpolate pinch events to create a smooth animation of the zoom, but it doesn't work. The events arrive at 90 per second so

Re: Saving NSAttributedString to a File

2015-01-07 Thread Jens Alfke
On Jan 7, 2015, at 1:49 PM, Jeffrey Oleander jgo...@yahoo.com wrote: So, then the problem becomes, how do you get it to pass on those custom tags as custom attributes, or to your custom attribute processor? By writing your own RTF codec. Apple's doesn't support this. —Jens

NSURLSession delegate not being called in iOS Simulator

2015-01-07 Thread Steve Christensen
An app I'm working on connects to our server with SSL. The production server has an SSL certificate but the development server does not. When testing new server code on the development server I initialize the NSURLSession with [NSURLSession sessionWithConfiguration:delegate:delegateQueue:],

Re: Blurry is the New Sharp

2015-01-07 Thread Graham Cox
On 7 Jan 2015, at 9:56 am, Uli Kusterer witness.of.teacht...@gmx.net wrote: It’s amazing how many people don’t understand what the phrase “leaving aside” means on this mailing list. :-p True, but it's also clear that it's a source of frustration for developers, and one where there's no

Displaying a scaling, relative time or date

2015-01-07 Thread Graham Cox
I want a label in my interface to display a relative time using a sensible approximate scale depending on the value. I'm not sure if I can use NSDateFormatter for this - it seems it's a bit too fixed in using only the units you assign. For example, if the value is less than a minute, it should

Re: Displaying a scaling, relative time or date

2015-01-07 Thread Ken Thomases
On Jan 7, 2015, at 6:18 PM, Graham Cox graham@bigpond.com wrote: I want a label in my interface to display a relative time using a sensible approximate scale depending on the value. I'm not sure if I can use NSDateFormatter for this - it seems it's a bit too fixed in using only the

Re: Displaying a scaling, relative time or date

2015-01-07 Thread Graham Cox
On 8 Jan 2015, at 11:52 am, Ken Thomases k...@codeweavers.com wrote: If you can require 10.10 or iOS 8, there's a new class for this: NSDateComponentsFormatter. There's no class reference for it yet. It's described in the Foundation release notes

Re: ARC query

2015-01-07 Thread Sean McBride
On Wed, 7 Jan 2015 12:02:16 -0600, Ken Thomases said: Short answer: yes, the alert is retained. Meaning that one must use the weak/strong dance pattern like this? NSAlert *alert = [NSAlert new]; alert.alertStyle = NSWarningAlertStyle; alert.messageText = @“Do not touch!; __weak NSAlert*

Re: ARC query

2015-01-07 Thread Mike Abdullah
On 7 Jan 2015, at 20:55, Sean McBride s...@rogue-research.com wrote: On Wed, 7 Jan 2015 12:02:16 -0600, Ken Thomases said: Short answer: yes, the alert is retained. Meaning that one must use the weak/strong dance pattern like this? NSAlert *alert = [NSAlert new]; alert.alertStyle =

Re: URLByResolvingBookmarkData not case sensitive

2015-01-07 Thread Robert Martin
Ignore my previous post - I hadn’t looked at the thread! On Jan 7, 2015, at 8:40 AM, Robert Martin robmar...@frontiernet.net wrote: Since the file system is case insensitive, why not store the path in upper or lower case, and convert the path you’re comparing accordingly? When adding

Re: URLByResolvingBookmarkData not case sensitive

2015-01-07 Thread Ken Thomases
On Jan 6, 2015, at 11:37 PM, Trygve Inda cocoa...@xericdesign.com wrote: On Jan 6, 2015, at 8:43 PM, Trygve Inda cocoa...@xericdesign.com wrote: Ultimately what I need to able to do is compare a bookmark to a path. Why? Or rather, what is the reason underlying that one? I am keeping a

Re: Saving NSAttributedString to a File

2015-01-07 Thread Jeffrey Oleander
On 2014 Dec 19, at 17:00, Jens Alfke wrote: On Dec 19, 2014, at 1:39 PM, Charles Jenkins cejw...@gmail.com wrote: But when it comes time to save to a file format selected from AppKit additions (e.g. RTFFromRange:documentAttributes:), any unusual, application-specific attributes will be lost.

Re: ARC query

2015-01-07 Thread Clark S. Cox III
On Jan 7, 2015, at 12:55, Sean McBride s...@rogue-research.com wrote: On Wed, 7 Jan 2015 12:02:16 -0600, Ken Thomases said: Short answer: yes, the alert is retained. Meaning that one must use the weak/strong dance pattern like this? No. The weak/strong dance would only be needed if

Request for guidance re. CALayer

2015-01-07 Thread Luc Van Bogaert
Hello, I’ve been working on a drawing app for OS X in Objective-C for personal educational purposes. Thanks to the help I’ve received from various people in this list, this is coming along very nicely, but now I am once again calling for your help on a more complex subject. My aim for this

Re: NSScrollView autolayout (10.10)

2015-01-07 Thread Ken Thomases
On Jan 7, 2015, at 6:26 AM, Roland King r...@rols.org wrote: I want an NSStackView which can be scrolled. I dragged an NSScrollView out in IB, that gives me a scrollview, the scrollers, a clip view and a child NSView of the clip view, which IB doesn’t want you to delete. I dragged my

Re: ARC query

2015-01-07 Thread Ken Thomases
On Jan 7, 2015, at 9:32 AM, Jonathan Mitchell jonat...@mugginsoft.com wrote: I use this construct quite a lot without really thinking about it under ARC I don’t retain a reference to the alert. Does -beginSheetModalForWindow: completionHandler: cause the receiver to be retained until after

Re: Request for guidance re. CALayer

2015-01-07 Thread Richard Charles
On Jan 7, 2015, at 8:02 AM, Luc Van Bogaert luc.van.boga...@me.com wrote: For instance, I have already been able to create and add sublayers to a layer-backed view, but it is still unclear to me how to draw graphic content in these layers. I would start by drawing something to a single

Re: Request for guidance re. CALayer

2015-01-07 Thread Corbin Dunn
On Jan 7, 2015, at 7:02 AM, Luc Van Bogaert luc.van.boga...@me.com wrote: Hello, I’ve been working on a drawing app for OS X in Objective-C for personal educational purposes. Thanks to the help I’ve received from various people in this list, this is coming along very nicely, but now I

Re: NSOutlineView click and bug

2015-01-07 Thread Corbin Dunn
Hi Leornardo, Please log this as a bug. You are running Mac OS 10.10, right? corbin On Jan 7, 2015, at 1:01 AM, Leonardo mac.iphone@gmail.com wrote: Hi, I'm struggling with a singular trouble. In my window I have put an NSOutlineView and a NSScrollView containing a NSClipView

Re: Request for guidance re. CALayer

2015-01-07 Thread Gordon Apple
We have a Mac application that uses CALayers (subclassed) for layered drawing. Our drawing view uses a drawing delegate for drawing (rendering) and a Edit delegate for interaction. The latter is in a view controller that is also inserted into the view¹s responder chain. (Edit Delegate methods are

NSScrollView autolayout (10.10)

2015-01-07 Thread Roland King
I want an NSStackView which can be scrolled. I dragged an NSScrollView out in IB, that gives me a scrollview, the scrollers, a clip view and a child NSView of the clip view, which IB doesn’t want you to delete. I dragged my NSStackView out and made it a child of that view +- NSScrollview

ARC query

2015-01-07 Thread Jonathan Mitchell
I use this construct quite a lot without really thinking about it under ARC I don’t retain a reference to the alert. Does -beginSheetModalForWindow: completionHandler: cause the receiver to be retained until after the completion handler returns? NSAlert *alert = [NSAlert new];