Re: QTMovieLayer and movie controls

2009-06-01 Thread David Duncan
controls as CALayers. This is also an option, although you would need to do hit testing and such yourself. For that reason alone I would probably go with option 1. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev

Re: Best way to draw text in CAOpenGLLayer

2009-05-22 Thread David Duncan
/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.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

Re: getting a point from an array of NSValue CGPoints

2009-05-22 Thread David Duncan
to the context and then do all the typical path stuff with. -- 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

Re: Controlling some of CoreAnimation's more confusing automation

2009-05-21 Thread David Duncan
the documentation for -actionForKey: for more information. -- 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

Re: Best way to draw text in CAOpenGLLayer

2009-05-21 Thread David Duncan
On May 21, 2009, at 10:12 AM, David Duncan wrote: Don't. Use a CATextLayer (which can render text for you) or a CALayer (to display image content) instead. Unless you want to get outlines of your text, the CAOpenGLLayer is really not a good way to do this. Clarifying a bit - unless you

Re: iPhone Generating and displaying images using Bitmap

2009-05-19 Thread David Duncan
what type of file you are really looking at. If you've verified you have a valid JPEG, then the next step is probably to file a bug report. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: iPhone text on UIImage not getting displayed on device.

2009-05-19 Thread David Duncan
. Quartz will also clamp colors if appropriate, so these components are just getting clamped to 1.0 anyway. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: didReceiveMemoryWarning Confusion

2009-04-30 Thread David Duncan
behavior. -- 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

Re: Strange error message when trying to print

2009-04-27 Thread David Duncan
), not your own. Probably need more context to determine why your hanging, but it is unlikely to be due to this message. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Clicking through a NSView with CALayers

2009-04-27 Thread David Duncan
methods. -- 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

Re: Scaling an entire CGPath?

2009-04-22 Thread David Duncan
the path to... -- 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

Re: Scaling an entire CGPath?

2009-04-22 Thread David Duncan
On Apr 22, 2009, at 11:25 AM, Maryanna Rogers wrote: This path will never be drawn. Then we probably need to know what you are trying to accomplish to give you the best advice. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev

Re: Quartz Comp on iPhone

2009-04-20 Thread David Duncan
On Apr 20, 2009, at 11:17 AM, Development wrote: Is it possible to load a quartz composition on iPhone? I'm not seeing anything in the APIs Quartz Composer is not part of the iPhone SDK. -- David Duncan Apple DTS Animation and Printing ___ Cocoa

Re: How to animate the drawing of UIImages inside a drawRect: method of a UIView?

2009-04-03 Thread David Duncan
will animate its way through the atlas without you needing to do a thing. -- 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

Re: Memory leak when setting CALayer name

2009-03-23 Thread David Duncan
/ with a reproducible case so that it can be fixed in the future. -- 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

Re: subclassing UIScrollView

2009-03-11 Thread David Duncan
kinds of scrolling you want to enable/prohibit it would be easier to advise you. -- 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: What is using up so much memory here?

2009-03-10 Thread David Duncan
size. -- 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

Re: What is using up so much memory here?

2009-03-10 Thread David Duncan
to accomplish. Typically you avoid loading anything you don't need and release anything when your done with it. And you may want to switch to imageWithContentsOfFile: until you can prove that the caching behavior of imageNamed: is providing you with a performance improvement. -- David Duncan Apple DTS

Re: What is using up so much memory here?

2009-03-10 Thread David Duncan
(when creating the content, not after loading them). -- 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

Re: Need to use Quartz... I think?

2009-03-07 Thread David Duncan
of that UIImageView Size the UIImageView to expose the number of indicators you desire and set its contentMode to UIViewContentModeLeft. If the indicators can appear in any order, you probably would still want to do this in a UITableView, but you probably have more work. -- David Duncan Apple DTS

Re: Why is my UIColor white actually gray?

