Re: Problem getting import UTI recognised

2014-10-16 Thread Graham Cox
On 16 Oct 2014, at 5:18 pm, Quincey Morris wrote: > I dunno, but I also got into LS database hell once, and it wasn’t fun. Well, that's actually a help - it means that what I'm experiencing isn't necessarily unique. > From what I recall, rebuilding the database isn’t really reliable. Whether

Re: Problem getting import UTI recognised

2014-10-16 Thread Graham Cox
On 16 Oct 2014, at 7:04 pm, Graham Cox wrote: > It acts exactly the same. > > I subclassed NSDocumentController so I can intercept and log some of the > internals, and the file types being passed to > -beginOpenPanel:forTypes:completionHandler: are correct - all of the document > types I dec

Re: Problem getting import UTI recognised

2014-10-16 Thread Felix Franz
Just a shot in the dark, but maybe this is an issue: Comparing your declaration to the sample from reveals that the sample declares com.apple

Re: Problem getting import UTI recognised

2014-10-16 Thread Shane Stanley
On 16 Oct 2014, at 10:07 pm, Graham Cox wrote: > > maybe somone can spot an issue with the UTI export? Just a guess -- the docs say: > When specifying conformance for your UTI, your items should ideally conform > to both a physical and functional hierarchy. That is, the conformance should > s

NSTableView inside NSTextView

2014-10-16 Thread Ulf Dunkel
When I place a table (NSTableView) in an TextEdit document, I can easily resize the column width of any table column using the mouse pointer, just by dragging the column border lines to and fro. In my app, I want to use the same tables (NSTableView), but inside NSTextView containers in a layou

Re: NSTableView inside NSTextView

2014-10-16 Thread Charles Jenkins
Ulf, As you can see from my text view struggles, I’m no expert, but I don’t think you’ll have a lot of success trying to stick an NSTableView into an NSTextView. The kind of table you put inside a text view is a different animal: really just a fancy attributed string the text system knows how

Re: NSTableView inside NSTextView

2014-10-16 Thread Ulf Dunkel
Charles, so I should investigate on NSTextTable instead of NSTableView, right? - - - - - Am 16.10.2014 um 14:41 schrieb Charles Jenkins: Ulf, As you can see from my text view struggles, I’m no expert, but I don’t think you’ll have a lot of success trying to stick an NSTableView into an NSText

Re: UICollectionView parallax-like horizontal scrolling

2014-10-16 Thread Luke Hiesterman
There are multiple ways to skin this cat. One is to use two collection views and just modify the content offset of one of them in response to the scrolling of the other. The behavior can also be built into a layout if you want to use a single scroll view. You don’t need different types of cell

Re: NSTableView inside NSTextView

2014-10-16 Thread Charles Jenkins
Well, that page gives you enough example code to make it trivial to create one, try it out, and see if it does what you need. :-) -- Charles On Thursday, October 16, 2014 at 10:43, Ulf Dunkel wrote: > Charles, > > so I should investigate on NSTextTable instead of NSTableView, right? > >

Re: Problem getting import UTI recognised

2014-10-16 Thread Kyle Sluder
On Oct 16, 2014, at 4:07 AM, Graham Cox wrote: > > > "http://www.apple.com/DTDs/PropertyList-1.0.dtd";> > > I’m assuming this is a snippet extracted from your actual Info.plist. > >UTTypeConformsTo > >public.content > You’re not conforming to any p

Passing a swift function to objective-c

2014-10-16 Thread Kevin Meaney
Hi, I'm beginning to feel this above my pay grade as I can't seem to work it out. I have a framework in Objective-C. I've been writing some tests for it, and to make life fun I've been writing the tests in Swift. I have a property of a class in the objective-c framework declared like so: @prop

Re: UICollectionView parallax-like horizontal scrolling

2014-10-16 Thread Mazzaroth M.
Thanks, will investigate your suggestions. On Thu, Oct 16, 2014 at 10:54 AM, Luke Hiesterman wrote: > There are multiple ways to skin this cat. One is to use two collection > views and just modify the content offset of one of them in response to the > scrolling of the other. > > The behavior can

Re: Passing a swift function to objective-c

2014-10-16 Thread Roland King
> On 17 Oct 2014, at 6:13 am, Kevin Meaney wrote: > > Hi, > > I'm beginning to feel this above my pay grade as I can't seem to work it out. > > I have a framework in Objective-C. I've been writing some tests for it, and > to make life fun I've been writing the tests in Swift. > > I have a pr

Re: Problem getting import UTI recognised

2014-10-16 Thread Graham Cox
On 17 Oct 2014, at 2:25 am, Kyle Sluder wrote: > I’m assuming this is a snippet extracted from your actual Info.plist. Yes, when you copy a section of the info.plist it inserts a new header around it. >> >> UTTypeConformsTo >> >> public.content >> > > You’re

Re: Problem getting import UTI recognised

2014-10-16 Thread Graham Cox
On 17 Oct 2014, at 11:36 am, Graham Cox wrote: > I"m grateful for the help, though so far I'm still not certain whether I've > nailed the problem or not. > Nope, because moving the clean build of the app to another machine it cannot open its own files, even after waiting a long time in c

Re: Problem getting import UTI recognised

2014-10-16 Thread Graham Cox
Just to throw another spanner in the works, is there an interaction between the UTI/filetype/app claim system and code signing? For my second machine, I've been signing my app using my Developer ID. If I don't sign it, it works. If it's signed, it doesn't. The UTI documentation doesn't mention

RE: NSTableView inside NSTextView

2014-10-16 Thread Lee Ann Rucker
You can get TextEdit's source code and see how they did it: https://developer.apple.com/library/mac/samplecode/textedit/Introduction/Intro.html From: cocoa-dev-bounces+lrucker=vmware@lists.apple.com [cocoa-dev-bounces+lrucker=vmware@lists.apple.com