How to restrict an app to run from harddisk

2012-05-22 Thread Abhijeet Singh
Hi,How can I check whether my application is running from Harddisk or from a removable media (CD, USB drive...). I used [[NSWorkspace sharedWorkspace] getFileSystemInfoForPath:path isRemovable:&isRem isWritable:&isWritable isUnmountable:&isUnmountable description:&description type:&type] method

Re: Bidirectional, Manual Binding in custom control

2012-05-22 Thread Jerry Krinock
On 2012 May 21, at 21:52, Quincey Morris wrote: > This seems more or less the correct approach to defining a custom binding. > "More or less" because you may have committed some minor technical violation > of custom binding implementations, described unintelligibly in this document: > >

Re: How to restrict an app to run from harddisk

2012-05-22 Thread Scott Ribe
On May 22, 2012, at 3:50 AM, Abhijeet Singh wrote: > ...I run my app from disk image the isRemovable parameter still shows that it > is running from removable media and that's not true. Well, yes it is. The disk image is unmountable. Maybe the system's definition of removable is different than

MapKit overlay tip

2012-05-22 Thread Alex Zavatone
Just wanted to pass on this little pearl I just discovered in the case that it might help someone else. I've got a bunch of images that I'm using as mapKit mapView overlays for iOS devices and of course was interested in having them be as small as possible and load as fast as possible. So, I t

Re: MapKit overlay tip

2012-05-22 Thread Conrad Shultz
On 5/22/12 12:52 PM, Alex Zavatone wrote: > Just wanted to pass on this little pearl I just discovered in the > case that it might help someone else. > > I've got a bunch of images that I'm using as mapKit mapView overlays > for iOS devices and of course was interested in having them be as > small

NSTextView row number

2012-05-22 Thread ecir hana
Hello, I have a NSTextView and would like to keep track of where the cursor is in terms of a line number. Please, is there a way to figure this out somehow (akin ti lineRangeForRange:) or do I have to calculate it myself, e.g. by caching newlines locations?

PDFThumbnailView Problem (kind of)

2012-05-22 Thread Matthew Weinstein
Dear Cocoa-gurus, I have a typical thumbnailview on a drawer and a pdfview in main window. I have a category that lets me drag and drop a pdf onto the pdfview; it then gets the url and sets a pdfdocument to that url; sets the pdfview and sets the thumbnailview to the pdfview. It "seems" to work

group row custom drawing nstableview

2012-05-22 Thread Rick C.
Hi, I'm having some trouble doing a custom drawing for my group row in a view-based nstableview. First of all I subclassed NSTableRowView is this correct? And if so the problem I'm having is to recreate the floating effect which normally happens automatically if using a standard NSTableCellVi

Re: NSTextView row number

2012-05-22 Thread Jens Alfke
On May 22, 2012, at 3:14 PM, ecir hana wrote: > I have a NSTextView and would like to keep track of where the cursor is in > terms of a line number. Please, is there a way to figure this out somehow > (akin ti lineRangeForRange:) or do I have to calculate it myself, e.g. by > caching newlines loc

Re: PDFThumbnailView Problem (kind of)

2012-05-22 Thread Antonio Nunes
On 23 May 2012, at 03:53, Matthew Weinstein wrote: > I have a typical thumbnailview on a drawer and a pdfview in main window. I > have a category that lets me drag and drop a pdf onto the pdfview; it then > gets the url and sets a pdfdocument to that url; sets the pdfview and sets > the thumbna