Re: Advice on document handling

2014-06-09 Thread John Brownie
On Tue Jun 10 2014 13:14:51 GMT+1000 (PGT) Graham Cox wrote: On 10 Jun 2014, at 11:28 am, John Brownie wrote: I think that the problem is likely to involve the fact that documents can be owned by both the bundle document class and the simple document class, and trying to save the same docume

Re: Advice on document handling

2014-06-09 Thread Graham Cox
On 10 Jun 2014, at 11:28 am, John Brownie wrote: > I think that the problem is likely to involve the fact that documents can be > owned by both the bundle document class and the simple document class, and > trying to save the same document may be leading to the problem. But is it the same fi

Other app blocks mine from opening my documents

2014-06-09 Thread Seth Willits
My app opens SQL files so I declared a UTI for it in Exported UTIs in the app Info.plist with my own identifier, uses sql as an extension, has a text/plain mime type, and conforms to public.plain-text. My app opens a new document window, I edit it, it autosaves, and on relaunch Cocoa yells at

Advice on document handling

2014-06-09 Thread John Brownie
My app can handle documents in two different forms. One is a simple file, while the other is a bundle that can contain one or more of that same kind of file plus some metadata about them. The simple file is handled as an NSDocument subclass, and is written out with dataOfType:error:. It return

Re: NSTimer invalidation...

2014-06-09 Thread Graham Cox
On 10 Jun 2014, at 8:01 am, Peters, Brandon wrote: > Is it safe to invalidate a timer from within the timer callback function? Yes. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator co

NSTimer invalidation...

2014-06-09 Thread Peters, Brandon
Is it safe to invalidate a timer from within the timer callback function? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.ap

Re: IKImageBrowserCell

2014-06-09 Thread SevenBits
On Monday, June 9, 2014, Daniel Luis dos Santos wrote: > Hello all, > > I have a IKImageBrowserView that I want to customise. I want to add a > button to each IKImageBrowser|Cell that when pushed does some action. > > How can I do that ? Is using NSCollectionView an option? > > Thanks > > > _

Re: printOperationWithView multiple views

2014-06-09 Thread Leonardo
Hi Kyle, thank you. I am just approaching this method. I create a parentView, then from the API beginPageInRect I replace its content with the current page's view. The problem is that when I move to the parentView the page's view currently displayed on the screen, this page disappears from the wind

Re: printOperationWithView multiple views

2014-06-09 Thread Kyle Sluder
On Jun 9, 2014, at 10:05 AM, Leonardo wrote: > > I have a document with several pages. Each page has its own custom view. > When I print it using printOperationWithView: I must pass here one only > view. But I have several views. > If I pass the first page's view, then when I click on the preview

IKImageBrowserCell

2014-06-09 Thread Daniel Luis dos Santos
Hello all, I have a IKImageBrowserView that I want to customise. I want to add a button to each IKImageBrowser|Cell that when pushed does some action. How can I do that ? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

printOperationWithView multiple views

2014-06-09 Thread Leonardo
I have a document with several pages. Each page has its own custom view. When I print it using printOperationWithView: I must pass here one only view. But I have several views. If I pass the first page's view, then when I click on the preview next page button, nothing happens. And there is no way t

Re: OpenGL and crawling ants

2014-06-09 Thread Todd Heberlein
On Jun 8, 2014, at 7:40 PM, Seth Willits wrote: > Use mipmaps, and if that's still not high enough quality, anisotropic > filtering. Thanks! That is much better. Side note: when setting GLKTextureLoaderGenerateMipmaps to YES, the texture (apparently) should be a power of 2 (I'm using 512 x

Re: NS_DESIGNATED_INITIALIZER expected : (colon)

2014-06-09 Thread Jens Alfke
On Jun 9, 2014, at 5:03 AM, Devarshi Kulshreshtha wrote: > Any ideas on how to properly use NS_DESIGNATED_INITIALIZER? Are you using the Xcode 6 beta, and does your target use the OS X 10.10 or iOS 8 SDK? If not, that keyword isn’t defined (it’s a preprocessor macro) and will cause a syntax

Re: Stupid bindings!%#$% :)

2014-06-09 Thread Keary Suska
On Jun 9, 2014, at 8:27 AM, William Squires wrote: > Okay, clearly I'm still missing something. Let's say I have a model object: > > @interface SMPLPlayer : NSObject > > ... > @property (nonatomic, assign) NSUInteger pcLevel; > ... > @end > > and now I also have an NSWindowController subclass:

Re: Best practices with singletons

2014-06-09 Thread Glenn L. Austin
On Jun 8, 2014, at 9:30 AM, William Squires wrote: > Okay, I have several classes in my (somewhat large, and growing) project > that implement the singleton pattern via a [ shared] > class method (and a file-scope static reference) that uses lazy loading to > instantiate the singleton the fir

Stupid bindings!%#$% :)

2014-06-09 Thread William Squires
Okay, clearly I'm still missing something. Let's say I have a model object: @interface SMPLPlayer : NSObject ... @property (nonatomic, assign) NSUInteger pcLevel; ... @end and now I also have an NSWindowController subclass: @interface SMPLRollPCWindowController : NSWindowController ... @proper

Re: NS_DESIGNATED_INITIALIZER expected : (colon)

2014-06-09 Thread Michael Babin
On Jun 9, 2014, at 7:03 AM, Devarshi Kulshreshtha wrote: > I am trying to declare a designated initializer like this: > > - (instancetype)initWithDelegate:(id )delegate > NS_DESIGNATED_INITIALIZER; > > But it is showing me this compilation error: > > Expected ':' > > Interestingly when I try

NS_DESIGNATED_INITIALIZER expected : (colon)

2014-06-09 Thread Devarshi Kulshreshtha
I am trying to declare a designated initializer like this: - (instancetype)initWithDelegate:(id )delegate NS_DESIGNATED_INITIALIZER; But it is showing me this compilation error: Expected ':' Interestingly when I try to write it like this (reference link: https://developer.apple.com/library/prer