Re: Basic Core Animation question

2008-04-14 Thread David Duncan
e memory management issue that using CGPath brings up. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

Re: EXC_BAD_ACCESS when calling CGContextDrawLayerInRect

2008-04-14 Thread David Duncan
r view hasn't been drawn yet, so there is no context. I suspect that your getting something you very much do not expect. In general if you want to use layers with views, you should create the layer on the first -drawRect: call rather than trying to have them around from -init forwar

Re: EXC_BAD_ACCESS when calling CGContextDrawLayerInRect

2008-04-14 Thread David Duncan
draw. It should have very similar performance characteristics for drawing, but will be easier for the system to manage (since an image is immutable). -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev

Re: Core Animation/Layers and Borderless Windows

2008-04-17 Thread David Duncan
oon find that isn't possible either... -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact th

Re: drawRect: called twice for NSView subclass.

2008-04-20 Thread David Duncan
(i.e. for rejection tests) rather than to define the coordinate system to draw into. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: thread count problem

2008-04-21 Thread David Duncan
threads on behalf of your application to perform certain activities and this is generally beyond your control. This should typically be completely transparent to you. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev

Re: Problems with [NSArray count]

2008-04-22 Thread David Duncan
; crashes out, and I've tried various other types of variable to no avail. Any thoughts? Am I missing something blindingly obvious here? Are you getting an exception? perhaps myArray isn't really an NSArray at the time that you are sending it the -count message? -- David Duncan App

Re: Problems with [NSArray count]

2008-04-22 Thread David Duncan
note that the array returned by - componentsSeparatedByString: doesn't belong to you unless you retain it. You are likely getting your bad access because the autorelease pool is being drained in between your call to -displayData and -count (and -displayData: probably should be named -setDis

Re: QTMovie grabing while playback

2008-04-24 Thread David Duncan
Animation to do the layering, which of course will result in text that does not use sub-pixel antialiasing (which I presume is why you said not to use a CALayer). -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev ma

Re: Weird Problem With CGImage

2008-04-25 Thread David Duncan
. This seems to be related to the CGImageCreateWithImageInRect() call, but I can't imagine why. CGDataProviderCopyData() seems to work perfectly with an original image in my limited testing, so please file a bug (and let me know what the bug number is). -- David Duncan Apple DTS

Re: mask nsimage

2008-04-25 Thread David Duncan
eird' and the docs dont provide sample or pseudo code for _this_) The CG API is almost 1:1 with NSBezierPath and other Cocoa Graphics tools, although both API do offer abilities that the other doesn't directly offer. As for "weird" I can't really say anything to t

Re: Weird Problem With CGImage

2008-04-25 Thread David Duncan
le, if the * underlying data is too large to fit in memory). */ What is the expected output format of the data it returns ? The output image data is the same format as the associated CGImageRef. You can use the CGImageGet*() functions to determine the exact format of the data returned. -- Da

Re: Stuttering Multiple QTMovieLayers in Single Window

