On Jun 15, 2012, at 4:23 PM, Graham Cox wrote:
>
> On 16/06/2012, at 4:06 AM, Kyle Sluder wrote:
>
>> Your best bet is probably to retarget the Paste menu item to use a different
>> selector that is picked up by your window controller.
>
> Thanks Kyle,
>
> Unfortunately the standard paste: s
Hello,
I have a number of layer hosting custom views (which are all delegate-drawn)
and I'm pulling my hair out to find a good place to initialize the contentScale
layer property.
I usually create the layers (if there's a fixed number of them) in the view's
-initWithFrame:. At that point t
On Jun 16, 2012, at 4:13 AM, Markus Spoettl wrote:
> I usually create the layers (if there's a fixed number of them) in the view's
> -initWithFrame:. At that point the view doesn't have a window, so I can't set
> contentScale correctly (by getting the window's backingScaleFactor).
Is this stra
MPWDrawingContext is a light-weight Objective-C wrapper around CoreGraphics
CGContextRef and corresponding functions.
Code is on Github:https://github.com/mpw/MPWDrawingContext
Infrequently Asked Questions:
Why would anyone need an Objective-C drawing context?
In short, while CoreGraphics
On 6/16/12 8:08 PM, Kyle Sluder wrote:
I usually create the layers (if there's a fixed number of them) in the
view's -initWithFrame:. At that point the view doesn't have a window, so I
can't set contentScale correctly (by getting the window's
backingScaleFactor).
Is this strategy documented som
I have a subclass of a NSViewController. In fact, I created on just as a test
with no custom code. I then throw an NSTextView in the NSView that comes with
it and then drag from the NSTextView to the .h file to create an outlet. Why
why why is it making it unsafe_unretained? I'm using ARC.
From
http://developer.apple.com/library/mac/releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011226-CH1-SW17:
> Which classes don’t support weak references?
> You cannot currently create weak references to instances of the following
> classes:
On Jun 16, 2012, at 12:37 PM, Marcel Weiher wrote:
> MPWDrawingContext is a light-weight Objective-C wrapper around CoreGraphics
> CGContextRef and corresponding functions.
This sounds really cool and useful!
What version of MPW do I need to build/run it? (<—joke for old-timers)
—Jens
___
On Jun 16, 2012, at 1:53 PM, Markus Spoettl wrote:
> On 6/16/12 8:08 PM, Kyle Sluder wrote:
>>> I usually create the layers (if there's a fixed number of them) in the
>>> view's -initWithFrame:. At that point the view doesn't have a window, so I
>>> can't set contentScale correctly (by getting th
On 6/16/12 11:59 PM, Kyle Sluder wrote:
That's the same document I was referring to. But it also contains this very
useful section, titled "Manage Core Animation Layer Contents And Scale":
https://developer.apple.com/library/mac/#documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Captur
10 matches
Mail list logo