Re: -[NSFileHandle readInBackgroundAndNotify] opens the file again

2012-07-20 Thread Rick Mann
On Jul 16, 2012, at 12:02 , Greg Parker wrote: > What does the Allocations instrument say about the retain/release history? If > it looks like -readInBackgroundAndNotify is performing an extra retain that > doesn't get released then you should file a bug report. Hrm, I don't know how to use Al

How to create multi-resolution NSImage programmatically?

2012-07-20 Thread Oleg Krupnov
Hi, I need to create NSImages programmatically in memory, and I want them to display correctly on Retina displays. Namely, I have two images btnImage.png and btnim...@2x.png in resources of my app bundle. At run time, I take that image [NSImage imageNamed:@"btnImage"] and split it into three NSIm

Re: NSAutounbinder not releasing my object in a timely manner

2012-07-20 Thread Jonathan Taylor
Thankyou both for your very helpful replies. The dispatch group approach sounds like a nice one - especially using dispatch_group_notify, which I had somehow overlooked. Thanks also Ken for your detailed reply to my ramblings, that was very useful for getting my understanding straightened out. J

to highlight a outline view row on mouse over

2012-07-20 Thread Nick Rogers
Hi, I wish to highlight a row on mouse over by changing the background color to light blue. And back to regular when mouse moves away from the row. Have seen a few examples of it on the internet. But is there any efficient way to do this? Any help would be greatly appreciated... Thanks, Nick _

Using RBSplitView or BWSplitView programmatically

2012-07-20 Thread Rui Pacheco
Hello, I'm trying to implement a Split View that can collapse and expand its subviews gracefully. I've rolled out my own code and found that its not yet polished enough and I don't know how long it will take. I'm now considering using BWSplitView or RBSplitView as these two do exactly what I need

Re: Sharing a file between Mac and iOS

2012-07-20 Thread Sean McBride
On Thu, 19 Jul 2012 15:58:34 -0700, Gavin Stokes said: >Developers could do this routinely in the '90s under Palm OS; and yet years >into the iPhone SDK, Apple still hasn't figured it out? This should have >been expected and resolved within the first couple of SDK updates, if not >at launch. I'm

setting selection in PDFView

2012-07-20 Thread Martin Hewitson
Dear list, In my app I have a user action which allows them to select a particular line in a PDFView. The relevant method (on my PDFView subclass) looks like this. - (void)displayLineAtPoint:(NSPoint)point inPageAtIndex:(NSUInteger)pageIndex { if (pageIndex < [[self document] pageCount]) {

Re: setting selection in PDFView

2012-07-20 Thread Markus Spoettl
On 7/20/12 6:28 PM, Martin Hewitson wrote: Dear list, In my app I have a user action which allows them to select a particular line in a PDFView. The relevant method (on my PDFView subclass) looks like this. - (void)displayLineAtPoint:(NSPoint)point inPageAtIndex:(NSUInteger)pageIndex { if (

Re: setting selection in PDFView

2012-07-20 Thread Martin Hewitson
On Jul 20, 2012, at 07:13 PM, Markus Spoettl wrote: > On 7/20/12 6:28 PM, Martin Hewitson wrote: >> Dear list, >> >> In my app I have a user action which allows them to select a particular line >> in a PDFView. The relevant method (on my PDFView subclass) looks like this. >> >> - (void)displa

Re: Icon Overlay on Mac OSX

2012-07-20 Thread Uli Kusterer
On 18.07.2012, at 12:37, Alfian Busyro wrote: > Just like I thought, injecting code is not a good way to do this. > So, is it impossible to do this without injecting code to Finder ? BTW -- just because nobody has mentioned it yet: You can also take the approach many other applications use: Creat

Re: setting selection in PDFView

2012-07-20 Thread Antonio Nunes
On 20 Jul 2012, at 18:26, Martin Hewitson wrote: >>> In my app I have a user action which allows them to select a particular >>> line in a PDFView. The relevant method (on my PDFView subclass) looks like >>> this. >>> >>> - (void)displayLineAtPoint:(NSPoint)point >>> inPageAtIndex:(NSUInteger)

Re: looking for a memory problem

2012-07-20 Thread Sean McBride
On Thu, 19 Jul 2012 09:43:12 +1000, Shane Stanley said: >> But you can prepare your code slowly, in a way that supports both. ex: >> - replace all use of NSAllocateCollectable with malloc/free >> - change 'retain' to 'strong' in property declarations >> - replace CFMakeCollectable with CFBridging

Cell in Selected NSTableView Not Redrawn

2012-07-20 Thread Keary Suska
In an NSTableView I am providing custom cells via tableView:dataCellForTableColumn:row:, based on values represented in other columns. The cell is usually determined when a value is specified via NSPopupButtonCells in two other columns. When an effecting value is changed, I call reloadDataForRo

Re: Cell in Selected NSTableView Not Redrawn

2012-07-20 Thread Quincey Morris
On Jul 20, 2012, at 19:03 , Keary Suska wrote: > In an NSTableView I am providing custom cells via > tableView:dataCellForTableColumn:row:, based on values represented in other > columns. The cell is usually determined when a value is specified via > NSPopupButtonCells in two other columns. Whe