How is the "-NSPrint" command line option supposed to be used?

2014-08-24 Thread Daryle Walker
I read “Sent when the user starts up the application on the command line with the -NSPrint option.” as part of the documentation for NSApplicationDelegate’s -application:printFile: method. I tried that when testing my printing; I added “-NSPrint” as one of my command line fragments in the Scheme

Re: How to synchronize my MacOS-X application with Core-Data automatic Undo management?

2014-08-24 Thread Keary Suska
On Aug 24, 2014, at 9:07 AM, Motti Shneor wrote: > My OS-X app is using ARC, is CoreData Document-Based (using the old > NSPersistentDocument) and uses 10.9 SDK. > > Up until now, I did nothing on my behalf to support user Undo/Redo, still the > application seemed to work fine. I was very imp

Re: Bad EXC_BAD_INSTRUCTION on drawRect call in Swift

2014-08-24 Thread Fritz Anderson
[Usual disclaimer about incomplete information.] On Aug 22, 2014, at 11:25 PM, Peters, Brandon wrote: > I am getting this error: > > EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode 0x0) > > over this line of code: > > if self.contentView!.frame.size.width > photo.size.width { >

How to synchronize my MacOS-X application with Core-Data automatic Undo management?

2014-08-24 Thread Motti Shneor
Hi. My OS-X app is using ARC, is CoreData Document-Based (using the old NSPersistentDocument) and uses 10.9 SDK. Up until now, I did nothing on my behalf to support user Undo/Redo, still the application seemed to work fine. I was very impressed with Cocoa (this millionth time). However. In

Re: -glyphWithName:

2014-08-24 Thread Gerriet M. Denkmann
On 24 Aug 2014, at 02:00, Holmberg Bertil wrote: > The first part of this method shows how to get the glyph from any character > Works fine with non-Latin characters such as Japanese too Does it also work with aChar starting with the Japanese HIRAGANA LETTER ARCHAIC YE (U+1B001) ? Hint: chars[

Re: Which NSWindow methods have asynchronous operation?

2014-08-24 Thread Cosmin Apreutesei
Hi Ken, thanks for answering. > From what perspective? From the perspective of the API, i.e. - after `close` returns, windowWillClose was already being called - after calling `miniaturize`, windowDidMiniaturize was already being called and isMiniaturized is guaranteed to return true. etc. From

Re: NSTextView scroll to attribute/bookmark?

2014-08-24 Thread Ken Thomases
On Aug 24, 2014, at 1:05 AM, Samuel Williams wrote: > I'm generating a NSAttributedString which looks like the following: > > function_name_1 > disassembled code output > disassembled code output > disassembled code output > function_name_2 > disassembled code output > disassembled code output