2009-03-06 Thread David Duncan
On Mar 6, 2009, at 12:57 PM, James Cicenia wrote: [self setImage:[[UIImage imageNamed:@WF-MyLocBu- DistBack.png]autorelease]]; Unrelated, but don't do this. You don't have ownership to the results of +imageNamed:, so you should not be releasing or autoreleasing it. -- David Duncan Apple

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 Animation

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

2009-03-03 Thread David Duncan
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 comments to the list. Contact

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

2009-03-03 Thread David Duncan
a 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: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?

2009-03-02 Thread David Duncan
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 cocoa

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

2009-03-02 Thread David Duncan
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-admins

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

Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?

2009-02-27 Thread David Duncan
, 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 Printing

Re: Large layers in Core Animation

2009-02-18 Thread David Duncan
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 admin requests or moderator comments to the list

Re: QCCompositionLayer doesn't draw until window resized?

2009-02-17 Thread David Duncan
. 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 -- David Duncan Apple

Re: CALayers Lost After Switching Window's ContentView

2009-02-16 Thread David Duncan
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. -- David Duncan Apple DTS

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
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 DTS Animation

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 Apple DTS

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

2009-02-09 Thread David Duncan
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 or moderator

Re: Constrained layer-backed control stops responding

2009-02-09 Thread David Duncan
? 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 Apple DTS

Re: Stroking a CATextLayer

2009-02-03 Thread David Duncan
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 list. Contact

Re: CGAffintransform and UIImage Views

2009-01-30 Thread David Duncan
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 requests

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: 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 ___ Cocoa-dev

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 expected

Re: NSView behaves different on 10.4 vs 10.5?

2009-01-29 Thread David Duncan
wonder what happens 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: Zombies: Not a Type release

2009-01-22 Thread David Duncan
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) Please do

Re: CALayer animating images

2009-01-21 Thread David Duncan
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. -- David Duncan Apple DTS

Re: CALayer unwanted blurring

2009-01-19 Thread David Duncan
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 Animation and Printing

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 Apple DTS

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

2009-01-15 Thread David Duncan
is 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. Contact

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
(). -- 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/Unsubscribe

Re: Using UIImageView for animations

2009-01-12 Thread David Duncan
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 unfortunately. -- David

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 Duncan Apple

Re: Recording video from a QCView to .mov

2009-01-08 Thread David Duncan
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 cocoa-dev-admins

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-07 Thread David Duncan
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-dev mailing list

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-06 Thread David Duncan
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 report may be your best option. -- David Duncan

Re: QTMovieLayer and QCCompositionLayer Don't Start

2009-01-06 Thread David Duncan
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 ___ Cocoa-dev

Re: Question Regarding the Memory Address of Objects

2008-12-18 Thread David Duncan
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 memory. -- David Duncan Apple DTS Animation and Printing

Re: CLLocationDistance contents?

2008-12-18 Thread David Duncan
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 cocoa-dev

Re: CALayer shadow and animation

2008-12-17 Thread David Duncan
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 Duncan Apple DTS Animation and Printing

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-16 Thread David Duncan
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 and Printing

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-15 Thread David Duncan
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) Please do

Re: CALayer and Memory Management

2008-12-15 Thread David Duncan
). 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, you will be fine. -- David Duncan Apple DTS Animation

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. -- David

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-15 Thread David Duncan
://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) Please do

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-12 Thread David Duncan
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-admins(at)lists.apple.com Help

Re: - [NSBitmapImageRep tiffRepresentation] malloc error

2008-12-12 Thread David Duncan
, 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 Animation and Printing

Re: Special Characters Edit Menu Item

2008-12-03 Thread David Duncan
or 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: UIImageView drawRect not called

2008-12-02 Thread David Duncan
calling - drawRect: (which would make sense since it would be better performance than using the -drawRect: method). Could you explain what you are trying to do? There may be a better solution than implement your own UIView subclass here, but without more information its hard to know... -- David

Re: Animated subviews

2008-11-24 Thread David Duncan
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 comments to the list. Contact

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

2008-11-24 Thread David Duncan
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) Please do

Re: NaN values from presentationLayer

2008-11-24 Thread David Duncan
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 moderator comments

Re: CALayer containing a view

