NSTableView binding and clickedRow returning -1

2015-01-05 Thread Hajder Rabiee
Hi Thought I would post something I see as reoccurring problem. Basically, having an NSTableView (wrapped in a custom NSView) setup with bindings works fine. Then, trying to get the double-action/target in IB working has strange behaviour when it comes to fetching clickedRow. *Referring to my own

Blurry is the New Sharp

2015-01-05 Thread Charles Jenkins
Leaving aside any discussion of whether it was a good idea to add "vibrancy" to the OS, I do have a question about how to use it. When a popup window or a pulldown such as a menu appears, using the content of whatever's under it as the source image for vibrancy makes sense because the tempora

Re: Blurry is the New Sharp

2015-01-05 Thread Alex Zavatone
On Jan 5, 2015, at 7:58 AM, Charles Jenkins wrote: > Leaving aside any discussion of whether it was a good idea to add "vibrancy" > to the OS, I do have a question about how to use it. Um, it was a terrible amateurish idea. ___ Cocoa-dev mailing

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-05 Thread Charles Jenkins
In case it helps anyone, here's how my NSOutlineView rearranging story ends. I found that reloadItem: works perfectly well to update disclosure triangles. In my acceptDrop method, I tracked which parent items were affected by the move by adding them to an NSSet, then I use performSelector:with

URLByResolvingBookmarkData not case sensitive

2015-01-05 Thread Trygve Inda
I am using URLByResolvingBookmarkData . If I make a Bookmark to a file: /Volumes/Macintosh HD/Documents/MyFile.txt and later resolve it with URLByResolvingBookmarkData, I get the original path as expected. Then if I change the filename to MYFILE.txt in the Finder and resolve the bookmark again,

Re: Blurry is the New Sharp

2015-01-05 Thread Paul Scott
On Jan 5, 2015, at 5:01 AM, Alex Zavatone wrote: > > On Jan 5, 2015, at 7:58 AM, Charles Jenkins wrote: > >> Leaving aside any discussion of whether it was a good idea to add "vibrancy" >> to the OS, I do have a question about how to use it. > > Um, it was a terrible amateurish idea. And a

Re: Blurry is the New Sharp

2015-01-05 Thread Steve Mills
On Jan 5, 2015, at 11:00:57, Paul Scott wrote: > > On Jan 5, 2015, at 5:01 AM, Alex Zavatone wrote: >> >> On Jan 5, 2015, at 7:58 AM, Charles Jenkins wrote: >> >>> Leaving aside any discussion of whether it was a good idea to add >>> "vibrancy" to the OS, I do have a question about how to use

Re: Blurry is the New Sharp

2015-01-05 Thread Jens Alfke
> On Jan 5, 2015, at 9:00 AM, Paul Scott wrote: > > And a waste of time that should have been spent elsewhere. I usually dislike piling in on Apple's UI blunders, but in this case I'm compelled to agree :-p I honestly thought that in the post-Steve-Jobs era we at least wouldn't get these poi

Re: URLByResolvingBookmarkData not case sensitive

2015-01-05 Thread Fritz Anderson
On 5 Jan 2015, at 10:11 AM, Trygve Inda wrote: > > I am using URLByResolvingBookmarkData . > > If I make a Bookmark to a file: > > /Volumes/Macintosh HD/Documents/MyFile.txt > > and later resolve it with URLByResolvingBookmarkData, I get the original path > as expected. > > Then if I change

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-05 Thread Quincey Morris
On Jan 5, 2015, at 05:12 , Charles Jenkins wrote: > > reloadItem: doesn't request a view What does “request a view” mean? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Blurry is the New Sharp

2015-01-05 Thread Bill Cheeseman
> On Jan 5, 2015, at 12:11 PM, Jens Alfke > wrote: > > I guess the best we can do as developers is to vote with our feet by not > adopting it in our apps. The documentation for implementing vibrancy in our own views is incomplete, inconsistent and hard to follow, a

Re: Blurry is the New Sharp

2015-01-05 Thread Alex Zavatone
On Jan 5, 2015, at 1:13 PM, Bill Cheeseman wrote: > >> On Jan 5, 2015, at 12:11 PM, Jens Alfke > > wrote: >> >> I guess the best we can do as developers is to vote with our feet by not >> adopting it in our apps. > > > The documentation for implementing vibrancy in

Re: Blurry is the New Sharp