2008-04-30 Thread David Duncan
context and the associated machinery for getting it drawn correctly). That the QTMovieLayer is causing you problems like this is a bug that you should file. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread David Duncan
you and should be considered an implementation detail. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread David Duncan
ds controls to allow you to select the paper size and orientation. There are other controls you can add (or remove) as well, search the documentation for NSPrintPanelOptions (used with NSPrintPanel's -setOptions: method). -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED]

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread David Duncan
to invoke that dialog as this is the standard Mac OS X behavior and what users will expect. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Changing NSPrintPanel UI in 10.5

2008-05-13 Thread David Duncan
response. By the way, as I understand, there is no "legal" methods to get what I want (additional button in PrintPanel). Right? Correct, not where you wish to place it. -- David Duncan Apple DTS Animation and Printing [EMAIL PROTECTED] ___

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-15 Thread David Duncan
ork with. You can do this with either AppKit or Core Graphics using NSBitmapImageRep or a bitmap context (created via CGBitmapContextCreate). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: CALayer and Memory Management

2008-12-15 Thread David Duncan
ren't instance variables). If you've found a bug with Apple Sample Code, then please file a bug report against that sample code. Basically, here's my question: When (if ever) are you supposed to (auto)release CALayers? If you follow the memory management rules, yo

Re: Docs on Open GL ES

2008-12-15 Thread David Duncan
On Dec 15, 2008, at 3:27 AM, ramesh kakula wrote: I am looking for the good documentation on the Open GL ES for iPhone, if any one have a link or doc please share. Depending on what your really asking for <http://khronos.org/opengles/1_X/ > might have information useful to you. --

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-15 Thread David Duncan
ttp://developer.apple.com/documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_intro/chapter_1_section_1.html > so you should have a look there. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-16 Thread David Duncan
r and CGDataProviderCopyData to get the pixel data. Seem easier and faster too. However CGDataProviderCopyData is 10.5 minimum. Unfortunately due to a bug that doesn't always work correctly. If you file a bug, reference bug 5889934. -- David Duncan Apple DTS Animation an

Re: CALayer shadow and animation

2008-12-17 Thread David Duncan
the problem is about animation I would like this movement don't be animated. I've tryed to use removeAllAnimation but it dosn't work. Take a look at the docs for CATransaction, they describe how to enable and disable actions (which cause animation). -- David Dunc

Re: Question Regarding the Memory Address of Objects

2008-12-18 Thread David Duncan
r to a button. sender is a pointer to the object that sent the message. When you take the address of either pointer, you get the location of that pointer in memory - not the location of the object. The pointer itself contains the location of the object in memo

Re: CLLocationDistance contents?

2008-12-18 Thread David Duncan
te to the coordinate of the specified location." -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-06 Thread David Duncan
make it play? Try replacing the composition in the CALayerEssentials sample <http://developer.apple.com/samplecode/CALayerEssentials/index.html > If it fails there, then there may be something stranger going on. If not, determining how to replicate the issue from there and filing a bug

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-06 Thread David Duncan
at would prevent it from playing? I don't see anything off hand, and can't think of any reason why that shouldn't work. I would probably recommend a bug report with a simple application that reproduces the error. -- David Duncan Apple DTS Animation and Printing __

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-07 Thread David Duncan
e. I would recommend filing one. You can reference that CALayerEssentials sample reproduces the issue when you enable garbage collection (send me the bug # when you've filed). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-d

Re: Recording video from a QCView to .mov

2009-01-08 Thread David Duncan
that would be the Quicktime-API mailing list. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at coco

Re: Recording video from a QCView to .mov

2009-01-09 Thread David Duncan
presentation, then you will have to render it via OpenGL, readback the contents of every frame, then add that to a movie. You might be able to adapt the OpenGLCaptureToMovie sample <http://developer.apple.com/samplecode/OpenGLScreenCapture/index.html > to do what you want. -- David

Re: CALayer removeFromSupeLayer crashes

2009-01-10 Thread David Duncan
27;ve read through most of Dudney's Core Animation book but nothing jumps out at me.) I would suspect that you'd see a message on the console to the effect of "modifying an array while enumerating it". I think you can replace this more simply by just doing [[self layer] setSu

Re: Using UIImageView for animations

2009-01-12 Thread David Duncan
mory). This might be an acceptable solution, although to control memory you should not use +imageNamed: to load these images (and instead use imageWithContentsOfFile:) as you would likely run into the exact same performance problem if you did. This may also end up with other performance issues

Re: CALayer removeFromSupeLayer crashes

2009-01-12 Thread David Duncan
ave a memory management issue or some other dependency. I would start by pulling out the code your looking at into a smaller test project and seeing if you can reproduce the issue from there. -- David Duncan Apple DTS Animation and Printing ___

Re: Using UIImageView for animations

2009-01-13 Thread David Duncan
s may or may not be what you are thinking of. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa

Re: Using UIImageView for animations

2009-01-13 Thread David Duncan
odels with textures instead of pre-rendered content. Sometimes you can just use a set of static (or animated) but smaller images and move the hosting views around the screen. But exactly how you do it will depend on what you are trying to accomplish. -- David Duncan Ap

Re: what the hell is Error (1007) creating CGSWindow?

2009-01-15 Thread David Duncan
to use Core Graphics directly, which doesn't suffer from this problem. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: what the hell is Error (1007) creating CGSWindow?

2009-01-15 Thread David Duncan
On Jan 15, 2009, at 9:32 AM, David Duncan wrote: On Jan 14, 2009, at 9:10 PM, Michael B Johnson wrote: So I have an application that has been bedeviled by a nasty, nasty bug for years that manifests itself as an exception being thrown with: Error (1007) creating CGSWindow At that point

Re: Encoding / Decoding CGPoint with NSCoder

2009-01-15 Thread David Duncan
Point(). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubs

Re: save screengrab on iphone

2009-01-16 Thread David Duncan
On Jan 16, 2009, at 5:10 AM, Memo Akten wrote: But it doesn't work, I guess imageWithData is expecting image data (i.e. file format), not pixel data. How can I create a UIImage from pixel data? do I need to go into coregraphics? (e.g. CGCreateImage)? Yes. -- David Duncan Appl

Re: CALayer unwanted blurring

2009-01-19 Thread David Duncan
of the frame are synthesized from other properties of the layer). Depending on if your layer's dimensions are odd or even the position should be on the pixel or on the half pixel to avoid antialiasing like this. -- David Duncan Apple DTS An

Re: CALayer animating images

2009-01-21 Thread David Duncan
e screen with "... image is too large for GPU, ignoring" exception. CALayers are limited to the maximum texture size of the underlying graphics hardware, so if you are getting this warning, your images are too big for the hardware your on and you will need to make them smaller.

Re: Zombies: "Not a Type release"

2009-01-22 Thread David Duncan
of CALayers are being torn down and this is a result. If your not properly managing memory in this instance, then that could be your failure. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Sub-pixel font smoothing with CGBitmapContext

2009-01-29 Thread David Duncan
CGContextSetShouldSmoothFonts doesn't seem to help. Its been a while since I last looked at this, but I think the context's format needs to be native endian (add the kCGBitmapByteOrder32Host flag). -- David Duncan Apple DTS Animation and Printing ___

Re: Sub-pixel font smoothing with CGBitmapContext

2009-01-29 Thread David Duncan
On Jan 29, 2009, at 12:34 PM, Timothy Wood wrote: On Jan 29, 2009, at 10:56 AM, David Duncan wrote: Its been a while since I last looked at this, but I think the context's format needs to be native endian (add the kCGBitmapByteOrder32Host flag). Heh; I totally would not have exp

Re: NSView behaves different on 10.4 vs 10.5?

2009-01-29 Thread David Duncan
if one uses overlapping sibling views with QuartzGL... Its a non-issue. With QuartzGL enabled, AppKit is still rendering all of the content for the window, so they can still fully control how overlap happens. -- David Duncan Apple DTS Animation and Printing

Re: CGAffintransform and UIImage Views

2009-01-30 Thread David Duncan
e and +setAnimationDidStopSelector: to be notified when the animation completes before you ask the view to scale back down to 1x. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: QCComposition in CAOpenGLLayer

2009-01-30 Thread David Duncan
On Jan 30, 2009, at 1:03 AM, Anshul jain wrote: i am trying to play QCComposition in CAOpenGLLayer Why not use the QCCompositionLayer? -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Stroking "on the inside" with NSBezierPath

2009-01-30 Thread David Duncan
need to be more explicit about what you want to accomplish. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: Stroking a CATextLayer

2009-02-03 Thread David Duncan
plain CALayer rather than try to make the CATextLayer do what you want to do. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Determining if a user is logged in from a Launchd Daemon

2009-02-09 Thread David Duncan
od solution would be to have an agent that launches when a user logs in that checks in and out with the daemon. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: Constrained layer-backed control stops responding

2009-02-09 Thread David Duncan
nyone? Your more than likely desynchronizing the logical and visual locations of the view when you do this. AppKit manages the location of views separately from Core Animation, and thus if you move a view's layer via Core Animation, you are likely to confuse AppKit. -- David Duncan

Re: UIScrollView - photo viewer like usage

2009-02-11 Thread David Duncan
memory gets tight. Actually you can do that with UIViews or CALayers (and conversely you can "break" CALayers in the same way). The critical point is to not use +imageNamed: as this will load the images cached, which generally is not what you want for large images. -- David Duncan

Re: Design Question

2009-02-12 Thread David Duncan
On Feb 12, 2009, at 9:37 AM, David Blanton wrote: Side question ... in doing so will the animations begin when the hidden property is set NO. Animations run independently of each other, so hiding a layer does not pause animations at all. -- David Duncan Apple DTS Animation and Printing

Re: Design Question

2009-02-12 Thread David Duncan
On Feb 12, 2009, at 9:50 AM, David Blanton wrote: Do I understand correctly that if a layer with explicit animations is hidden the animation is still running? Yes, animations always run, regardless of the hidden state of a layer (hidden is just another render attribute). -- David Duncan

Re: newbie question on creating .png files

2009-02-12 Thread David Duncan
this is really not the best way to convert an NSImage into a PNG. In fact, imageRepWithData: should work with any file type that is supported by ImageIO, which natively includes PNG, so you could pass in the original file data rather than going through NSImage. -- David Duncan Apple DT

Re: CALayers Lost After Switching Window's ContentView

2009-02-16 Thread David Duncan
need AppKit to continue to draw to the view's layer, is to override -setLayer: to do any required setup for your layer tree. So what you would do is check if the incoming layer is non-nil, and if it is, make any changes to that layer (including adding sublayers) at that point. -- Da

Re: QCCompositionLayer doesn't draw until window resized?

2009-02-17 Thread David Duncan
ds. The CALayerEssentials sample operates without having to do anything special with its QCCompositionLayer, so I would probably recommend you start there to see if you can figure out what is going wrong. CALayerEssentials <http://developer.apple.com/samplecode/CALayerEssentials/index.html > -- Da

Re: Large layers in Core Animation

2009-02-18 Thread David Duncan
yer contents (by setting the contents property or calling -setNeedsDisplay) then you are subject to the GPU texture limits. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?

2009-02-27 Thread David Duncan
d, if your looking for a thumbnail, then your implying to the API that you are expecting an image no larger than the original - which is what you are getting. Could you better explain what you are trying to do? -- David Duncan Apple DTS Animation and Pri

Re: Weird "Ignoring bogus layer size" error using Collection View

2009-02-27 Thread David Duncan
after just one click. NSCollectionView uses Core Animation (by default? always? I can't recall). However, it is odd that your getting such a small layer request. If you can figure out why this might be worth a bug. -- David Duncan Apple DTS Animation an

Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?

2009-03-02 Thread David Duncan
e for the kCGImageSourceThumbnailMaxPixelSize key. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: Optimizing, uiview caching, and clearing that cached view.

2009-03-02 Thread David Duncan
ather than -viewDidAppear. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admi

Re: NSTableView and CA backed views

2009-03-02 Thread David Duncan
away all of its content when it is resized, and the NSTableView is using a CATiledLayer for its display. Because of this, the entire table gets re-rendered, and because the resize is live, re-rendered again and again before the content is complete. -- David Duncan Apple DTS Animation and

Re: [Math] sin(), cos() not working? What special magic must I use to summon their powers?

2008-10-01 Thread David Duncan
ontext from the NSGraphicsContext. The latter is shown in the sample above, although the former is not. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Re: Data Types for Extracting samples from Audio Buffer

2008-10-06 Thread David Duncan
list rather than on Cocoa-Dev, as I'm not aware of any Core Audio engineers lurking on this list. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: CALayer bounds with ResizeAspect mask?

2008-10-09 Thread David Duncan
nimation in all contexts, then read the docs on -actionForKey: which describes several methods you can use to disable a particular animation for a layer or group of layers. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing

Re: how to use the loginItem in OSX 10.3?

2008-10-16 Thread David Duncan
and Agents <http://developer.apple.com/technotes/tn2005/tn2083.html > If you have further questions, I would recommend either asking on Darwin-Dev or submitting a tech support incident to [EMAIL PROTECTED] -- David Duncan Apple DTS Animat

Re: Putting an image on a CALayer

2008-10-21 Thread David Duncan
L((CFURLRef)url, NULL); CGImageRef image = CGImageSourceCreateImageAtIndex(source, 0, NULL); CFRelease(source); Do what you will with 'image' and release it when your done. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-de

Re: CALayer graphics context

2008-10-22 Thread David Duncan
"drawLayer:inContext" message. This is true, and covered well in the Core Animation Programming Guide <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html > Specifically, the section on Providing Layer Content. -- David Duncan Apple D

Re: Yet another CALayer puzzle

2008-10-22 Thread David Duncan
. Simplest solution is to move this setup into -awakeFromNib. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderator

Re: Putting an image on a CALayer

2008-10-22 Thread David Duncan
easier to avoid the issue entirely by maintaining control over the CALayer when doing this. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: NSData and NSImage

2008-10-23 Thread David Duncan
he image. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/U

Re: Leaking CGColor objects

2008-10-27 Thread David Duncan
roundColor = color; CFRelease(color); And you don't need to release it yourself in a custom dealloc method (the layer is responsible for that). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Cocoa and Printing (Advanced Q)

2008-10-27 Thread David Duncan
CUPS (the subsystem that eventually handles all printing on Mac OS X). Changing printer settings for an App affects that app only. Some printer settings are system wide, some are tied to print sessions. What settings do you need to change? -- David Duncan Apple DTS Animation and Printing

Re: Binding question

2008-10-28 Thread David Duncan
[NSString class] and - transformedValue: to return the lastPathComponent of the passed in string. Set the transformer for the binding and you should be set. There are a few samples that you can reach from the Xcode docs demonstrating this (just look up NSValueTransformer). -- David Duncan

Re: NSData dataWithContentsOfFile - freeWhenDone:NO ?

2008-10-31 Thread David Duncan
avoid having to copy the bytes if possible. Another question might be to ask why are you trying to load the entire file into memory? If its of any significant length then that is quite a large allocation... -- David Duncan Apple DTS Animation and Pri

Re: CALayer contents memory leak

2008-11-04 Thread David Duncan
geRef = CGImageSourceCreateImageAtIndex(sourceRef, 0, NULL); CFRelease(sourceRef); } [rootLayer setContents: (id)imageRef]; CGImageRelease(imageRef); } -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Coco

