Re: Window updates stall on headless Mac mini

2016-03-19 Thread Carl Hoefs
> On Mar 19, 2016, at 1:02 AM, Steve Mills wrote: > > On Mar 18, 2016, at 17:14:25, Carl Hoefs > wrote: >> >> >> We ran into similar issues running headless. Adding a 'headless display >> emulator' seemed to be the cure for us: >> >> http://www.amazon.com/CompuLab-fit-Headless-Display-Emul

Another AS-ObjC Question

2016-03-19 Thread Dave
Sorry the example below is wrong, the classes are setup from Strings when using ASObjC and as I say it worked ok for Word. The original problem was that the init wasn’t working when I alloc/init’ed LTWAppleScriptHandlerExcel, I added the code to try to troubleshoot the problem. In the end, I did

Re: UIDocument with NSFileWrapper

2016-03-19 Thread davelist
> On Mar 19, 2016, at 8:01 PM, Quincey Morris > wrote: > > On Mar 19, 2016, at 14:23 , davel...@mac.com wrote: >> >> My thought is to have a dictionary mapping each image filename to a >> NSFileWrapper > > You already have one, basically. The top level wrapper for a package is a > directory

Re: UIDocument with NSFileWrapper

2016-03-19 Thread Quincey Morris
On Mar 19, 2016, at 14:23 , davel...@mac.com wrote: > > My thought is to have a dictionary mapping each image filename to a > NSFileWrapper You already have one, basically. The top level wrapper for a package is a directory wrapper, which lists the wrappers of contained files, indexed by file

Re: NSTableView edit line, prevent dialog close with return key

2016-03-19 Thread Trygve Inda
> Ahh, the case of ambiguous ui > > Perhaps Disable OK while editing a cell; enable when edit ends, so > Return Return accepts then closes? > > Gary So how do I tell when editing begins since the control delegate is not called when editing actually begins, but rather when the first key is pr

NSTableView edit line, prevent dialog close with return key

2016-03-19 Thread Trygve Inda
I have an NSTableView in a sheet. The sheet has an OK button which closes the sheet (and is the default blue button). If I am editing a line of text in the NSTableView and press return, I want the editing to stop and be accepted, but I don't want the sheet to close due to the OK button accepting t

Re: iOS - how to make documents visible in iTunes

2016-03-19 Thread Dave Fernandes
I have a related question - If you share documents between apps in an app group, is there a way to download the shared folder from Xcode? It only gets the app’s local documents. > On Mar 19, 2016, at 3:21 PM, Quincey Morris > wrote: > > On Mar 19, 2016, at 11:24 , Gerriet M. Denkmann wrote: >

Re: iOS - how to make documents visible in iTunes

2016-03-19 Thread Gerriet M. Denkmann
> On 20 Mar 2016, at 02:21, Quincey Morris > wrote: > > On Mar 19, 2016, at 11:24 , Gerriet M. Denkmann wrote: >> >> I have an iOS app (9.2.1) (not document based) which contains stuff in: >> /private/var/mobile/Containers/Data/Application/55…F0/Documents, which is >> the NSDocumentDirectory

Re: UIDocument with NSFileWrapper

2016-03-19 Thread davelist
> On Mar 19, 2016, at 1:48 PM, Quincey Morris > wrote: > > On Mar 19, 2016, at 10:18 , davel...@mac.com wrote: >> >> The downside I see for my app is that UIDocument writes out the data to a >> temporary location and then moves it to the new location so I think my app >> will constantly be w

Re: Window updates stall on headless Mac mini

2016-03-19 Thread Steve Mills
Here's the stalled thread's backtrace: * thread #1: tid = 0xf3b18, 0x7fff89524136 libsystem_kernel.dylib`__psynch_cvwait + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP * frame #0: 0x7fff89524136 libsystem_kernel.dylib`__psynch_cvwait + 10 frame #1: 0x7fff8fa8b56

Re: iOS - how to make documents visible in iTunes

