Re: Root URL and URLByDeletingLastPathComponent

2016-07-18 Thread thatsanicehatyouhave
On Jul 18, 2016, at 7:37 AM, Mike Abdullah wrote: > Fair enough, thanks! I would say then yes, it’s a mismatch between the docs > and the implementation. > > File a radar, but don’t expect the real-world behaviour to change, especially > any time soon! It’s far more likely they will declare i

Re: Root URL and URLByDeletingLastPathComponent

2016-07-17 Thread thatsanicehatyouhave
Hi, On Jul 17, 2016, at 6:30 AM, Mike Abdullah wrote: > It might be a mishandling of the two sorts of rot URL. If you try feeding in > this URL manually: > > file://localhost/ > > and removing the last component, what do you end up with? That just treats it as a file called "localhost" in th

Root URL and URLByDeletingLastPathComponent

2016-07-16 Thread thatsanicehatyouhave
Hello, Sanity check here. I have this code: NSURL *rootURL = [NSURL fileURLWithPath:@"/"]; NSLog(@"%@", rootURL, [rootURL URLByDeletingLastPathComponent]); Based on the NSURL documentation: > If the receiver’s URL represents the root path, this property contains a copy > of the original URL.

Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-03 Thread thatsanicehatyouhave
On May 3, 2016, at 2:53 PM, Jens Alfke wrote: > No, because it eagerly creates a view for every item in the collection. So if > you have a spreadsheet with 100,000 cells, it’s going to create 100,000 > NSViews when the window opens. I should have been more specific - my understanding was that

Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-01 Thread thatsanicehatyouhave
Hi, I have an NSTableView that may sometimes be called upon to display very large amounts of data. I can handle this in the vertical aspect - while my data source may have many thousands of rows, I only load batches of 500 at a time, and NSTableView doesn't slow down for rows not displayed. Thi

Re: LGPL code in the Mac App Store?

2016-01-29 Thread thatsanicehatyouhave
On Jan 29, 2016, at 11:37 AM, Dru Satori wrote: > Keep in mind that LGPL restrictions got tighter in v3, and I know there > remain many projects out there that are LGPL but have refused v3 for these > reasons. True. Based on my understanding, what I outlined should satisfy both v2 and v3. On

Re: LGPL code in the Mac App Store?

2016-01-29 Thread thatsanicehatyouhave
Hi, Thanks to everyone who answered or commented on this question. This is my understanding of one path forward. (And everybody sing along, I am not a lawyer, and the fact that the license is so convoluted that almost literally everyone feels the need to make this disclaimer is one of the thing

LGPL code in the Mac App Store?

2016-01-26 Thread thatsanicehatyouhave
Hi, I’m working on a program that I will be submitting to the Mac App Store that uses LGPL code. I have recently learned that the license requires the capability for the end user to create their own version of the LGPL library to link against the application (I have been compiling the source di

Caching CIContext?

2015-11-27 Thread thatsanicehatyouhave
Hi, I have an NSImageView with a custom drawing routine. It works as expected most of the time, but sometimes the image is not drawn - the reason was not obvious. Once when this happened, I opened a popover window and saw that image drawn in its background, so it appears I’m doing something inc

Draggable area of NSPopover

2015-08-12 Thread thatsanicehatyouhave
Hi, I’ve implemented an NSPopover. Currently part of the view is empty, and part contains a graph (of class CPTGraphHostingView, an NSView subclass from Core Plot). When the popover is attached, the entire view is draggable, which means I can’t interact with the plot as the mouse events are bei

Auto Layout with NSSplitView, NSScrollView

2014-01-04 Thread thatsanicehatyouhave
Hi, I have a couple of questions about using auto layout (AL) with NSSplitView and NSScrollView. I have watched the (excellent) WWDC videos from 2012, but am having problems. I'm trying to implement an NSSplitView (not a custom view that's similar to NSSplitView) and want to retain the behavio

Re: Getting mouse events in view placed in NSTableRowView

2012-11-23 Thread thatsanicehatyouhave
Hi Kyle, Thanks for the comments. On Nov 23, 2012, at 3:32 PM, Kyle Sluder wrote: > Are you sure you don't want to make it a subview of the cell view instead? Sorry, I should have mentioned; I want the cell view that I click to remain where it is, and the custom detail view will be rather lar

Getting mouse events in view placed in NSTableRowView

2012-11-23 Thread thatsanicehatyouhave
Hi, I'm having a problem with a subclass of NSTableRowView I'm trying to implement. I have custom NSTableCellView that contains a button. When I press the button, I want that row to expand in height. I would like to then place a custom NSView into that new space (think of it as a detail view of

Bulletproof way to create a new CGBitmapContext from an existing image?

2009-11-02 Thread thatsanicehatyouhave
Hi, I have some code where I'm downloading images from the internet. They're probably all going to be jpegs, but I'm not making that assumption in my code. I have no control over the images. I'm creating a CGBitmapContext to manipulate them. Further, I'm scaling the image (could be up or

NSDateFormatter and NSCell oddness

2008-07-08 Thread thatsanicehatyouhave
Hello, I'm trying to replicate the Finder's behaviour for date fields when resizing. I found this on the archives which pretty much has the answer: http://www.cocoabuilder.com/archive/message/cocoa/2005/8/9/143911 I'm trying to update it so that it returns the correct value for the current