Re: How to recognize mutability?

2013-02-21 Thread Markus Spoettl
On 2/21/13 5:05 AM, Gerriet M. Denkmann wrote: On 2/20/13 9:10 AM, Gerriet M. Denkmann wrote: P.S. I want my own archiver for 2 reasons: 1. NSKeyedArchiver can store only certain strings I find that very hard to believe. I find that very easy to proof: NSArray *a = @[ @$nill, @$null,

Re: How to recognize mutability?

2013-02-21 Thread Kyle Sluder
On Feb 20, 2013, at 10:38 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Looks like there is an exception, though nothing gets logged in the Xcode console: frame #0: 0x7fff88d483c5 libobjc.A.dylib`objc_exception_throw frame #1: 0x7fff8ade6e7c

Re: NSScrollView: should I use autolayout or not?

2013-02-21 Thread iain
On Wed, Feb 20, 2013 at 2:30 AM, Chuck Soper chu...@veladg.com wrote: Does anyone recommend using autolayout to place and resize custom views within an NSScrollView? If so, how do you auto adjust the width of the documentView (of the NSScrollView)? Previously, I found that I had to call

Re: How to recognize mutability?

2013-02-21 Thread Gerriet M. Denkmann
On 21 Feb 2013, at 17:08, Kyle Sluder k...@ksluder.com wrote: On Feb 20, 2013, at 10:38 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Looks like there is an exception, though nothing gets logged in the Xcode console: frame #0: 0x7fff88d483c5

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-21 Thread Kevin Cathey
Autolayout does not work with NSSplitView on 10.7. Auto layout does not work well with NSSplitView on 10.7. You can still have an NSSplitView in your UI and it will function, with the caveat that the min/max split positions will ignore what the constraints determine. So if you have a subview

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-21 Thread Kevin Cathey
Michael, The issue here is that you are overriding one of several delegate methods that puts split view in compatibility mode. Essentially some of the delegate methods on NSSplitView duplicate the functionality of what you can do with auto layout. In order to keep existing applications working

Rendering a raw image buffer

2013-02-21 Thread Graham Cox
Hi all, I have a simple requirement: take a buffer I malloc myself and get that rendered as an image using CGImage. I'm creating a data provider using CGDataProviderCreateWithData(), then using that to create a CGImage of the desired dimensions and format. This is later drawn using

A plugin for a sandboxed app - where to can I successfully store a temp file?

2013-02-21 Thread Nick
Hello. I am working on a plugin for Mail.app for Mountain Lion. The problem is whenever I try to save a file, I am getting an error. Which can be explained by the fact that Mail.app is sandboxed and I am not allowed to modify files anywhere on the system. So what I do instead - is call TempDir =

Re: Rendering a raw image buffer

2013-02-21 Thread Seth Willits
On Feb 21, 2013, at 5:15 PM, Graham Cox wrote: How can I set up an image that just blits my buffer and doesn't try anything clever like caching? Does it have to be a CGImageRef? NSBitmapImageRep is the easiest route if not. -- Seth Willits

Re: Rendering a raw image buffer

2013-02-21 Thread Ken Thomases
On Feb 21, 2013, at 7:15 PM, Graham Cox wrote: I have a simple requirement: take a buffer I malloc myself and get that rendered as an image using CGImage. I'm creating a data provider using CGDataProviderCreateWithData(), then using that to create a CGImage of the desired dimensions and

Re: Rendering a raw image buffer

2013-02-21 Thread Graham Cox
On 22/02/2013, at 1:30 PM, Ken Thomases k...@codeweavers.com wrote: I don't know that you can. You should probably create a fresh CGImage from the data for each render, unless you know that you'll render repeatedly with the same CGImage (which implies with the same image content). I

Re: How to recognize mutability?

2013-02-21 Thread Gerriet M. Denkmann
On 22 Feb 2013, at 03:00, Markus Spoettl ms_li...@shiftoption.com wrote: On 2/21/13 5:05 AM, Gerriet M. Denkmann wrote: On 2/20/13 9:10 AM, Gerriet M. Denkmann wrote: P.S. I want my own archiver for 2 reasons: 1. NSKeyedArchiver can store only certain strings I find that very hard to

Re: How to recognize mutability?

2013-02-21 Thread Jens Alfke
On Feb 21, 2013, at 8:34 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Well, the opposite of: can store all strings is: can store only certain strings. My point is that the number of unstorable strings is greater than zero. Whether it is 1 or any other number is quite beside the

Re: How to recognize mutability?

2013-02-21 Thread Charles Srstka
On Feb 22, 2013, at 12:15 AM, Jens Alfke j...@mooseyard.com wrote: * I had something like this happen in one particular development build of iChat once, due to a bug in the Bonjour status-message code. There was some particular character you could put in your status message, that would

Re: How to recognize mutability?

2013-02-21 Thread Alex Zavatone
On Feb 22, 2013, at 1:15 AM, Jens Alfke wrote: On Feb 21, 2013, at 8:34 PM, Gerriet M. Denkmann gerr...@mdenkmann.de wrote: Well, the opposite of: can store all strings is: can store only certain strings. My point is that the number of unstorable strings is greater than zero. Whether