2008-11-24 Thread David Duncan
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 moderators

Re: CMGetImageSpace() replacement?

2008-11-18 Thread David Duncan
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-dev-admins

Re: Layer-backed NSOpenGLView not showing up

2008-11-16 Thread David Duncan
, 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. Contact the moderators at cocoa

Re: CALayer and View controls

2008-11-14 Thread David Duncan
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-dev-admins

Re: Adding an NSButton to a layer-hosted view

2008-11-14 Thread David Duncan
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 moderator comments to the list

Re: CALayer and View controls

2008-11-14 Thread David Duncan
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 sublayers. -- David

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 button. If you

Re: Unable to generate a PDF from textual data

2008-11-14 Thread David Duncan
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. Contact the moderators

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

2008-11-10 Thread David Duncan
-- 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/Unsubscribe

Re: CAOpenGLLayer no Antialiasing?

2008-11-08 Thread David Duncan
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)lists.apple.com

Re: Enumerating outlets automatically?

2008-11-05 Thread David Duncan
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 ___ Cocoa-dev

Re: NSData dataWithContentsOfFile - freeWhenDone:NO ?

2008-10-31 Thread David Duncan
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 Printing

Re: Binding question

2008-10-28 Thread David Duncan
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 Apple DTS

Re: Leaking CGColor objects

2008-10-27 Thread David Duncan
= 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) Please do not post

Re: Cocoa and Printing (Advanced Q)

2008-10-27 Thread David Duncan
to 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: NSData and NSImage

2008-10-23 Thread David Duncan
. -- 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/Unsubscribe

Re: CALayer graphics context

2008-10-22 Thread David Duncan
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 DTS Animation and Printing

Re: Yet another CALayer puzzle

2008-10-22 Thread David Duncan
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 moderators at cocoa

Re: Putting an image on a CALayer

2008-10-22 Thread David Duncan
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 to the list. Contact

Re: Putting an image on a CALayer

2008-10-21 Thread David Duncan
); 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-dev mailing list (Cocoa-dev

Re: how to use the loginItem in OSX 10.3?

2008-10-16 Thread David Duncan
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 Animation and Printing ___ Cocoa

Re: CALayer bounds with ResizeAspect mask?

2008-10-09 Thread David Duncan
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 list (Cocoa-dev

Re: Data Types for Extracting samples from Audio Buffer

2008-10-06 Thread David Duncan
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 moderator comments to the list

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

2008-10-01 Thread David Duncan
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 moderator

Re: Image processing in Cocoa

2008-09-25 Thread David Duncan
universally would likely make any of those cases less optimal than what the OS already provides. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: How do I get CAScrollLayer to draw its sublayers

2008-09-22 Thread David Duncan
CATiledLayer's layer? You need to call -setNeedsDisplay on the tiled layer. Doing so on the scroll layer will only affect its own contents. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Drawing an NSImage in a CALayer

2008-09-19 Thread David Duncan
On Sep 19, 2008, at 10:48 AM, Matt Long wrote: p.s. I would defer to David Duncan on the CGImageRef creation overhead. I'm sure he's right. I just didn't have the time to try to get his code to work. ;-) I forgot to set the current context :). More complete code here, although

Re: Drawing an NSImage in a CALayer

2008-09-18 Thread David Duncan
parameters. This is usually as a result of a -display message being sent to the layer (which is typically arranged for by sending -setNeedsDisplay). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev

Re: Drawing an NSImage in a CALayer

2008-09-18 Thread David Duncan
graphicsContextWithGraphicsPort:context flipped:NO]; [NSGraphicsContext saveGraphicsState]; [myNSImage drawAtPoint:NSZeroPoint fromRect:NSZeroRect op:NSCompositeCopy fraction:1.0]; [NSGraphicsContext setCurrentContext:nsGraphicsContext]; CGImageRef image = CGBitmapContextCreateImage(context); CFRelease(context); -- David Duncan

Re: Drawing on Another App's CGDisplayCapture

2008-09-16 Thread David Duncan
of your window. -- 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

<    4   5   6   7   8   9   10   >