Re: question about last used date

2016-03-14 Thread Jens Alfke
> On Mar 14, 2016, at 6:11 PM, Rick C. wrote: > > 2. NSURLContentAccessDateKey returns the current date like mentioned here - > http://stackoverflow.com/questions/13914600/get-the-real-last-opened-date > > 3. The sam

Re: question about last used date

2016-03-14 Thread Rick C.
So I’ve done some work: 1. Might be possible no kMDItemLastUsedDate on a new Mac after using MigrationAssistant or of course if no Spotlight being used 2. NSURLContentAccessDateKey returns the current date like mentioned here - http://stackoverflow.com/questions/13914600/get-the-real-last-open

Making Managed Object Context available to array controller in Storyboard scene

2016-03-14 Thread Eric Gorr
I have a core data, document based, storyboard OS X application. There is a test project here: https://github.com/ericgorr/sb_ac_doc which is just the default project Xcode creates with a few modifications. I have a single view controller and the view contains a table view which will eventuall

Re: NSBitmapImageRep setSize: doesn't always do the right thing

2016-03-14 Thread Steve Mills
On Mar 14, 2016, at 03:29 PM, Quincey Morris wrote: It’s not clear what your intention is, in trying to set the size of the image rep. It’s a NSBitmageImageRep, right? The pixels are the pixels are the pixels, so I don’t think you should be doing anything to the image *rep* size.   Normally,

Re: NSBitmapImageRep setSize: doesn't always do the right thing

2016-03-14 Thread Quincey Morris
On Mar 14, 2016, at 12:55 , Steve Mills wrote: > > The cropped NSImage is created at the scaled-up size, drawn into, and finally > the cropped NSImage's first NSImageRep is set to draw at the perceived, > high-res size via [cropped.representations.firstObject > setSize:perceivedSize]. This all

NSBitmapImageRep setSize: doesn't always do the right thing

2016-03-14 Thread Steve Mills
I have some code that renders a MathML string into a WebView at a scaled-up size, then draws that into an NSImage of the scaled-up size, then draws that into a cropped NSImage to get rid of the extra space that the WebView throws in for scrollbars or whatever. The cropped NSImage is created at

Re: question about last used date

2016-03-14 Thread Fritz Anderson
> On 14 Mar 2016, at 10:39 AM, Jens Alfke wrote: > > Unix filesystems do keep a last-accessed date for files, but it looks like > NSFileManager doesn’t expose an attribute for it. You can call stat() and get > the st_atimespec field of the result. NSURL *Resource* methods can get at NSURLCont

Re: Is a portrait-only launch image possible?

2016-03-14 Thread David Duncan
It is, but similarly we now prefer you use a launch storyboard – so it can look just like your welcome screen (at least to the point that you can describe that in Interface Builder). This should have been created with your project. > On Mar 14, 2016, at 4:38 AM, Charles Jenkins wrote: > > Than

Re: question about last used date

2016-03-14 Thread Jens Alfke
> On Mar 14, 2016, at 2:24 AM, Rick C. wrote: > > My problem is I’m only getting a kMDItemLastUsedDate on about 10% of files I > check, I don’t know whether that attribute is wired up to the filesystem, or whether it’s just something that has to be manually updated by app/framework code. From

Re: How to set a TextField

2016-03-14 Thread Pascal Bourguignon
> On 14 Mar 2016, at 09:17, Gerriet M. Denkmann wrote: > > You are absolutely right that a background would be the right thing. > But this is just a small tool for testing, and it will not take more than a > few seconds, so I am trying to avoid this. For testing you can use NSLog instead. -

Re: Is a portrait-only launch image possible?

2016-03-14 Thread Charles Jenkins
Thank you, David. Is it possible then to have two launch images and the system will select the correct one based on orientation? If not, I’ll have to give up on my idea of a smooth transition, because my launch image won’t be able to look anything like the welcome screen that follows. --  Char

question about protocol

2016-03-14 Thread bigpig
Hi everyone I get confused in SDWebImage code.The author declare a custom protocol “SDWebImageOperation” and have only a method “- (void)cancel”.Then some class comply with this protocol and implement the method “cancel”.But this protocol does not do anything,why write this way.why not every cla

question about last used date

2016-03-14 Thread Rick C.
Hi everyone, I’m having some troubles getting the last used date of a file, can anyone see issues here with my code? NSDictionary *fileAttributes = [[NSFileManager defaultManager] attributesOfItemAtPath:anObject error:NULL]; if (fileAttributes != nil) { MDItemRef item = MDItemCreate(NULL, (

Reading XML 1.1

2016-03-14 Thread John Brownie
Is it possible to read an XML 1.1 file using NSXMLDocument? The crucial thing for my purposes is that the character set allowed in XML 1.1 is larger. XML 1.0 defines characters as: Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x1-#x10] XML 1.1 defines: #

Re: How to set a TextField

2016-03-14 Thread Alex Zavatone
Just do the calculation within a dispatch_async within computeSimething. On Mar 14, 2016, at 4:17 AM, Gerriet M. Denkmann wrote: > >> On 14 Mar 2016, at 14:17, Quincey Morris >> wrote: >> >> On Mar 13, 2016, at 23:50 , Gerriet M. Denkmann wrote: >>> >>> - (void)computeSomething >>> { >>>

Re: How to set a TextField

2016-03-14 Thread Gerriet M. Denkmann
> On 14 Mar 2016, at 14:17, Quincey Morris > wrote: > > On Mar 13, 2016, at 23:50 , Gerriet M. Denkmann wrote: >> >> - (void)computeSomething >> { >> self.message1 = @“Start computing”; >> // some seconds of computations >> self.message1 = @“Result = 42”; >> } > > Assume,

Re: How to set a TextField

2016-03-14 Thread Quincey Morris
On Mar 13, 2016, at 23:50 , Gerriet M. Denkmann wrote: > > - (void)computeSomething > { > self.message1 = @“Start computing”; > // some seconds of computations > self.message1 = @“Result = 42”; > } Assume, conceptually, that drawing only takes place asynchronously (that is