Re: CALayer contents memory leak

2008-11-04 Thread David Duncan
On Nov 4, 2008, at 10:47 AM, Adam Fedor wrote: On Nov 4, 2008, at 10:05 AM, David Duncan wrote: While I don't see a leak in here, it can never hurt to simplify your code. Try this instead. Thanks, that is simpler, but it doesn't solve the problem. I've tried many things.

Re: CABasicAnimation, CALayers, and rotation

2008-11-04 Thread David Duncan
clockwise, you will have to calculate the changes yourself. You should also note that you can rotate outside of the unit circle (0-2π) and get the correct value, which is useful for certain effects. -- David Duncan Apple DTS Animation and Printing

Re: Enumerating outlets automatically?

2008-11-05 Thread David Duncan
are effectively tied to a particular state, then why not use bindings? You could bind the enabled state of these controls to a property of your controller object and then you just set the property and voila. -- David Duncan Apple DTS Animation and Printing _

Re: CAOpenGLLayer no Antialiasing?

2008-11-08 Thread David Duncan
returned to you as a duplicate. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)

Re: Can't get CABasicAnimation to explicitly animate "frame" property of CALayer

2008-11-10 Thread David Duncan
a1620.html -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/U

Re: CALayer and View controls

2008-11-14 Thread David Duncan
ide of the view/layer that is being rotated. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-