2015-01-05 Thread Georg Seifert
> > I guess the best we can do as developers is to vote with our feet by not > adopting it in our apps. (I haven't had to deal with an OS X source list in a > while; I assume "vibrancy" has to be opted into? Or at least there's a way to > opt out?) No, it is on by default and no way (that I kn

Re: Blurry is the New Sharp

2015-01-05 Thread Charles Jenkins
Georg, I believe you can uncheck "allows vibrancy" in IB. But back to my original question: does anyone know how to make the vibrancy effect be based only on the desktop image, ignoring any other windows which might be beneath the foreground app? — Charles On Monday, January 5, 2015 at

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-05 Thread Charles Jenkins
Well, the view-based outline view calls my delegate to get the view pointer for a given item, and in response my delegate dutifully creates one, sets its text and image, and hands it over. But after that the item view I created is owned by the outline view, and I think--but would be happy to be

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-05 Thread Ken Thomases
On Jan 5, 2015, at 12:48 PM, Charles Jenkins wrote: > Well, the view-based outline view calls my delegate to get the view pointer > for a given item, and in response my delegate dutifully creates one, sets its > text and image, and hands it over. But after that the item view I created is > own

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-05 Thread Quincey Morris
On Jan 5, 2015, at 10:48 , Charles Jenkins wrote: > > Well, the view-based outline view calls my delegate to get the view pointer > for a given item, and in response my delegate dutifully creates one, sets its > text and image, and hands it over. Creating the cell view and populating the cell

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-05 Thread Kyle Sluder
On Jan 5, 2015, at 10:48 AM, Charles Jenkins wrote: > > Well, the view-based outline view calls my delegate to get the view pointer > for a given item, and in response my delegate dutifully creates one, sets its > text and image, and hands it over. But after that the item view I created is > o

Re: Blurry is the New Sharp

2015-01-05 Thread Markus Spoettl
On 05/01/15 19:32, Georg Seifert wrote: I guess the best we can do as developers is to vote with our feet by not adopting it in our apps. (I haven't had to deal with an OS X source list in a while; I assume "vibrancy" has to be opted into? Or at least there's a way to opt out?) No, it is on

Re: Rearranging NSOutlineView via drag-and-drop

2015-01-05 Thread Charles Jenkins
Thanks to everyone for the info about viewForTableColumn:item:. I overlooked it somehow in my search. You're right, I do all the configuration in outlineView:viewForTableColumn:item:, but when I tested using reloadItem: on affected nodes of the tree, the disclosure triangles got updated but

Re: Blurry is the New Sharp

2015-01-05 Thread Graham Cox
> On 6 Jan 2015, at 4:11 am, Jens Alfke wrote: > > I honestly thought that in the post-Steve-Jobs era we at least wouldn't get > these pointless gee-wow visual effects anymore; he was always very > susceptible to them. Glad I'm not the only one thinking this. It's not just pointless eye-can

Re: Blurry is the New Sharp

2015-01-05 Thread Michael Crawford
I'm going to be 51 years old soon. I spend all day long staring at a computer. I've had trouble with eye fatigue for years. Semitransparent windows drive me nuts; to the extent I can turn off the effect I do so. Michael David Crawford, Consulting Software Engineer mdcrawf...@gmail.com http://www

Re: Blurry is the New Sharp

2015-01-05 Thread Corbin Dunn
> > My app will have a source view, so I'd like to know if there's a way to tell > the window server to use only the desktop image to create vibrancy effects in > a the sidebar, ignoring any other windows which may lie between my app and > the desktop. This is not possible. corbin _

Re: NSVisualEffectView & NSVisualEffectBlendingModeBehindWindow & transparency

2015-01-05 Thread Corbin Dunn
> On Dec 26, 2014, at 2:26 AM, Jacek Oleksy wrote: > > Hi, > I add vibrancy effect to my window using the following code: > > In the view class: > - (void)awakeFromNib { > NSVisualEffectView* vibrantView = [[NSVisualEffectView alloc] > initWithFrame:self.frame]; > vibrantView.appearance = [NSAp

Re: Blurry is the New Sharp

2015-01-05 Thread Quincey Morris
OMG, did they release Xcode 4 again? No? Then what are we talking about? [I’m begging you all to take your opinions on this subject somewhere where I don’t have to see them.] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Blurry is the New Sharp

2015-01-05 Thread Roland King
> On 6 Jan 2015, at 07:38, Graham Cox wrote: > > >> On 6 Jan 2015, at 4:11 am, Jens Alfke wrote: >> >> I honestly thought that in the post-Steve-Jobs era we at least wouldn't get >> these pointless gee-wow visual effects anymore; he was always very >> susceptible to them. > > > Glad I'm n

Re: Blurry is the New Sharp

2015-01-05 Thread Graham Cox
> On 5 Jan 2015, at 11:58 pm, Charles Jenkins wrote: > > if there's a way to tell the window server to use only the desktop image to > create vibrancy effects in a the sidebar, ignoring any other windows which > may lie between my app and the desktop Would you really want that, even if it co

Re: Blurry is the New Sharp

2015-01-05 Thread Stephane Sudre
On Tue, Jan 6, 2015 at 12:38 AM, Graham Cox wrote: > It's not just pointless eye-candy, it's actually contrary to usability. In > Safari, I'd come to the conclusion that the window frame "tint" was an > indication of whether you were in a private session or a non-private one, but > after some

UIAutomation, cannot tap UIImagePickerController Choose button

2015-01-05 Thread Juan Felipe Alvarez Saldarriaga
Hi, I’m trying to make some test with UIAutomation, basically, I select an image from the camera roll, UIImagePickerController allowsEditing property is set to YES. When I try to tap the “Choose” button I got this error: Script threw an uncaught JavaScript error: target.frontMostApp().

Re: Blurry is the New Sharp

2015-01-05 Thread Charles Jenkins
Well, the user has selected a desktop wallpaper he likes, presumably with a pleasing color scheme. Taking vibrancy from an image the user has already indicated a preference for is much kinder than blurring in whatever happens to be in a window behind the foreground app. — Charles Jenkins On