2016-03-19 Thread Quincey Morris
On Mar 19, 2016, at 11:24 , Gerriet M. Denkmann wrote: > > I have an iOS app (9.2.1) (not document based) which contains stuff in: > /private/var/mobile/Containers/Data/Application/55…F0/Documents, which is the > NSDocumentDirectory in NSUserDomainMask. > > I want to see these files in iTunes

iOS - how to make documents visible in iTunes

2016-03-19 Thread Gerriet M. Denkmann
I have an iOS app (9.2.1) (not document based) which contains stuff in: /private/var/mobile/Containers/Data/Application/55…F0/Documents, which is the NSDocumentDirectory in NSUserDomainMask. I want to see these files in iTunes → my iOS Device → Apps → File Sharing But my app does not even make i

Re: Window updates stall on headless Mac mini

2016-03-19 Thread Steve Mills
On Mar 18, 2016, at 17:14:25, Carl Hoefs wrote: > > > We ran into similar issues running headless. Adding a 'headless display > emulator' seemed to be the cure for us: > > http://www.amazon.com/CompuLab-fit-Headless-Display-Emulator/dp/B00FLZXGJ6 Interesting. Didn't know they had such a thing

Re: Window updates stall on headless Mac mini

2016-03-19 Thread Steve Mills
On Mar 19, 2016, at 00:12:39, Ken Thomases wrote: > > > Why are you running the main run loop? For how long are you running it? Why > aren't you running it in a private mode if it's for private purposes? Are > you generally letting the main event loop run normally? This is old code that I

Re: UIDocument with NSFileWrapper

2016-03-19 Thread Quincey Morris
On Mar 19, 2016, at 10:18 , davel...@mac.com wrote: > > The downside I see for my app is that UIDocument writes out the data to a > temporary location and then moves it to the new location so I think my app > will constantly be writing out these image/PDF files that never change. Is > there a b

UIDocument with NSFileWrapper

2016-03-19 Thread davelist
I’m creating a document-based iPad app that I will want to persist the data (either using NSCoding or JSON or XML) along with auxiliary files that may be added, but won’t be modified much, if at all (i.e., image or PDF files the app displays but doesn’t modify). I have prior iOS experience writi

Another AS-ObjC Question

2016-03-19 Thread Dave
Hi, I have a weird problem, I have two AppleScript-ObjC Classes/Script Files, setup like this: LTWAppleScriptHandlerWord.h and .applescript LTWAppleScriptHandlerExcel.h and .applescript LTWAppleScriptHandlerWord works ok, but when I do this for Excel: myAppleScriptHandler = [[LTWAppleScriptHan

Trying to understand weird NSOutlineVew behaviour

2016-03-19 Thread Graham Cox
Hi all, I have a NSOutlineView (view based), and I have a fairly complex drag and drop situation. In implementing the dataSource method -outlineView:validateDrop:proposedItem:proposedChildIndex:, I need to find out exactly which row the mouse is over. This is because in some cases I need to dr

Window updates stall on headless Mac mini

2016-03-19 Thread Steve Mills
We've been running into a situation where our app that's running on a headless mini will seem to stall in the same particular piece of code where there are no users currently screen sharing to it. As soon as we connect, it continues on. The code loads a view from a nib, moves it into a window t

Re: Window updates stall on headless Mac mini

2016-03-19 Thread Ken Thomases
On Mar 19, 2016, at 3:01 AM, Steve Mills wrote: > > On Mar 19, 2016, at 00:12:39, Ken Thomases wrote: >> >> >> Why are you running the main run loop? For how long are you running it? >> Why aren't you running it in a private mode if it's for private purposes? >> Are you generally letting

Re: question about last used date

2016-03-19 Thread Rick C.
Great thanks again for all the help much appreciated! > On 15 Mar 2016, at 9:21 AM, Jens Alfke wrote: > > >> On Mar 14, 2016, at 6:11 PM, Rick C. > > wrote: >> >> 2. NSURLContentAccessDateKey returns the current date like mentioned here - >> http://stackoverflo

Re: Reading XML 1.1

2016-03-19 Thread John Brownie
On 14/03/2016 19:14, John Brownie wrote: 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]