Re: Adding an NSButton to a layer-hosted view

2008-11-14 Thread David Duncan
acked AppKit views, you always need to move them via AppKit for the graphical and logical locations to match. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: CALayer and View controls

2008-11-14 Thread David Duncan
and, I can make a second view outside the first view/layer with the button (and eventually other controls) and this will not affected of any animations? If it's true I had not understood the relation between layer and view, now it's clear. Right, a layer can only affect itself and its

Re: Adding an NSButton to a layer-hosted view

2008-11-14 Thread David Duncan
On Nov 14, 2008, at 10:33 AM, Michel Schinz wrote: Le 14 nov. 08 à 18:04, David Duncan a écrit : AppKit doesn't do hit testing via the layer tree, so by moving the button's layer, you've desynchronized the graphical location of the button with the hit test location of the

Re: Unable to generate a PDF from textual data

2008-11-14 Thread David Duncan
ork with (including creating a CGPDFDocument with the PDF data in it). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Layer-backed NSOpenGLView not showing up

2008-11-16 Thread David Duncan
be what you want, but it usually isn't, so thats why I point it out. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Conta

Re: CMGetImageSpace() replacement?

2008-11-18 Thread David Duncan
cs to load the image and query its color space. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-

Re: Animated subviews

2008-11-24 Thread David Duncan
f it was statically typed as a CALayer, then the second assignment would require a typecase. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: Core Animation: How to swicth off all implicit animations?

2008-11-24 Thread David Duncan
what animation is done for any given property. This sequence of events is described in the docs for CALayer's -actionForKey: method. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: NaN values from presentationLayer

2008-11-24 Thread David Duncan
ues causing the fuss. Please file a bug report. Try watching the position & bounds of the layer instead. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: CALayer containing a view

2008-11-24 Thread David Duncan
d from the window. You might want to reconsider your design. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mod

Re: UIImageView drawRect not called

2008-12-02 Thread David Duncan
ion its hard to know... -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Hel

Re: Special Characters Edit Menu Item

2008-12-03 Thread David Duncan
bad practice? If bad, why? It is not recommended, as it is part of the Mac OS X user experience, as it is provided to allow the user to easily enter special characters. Why do you want to remove it? -- David Duncan Apple DTS Animation and Printing

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-12 Thread David Duncan
might require) are likely to fail. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-a

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-12 Thread David Duncan
in AppKit, but you can do this using Core Graphics & ImageIO. The MassiveImage sample demonstrates how you can stream very large images (up to 32k x 32k iirc) to disk. <http://developer.apple.com/samplecode/MassiveImage/index.html> -- David Duncan Apple DTS An

Re: -[UIView actionForLayer:forKey:] returns NSNull

2009-03-03 Thread David Duncan
something else (I'm pretty certain nil, but I haven't looked at this specifically). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: All my leaks are gone... but now a memory warning?!

2009-03-03 Thread David Duncan
few clicks freezes up my phone. Memory warnings are a fact of life on iPhone OS, but without more information on why your freezing, it will be nearly impossible to actually help. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev

Re: launching per-user background agent 10.5 and higher

2009-03-05 Thread David Duncan
On Mar 5, 2009, at 4:05 PM, Rick Mann wrote: Suggests launchd won't reliably run user agents. is this true in 10.5+? This is resolved on 10.5. See TN 2083 Deamons and Agents <http://developer.apple.com/technotes/tn2005/tn2083.html#SECLAUNCHDAGENT > -- David Duncan Apple DTS An

<    4   5   6   7   8   9   10   11   >