Re: Calling getter on const object

2010-11-08 Thread David Duncan
is of non-class type 'objc_object* const' -- David Duncan ___ 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: Calling getter on const object

2010-11-08 Thread David Duncan
, and is fixed soon after instantiation) in spite of the fact that I only have a 'const' pointer to the object at the time I want to access it. Semantically I don't see why it should be unsafe to attempt to find out the value of that property. -- David Duncan

Re: Calling getter on const object

2010-11-08 Thread David Duncan
at all. Just declare and use the variable normally. -- David Duncan ___ 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: CAShapeLayer curved path animation

2010-11-06 Thread David Duncan
predictable by using AddCurveToPoint in both places, and to use the same location for both control points (which degenerates a Cubic curve to a Quadratic one). -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: iPad frame-by-frame animation

2010-11-05 Thread David Duncan
put all this in a view hierarchy and move the whole thing from side to side. Done, and in far less memory. Obviously if your scene is more complex this will require more work, but for many animations of this nature it works well. -- David Duncan

Re: iPad frame-by-frame animation

2010-11-04 Thread David Duncan
and animated bits, stuff them into views, move the views. 3) Shrink your image sizes, scale them up for animation. 512x384 for example cuts the memory usage by 75%. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: UITouch's function locationInView not working with iOS4.2

2010-11-03 Thread David Duncan
expect, but we have no idea what is actually going wrong. Also, if you think this is a framework bug, file one. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: UITableView Selection

2010-11-02 Thread David Duncan
On Nov 2, 2010, at 9:15 AM, Phillip Mills wrote: Suggestions for a cleaner approach would be appreciated -viewWillAppear: or -viewDidAppear: perhaps? -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: malloc_error_break

2010-10-21 Thread David Duncan
for object 0x21568580: Non-aligned pointer being freed (2) How can I avoid this? Did you perhaps change destination between malloc() and free()? -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: NSSavePanel does replace / in the filename with a :

2010-10-16 Thread David Duncan
doesn't matter – the Finder will still show Part 1/2.jpg. -- David Duncan ___ 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: iPhone/iPad device orientation problems

2010-10-14 Thread David Duncan
(interfaceOrientation); } As a rule -shouldAutorotateToInterfaceOrientation: should not have any side effects, primarily because it may be called in situations other than when your view controller currently arbitrates the supported orientations (most commonly this case is a UITabBarController). -- David

Re: Why is 'missing sentinel in function call' appearing?

2010-10-14 Thread David Duncan
is already on the stack. -- David Duncan ___ 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/Update your

Re: Why is 'missing sentinel in function call' appearing?

2010-10-14 Thread David Duncan
On Oct 14, 2010, at 1:30 PM, David Duncan wrote: On Oct 14, 2010, at 1:25 PM, Tito Ciuro wrote: return [[[self alloc]initWithObjects:someObjects]autorelease]; warning occurs here -initWithObjects expects a list with a nil terminator, which you have not provided. If this works

Re: clear a CGContextRef in an iPhone app

2010-10-04 Thread David Duncan
this? About the only thing I know of that might cause this is trying to call UIGraphicsGetCurrentContext() from outside of -drawRect: (in which case unless you've pushed or started your own context you get back NULL, which CG ignores). -- David Duncan

Re: clear a CGContextRef in an iPhone app

2010-10-04 Thread David Duncan
should be causing any problems. -- David Duncan ___ 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: Need functionality of CAShapeLayer in 10.5

2010-09-21 Thread David Duncan
the layer. Either way your talking about drawing your path into a plain CALayer. -- David Duncan ___ 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: Need functionality of CAShapeLayer in 10.5

2010-09-21 Thread David Duncan
. -- David Duncan ___ 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/Update your Subscription: http

Re: Animating a non-standard layer property

2010-09-20 Thread David Duncan
define them (by declaring them @dynamic) they cannot be animated and you will see the symptoms you see. In your -drawInContext: method you can then query the property to get the current value. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev

Re: Animating a non-standard layer property

2010-09-20 Thread David Duncan
this? It is not mentioned in the Core Animation Programming Guide (2010-08-12), and I have got two e-books on core animation, and it is not mentioned in either of them. Thanks Ken On 21 Sep, 2010,at 09:07 AM, David Duncan david.dun...@apple.com wrote: On Sep 20, 2010, at 3:42 PM

Re: NSImageViews, Block Animation and Frame by Frame Image Swapping

2010-09-15 Thread David Duncan
+[UIView beginAnimations:context:] isn't the new block based animation routines – those are the +[UIView animateWithDuration:*] and +[UIView trasition*] methods. +[UIView beginAnimations:context:] is the old method from 2.0. -- David Duncan ___ Cocoa

Re: Apple Sample Code GLES2Sample problems

2010-09-15 Thread David Duncan
context, CFDataRef metadata) CG_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_0); Obviously something is messed up, but what can I do to fix this? https://devforums.apple.com/message/287160#287160 -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev

Re: NSImageViews, Block Animation and Frame by Frame Image Swapping

2010-09-15 Thread David Duncan
animations? On Sep 15, 2010, at 9:56 AM, David Duncan wrote: On Sep 14, 2010, at 9:42 PM, James Miller wrote: With Apple recommending block-based animation of UIImageViews, I'm not quite grasping how to take older frame-by-frame animation code like this: NSArray *playerImagesRight = [NSArray

Re: Layer-backed view artifact

2010-09-14 Thread David Duncan
to unmark that. Or as an alternative, maybe mark your split view as layer backed instead? -- David Duncan ___ 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: CALayer instant content update

2010-09-13 Thread David Duncan
On Sep 13, 2010, at 7:58 AM, Matt Neuburg wrote: I would recommend that Apple improve the documentation https://bugreport.apple.com/ or the feedback links at the bottom of every page in the documentation. If there isn't a bug, the issue doesn't exist. -- David Duncan

Re: question on speed and memory display on 10.6.

2010-09-12 Thread David Duncan
of system memory? Disk storage and rates should be in base-10. System memory is in base-2. -- David Duncan ___ 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: what is best for a simple 3D animation

2010-09-12 Thread David Duncan
on Mac OS X and OpenGL ES on iOS (technically via CAEAGLLayer, but see the OpenGL template for details). -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Animating the view layer

2010-09-09 Thread David Duncan
apple forum I cant find the answer for it. I hope you guyz can help. The following is the code which I used for the animation. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: CALayer -drawInContext and GCD

2010-09-03 Thread David Duncan
nothing: the -(void)display Read: at any subsequent call, albeit the block is correctly enqueued, nothing is done: … Are you sure the block was executed? I've done this before in various incarnations and never seen what you describe... -- David Duncan

Re: CALayer instant content update

2010-09-03 Thread David Duncan
the documentation for -[CALayer actionForKey:] for more details. -- David Duncan ___ 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: CALayer -drawInContext and GCD

2010-09-02 Thread David Duncan
have to ensure that your layer's drawing is threadsafe. Should be as simple as this with that precondition met: dispatch_async(queue, ^{ [layer display]; [CATransaction flush]; } -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev

Re: CALayer -drawInContext and GCD

2010-09-02 Thread David Duncan
On Sep 2, 2010, at 9:40 AM, Chris Parker wrote: On 2 Sep 2010, at 8:52 AM, David Duncan wrote: On Sep 2, 2010, at 7:39 AM, Vincent Habchi wrote: I just wanted to know someone has already tried to successfully send a CALayer -drawInContext method to a GCD dispatch queue. I suspect

Re: CALayer -drawInContext and GCD

2010-09-02 Thread David Duncan
is things mostly working but occasionally your drawing going into the wrong view. Basically *never* use the context given to you in -drawInContext: outside of that invocation. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: can you autorelease toll-free bridged types

2010-08-31 Thread David Duncan
GC. The typical idiom for dual mode code is to do [NSMakeCollectable(foo) autorelease] which will ensure the object will be released under both RR and GC (NSMakeCollectable is identical to CFMakeCollectable except for its return value being id instead of void*). -- David Duncan

Re: CGLayer resolution on iPhone with Retina display

2010-08-29 Thread David Duncan
I would recommend you file a bug. -- David Duncan On Aug 29, 2010, at 9:38 AM, Matt Neuburg m...@tidbits.com wrote: On or about 8/28/10 9:31 PM, thus spake David Duncan david.dun...@apple.com: In the case of iOS for example, caching contents to CGLayers is rarely useful because

Re: CGLayer resolution on iPhone with Retina display

2010-08-29 Thread David Duncan
On Aug 29, 2010, at 11:21 AM, Matt Neuburg wrote: On or about 8/28/10 9:31 PM, thus spake David Duncan david.dun...@apple.com: it is usually far more useful to use a hardware cache, which means CALayer or UIView, not CGLayer. Sorry to keep coming back to this, but the documentation

Re: NSString / NSURL

2010-08-28 Thread David Duncan
is the error you are getting? -- David Duncan ___ 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/Update your

Re: NSString / NSURL

2010-08-28 Thread David Duncan
:]: unrecognized selector sent to instance 0x16fbe0 defaultImageLocation is an NSURL* (because thats what you created at the top of the method). You want to use -URLByAppendingPathComponent: with it. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev

Re: CGLayer resolution on iPhone with Retina display

2010-08-28 Thread David Duncan
On Aug 28, 2010, at 1:22 PM, Matt Neuburg wrote: In my UIView's drawRect: I derive a CGLayer from the current context, draw into it, and then draw the layer into the context (the view). Out of curiosity is there any particular reason you are taking this approach? -- David Duncan

Re: TARGET_OS_MAC section generates a compile error on an iPhone project?

2010-08-27 Thread David Duncan
release]; } #elif TARGET_OS_IPHONE // do something here... #endif return __sSystemPageSize; } There is no reason to use NSTask for this on the desktop. Just call getpagesize() on either platform. -- David Duncan ___ Cocoa-dev

Re: Autorelease Pool Question.

2010-08-25 Thread David Duncan
On Aug 25, 2010, at 5:08 AM, Mr. Gecko wrote: I do not do garbage collection because I am building for 10.4. Why, because I have 10.4 customers. -drain is still available on 10.4. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev

Re: UIViewController and splash screen orientation issue on iPad

2010-08-25 Thread David Duncan
and landscape default pngs) it should just work from there. -- David Duncan ___ 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: Difference between NSOperationQueue and NSThread in iOS4?

2010-08-25 Thread David Duncan
that NSOperation uses GCD, the threads are much longer lived and thus Core Animation's state flush doesn't occur (because you aren't running a run loop). -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: UIViewController and splash screen orientation issue on iPad

2010-08-25 Thread David Duncan
of the watchdog timers and having your application get killed. Basically you should NEVER block the main thread for any reason. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: UIView antialiasing

2010-08-19 Thread David Duncan
makes me wonder if there's a better way. Unfortunately at this time the clumsy and inelegant solution is also the only viable one. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: who stole my UIView?

2010-08-13 Thread David Duncan
() used a format that caused Core Animation to make a copy of the data). -- David Duncan ___ 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: iphone large image downloading

2010-08-11 Thread David Duncan
. -- David Duncan ___ 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/Update your Subscription: http

Re: iphone large image downloading

2010-08-11 Thread David Duncan
more built in memory, but is almost certain to fail on older devices that do not. But 24MB is still a huge amount of memory to consume on a single image that the user can't even see all at once. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev

Re: Understanding property/synthesize

2010-08-08 Thread David Duncan
SDK, the simulator supports the modern, non-fragile runtime. -- David Duncan ___ 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: Scroller With CATiledLayer Running out of Memory

2010-08-07 Thread David Duncan
and in AppKit under layer backed mode however a layer will retain backing store for its entire content area (generally bounds.size * contentsScale). You can ask for partial draws, but if the content isn't going to change then that may not be worth it. -- David Duncan

Re: Hiding Document Files from iTunes

2010-08-07 Thread David Duncan
the files and folders, to no avail -- they still show up in iTunes. Is there any way to prevent this? http://developer.apple.com/iphone/library/qa/qa2010/qa1699.html -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Scroller With CATiledLayer Running out of Memory

2010-08-07 Thread David Duncan
bottlenecks really are, because I think part of your issue may be due to assumptions about where your bottlenecks are. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Scroller With CATiledLayer Running out of Memory

2010-08-06 Thread David Duncan
is a function of their size – then you could end up blowing past available memory pretty quickly. You might try using smaller tiles instead. Fade duration is unlikely to have any effect (as that is applied after a tile is rendered). -- David Duncan ___ Cocoa

Re: Scroller With CATiledLayer Running out of Memory

2010-08-06 Thread David Duncan
of layers or views that do your drawing as you scroll through the document. This allows you to maintain control of memory usage as well. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: UIImageView and UIViewContentModeBottomLeft

2010-08-05 Thread David Duncan
is usually sized for the view. But clipping isn't free (it is usually fairly cheap however). In particular if clipsToBounds=YES was the default, then all of your views would clip all of their subviews leading to O(n^2) clipping operations (where n is the depth of your view hierarchy). -- David

Re: AttributedString from NSData on iPhone.

2010-08-05 Thread David Duncan
of the NSAttributedString (probably as strings with matching attribute dictionaries) and reassemble the NSAttributedString from that at runtime. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: AttributedString from NSData on iPhone.

2010-08-05 Thread David Duncan
and setting attributes and characters. You will have to use those methods along with your own storage scheme to save and restore the NSAttributedString. It primarily comes down to reading the documentation and asking more pointed questions if necessary :). -- David Duncan

Re: UIImageView and UIViewContentModeBottomLeft

2010-08-04 Thread David Duncan
draw at its full size. A UIView (really the CALayer owned by the view) can and will display content larger than its bounds if given to it. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: UIImageView and UIViewContentModeBottomLeft

2010-08-04 Thread David Duncan
On Aug 4, 2010, at 4:46 PM, Jonathon Kuo wrote: On Aug 4, 2010, at 9:43 AM, David Duncan wrote: A UIView (really the CALayer owned by the view) can and will display content larger than its bounds if given to it. Is there a way to restrict this behavior, i.e., to make it that the UIView

Re: iOS 4: CGImageCreateWithImageProvider

2010-08-03 Thread David Duncan
it says. Someone tried to create a CGImage with a size of 0x0. What can I do about this? If you are creating CGImages, you should ensure they aren't 0x0 in size. If you are not creating CGImages then you should file a bug report. -- David Duncan

Re: NSURLConnection - data comes in after completion

2010-08-02 Thread David Duncan
, and there is a significant amount of data coming in - 30K out of a 200K image. It is unclear how you are managing having multiple requests. Do you have multiple instances of this class, or does -loadAsync just get called 4 times? -- David Duncan ___ Cocoa-dev

Re: Problem with UITableView

2010-07-31 Thread David Duncan
dozens or hundreds of rows that all share a specific type. In such a case you might have less than a dozen cell instances for those hundreds of rows, but you still need individual instances for each row. -- David Duncan ___ Cocoa-dev mailing list (Cocoa

Re: Elapsed time vs sleep

2010-07-26 Thread David Duncan
from assuming that timers will always fire on time, every time (neither of which is true). -- David Duncan ___ 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: Adding an image to a project

2010-07-14 Thread David Duncan
? Without knowing what is going wrong it is difficult to advise... -- David Duncan ___ 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: UITableView.layer renderInContext: after setContentOffset ?

2010-07-05 Thread David Duncan
as renderInContext does not implement the full Core Animation compositing model. -- David Duncan On Jul 5, 2010, at 12:01 PM, Chaitanya Pandit chaita...@expersis.com wrote: Hi, List I'm trying to create an image out of a UITableView using the layer's renderInContext Method, however my problem

Re: iPhone simple 'cartoon' animation

2010-06-29 Thread David Duncan
you are on pretty good footing. -- David Duncan ___ 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: Text rendered in NSImage is fuzzy

2010-06-27 Thread David Duncan
over, and thus you get no subpixel smoothing. You can get subpixel smoothing in CATextLayer by subclassing and overriding -drawInContext: to first draw an opaque color into the target context before calling -[super drawInContext:]. -- David Duncan

Re: force rendering of views off screen

2010-06-24 Thread David Duncan
1.5s for all of it to display :). -- David Duncan ___ 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: Odd Behaviour with CALayer

2010-06-17 Thread David Duncan
this couldn't be declared in the property itself. 2010-06-17 02:49:13.464 Revapp[4838:a0f] expecting model layer not copy: MRWorkspaceItemLayer[(125,125)] What version of Mac OS X are you on? -- David Duncan Apple DTS Animation and Printing ___ Cocoa

Re: Problem opening large files into NSDocument

2010-06-09 Thread David Duncan
Is your application 32-bit? Are you trying to load the entire file into memory if you are? If so that would be why you are getting that error. -- David Duncan On Jun 9, 2010, at 12:56 PM, Pascal Harris 45rpmli...@googlemail.com wrote: Weird one this - especially since I can't find any

Re: [iPhone] Preprocessing events sent to UITableView

2010-06-06 Thread David Duncan
it the way you think you should. Then perhaps someone can recommend a better solution. -- 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: CFAttributedString and NSDATA

2010-06-03 Thread David Duncan
it? (Or does the RTF import/export category on NSAttributedString not exist in UIKit?) It doesn't exist in UIKit. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: va_list and unanticipated format specifiers

2010-06-03 Thread David Duncan
, this would preclude the client logging objects, but from the sounds of your specification, any escaping you did would have the same effect. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: [iPhone] more UIScrollView

2010-06-02 Thread David Duncan
cases (for example line art). Getting pixel perfect zooming however is difficult and to rather performance intensive for something like PDF. You could also try just using a UIWebView for displaying PDF if it does what you need. -- David Duncan Apple DTS Animation and Printing

Re: Problem with CGPDFPageRef

2010-06-02 Thread David Duncan
. What's the code look like here? Are you getting any warnings? More than likely this is something along the lines of a type mismatch on the message send, but without seeing the code it is hard to know how or why that might happen. -- David Duncan Apple DTS Animation and Printing

Re: Problem with CGPDFPageRef

2010-06-02 Thread David Duncan
or messages. Where are you getting the wrong value and where is that code being called from with the correct value? -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Core Animation - Animation Sequence

2010-06-01 Thread David Duncan
was recently updated to show this technique. -- 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: I need float resolution bitmap data from a JPG using CIImage or similar helper

2010-06-01 Thread David Duncan
); Are you sure the context was actually created? Specifically for float contexts, you need the kCGImageAlpha[Premultilied | None]Last flag as well. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Core Animation - Animation Sequence

2010-05-31 Thread David Duncan
animation that is created when you assign the transform to the layer. In this example I use the CAValueFunction rather than the extended keypath as this is more efficient and much more predictable, but doing so requires 10.6. -- David Duncan Apple DTS Animation and Printing

Re: iPad animations are backwards for some orintations.

2010-05-26 Thread David Duncan
on the views move however. Have you filed a bug? -- 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: CATiledLayer Memory Usage

2010-05-24 Thread David Duncan
pressure gets high enough this cache should be flushed however. What problem are you trying to solve and how are you determining memory usage? -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: NSXMLParser initWIthData - Encoding?

2010-05-21 Thread David Duncan
. I'm not saying that you're a moron for accidentally forgetting to document it, but if you want to say (as you seem to be doing) that it's OK to consciously leave it out, then you're just a moron. Insulting people is not a good way to get help on a public mailing list. -- David Duncan Apple DTS

Re: Layer-hosting views and layer-backed scroll views

2010-05-21 Thread David Duncan
and go through the normal CG drawing path, so it would definitely be recommended to specify the never redraw policy. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: iPhone/iPad: Desktop wallpaper can't be set.

2010-05-19 Thread David Duncan
in the current API. I would recommend filing a bug report asking for this capability. -- 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: iPad interface orientation basics

2010-05-18 Thread David Duncan
it, but it is hard and there are much easier ways to go about the task. -- 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: iPad interface orientation basics

2010-05-14 Thread David Duncan
On May 12, 2010, at 12:52 PM, sebi s...@happyhappyboy.de wrote: hello, sorry, this is probably a very simple thing, but i am quite puzzled right now. when i do this in my view controller: - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {

Re: drawRect not called when hosting Layers

2010-05-06 Thread David Duncan
. This is to prevent AppKit from overwriting the content you may have assigned to the layer. And if you don't enabling layer backing, then AppKit won't display the layer and thus won't display your animation. -- David Duncan Apple DTS Animation and Printing

Re: iPhone resource cache - memory question

2010-05-06 Thread David Duncan
(in which case you do not want to unload 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 at cocoa-dev

Re: iPhone resource cache - memory question

2010-05-06 Thread David Duncan
over audio, but in terms of memory impact on the system this is likely to be the correct choice. -- 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: iPhone resource cache - memory question

2010-05-05 Thread David Duncan
by about half. If the cache is under a certain size (say 5MB) just purge the entire 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

Re: premultiplying alpha

2010-05-04 Thread David Duncan
, then draw the first into the second? This should do the premultiplication for you as well as cover any format that NSBitmapImageRep supports, rather than the ones that you manually code (as well as being more efficient since we've spent the effort to performance optimize those conversions). -- David

Re: NSPrintOperation Fails to Auto-Paginate?

2010-05-03 Thread David Duncan
] initWithDictionary:printInfoDictionary] autorelease]; NSPrintOperation *operation = [NSPrintOperation printOperationWithView:view printInfo:printInfo]; -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Help with threads and queues

2010-04-29 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/Update

Re: 'Build and Analyze' with XCODE 3.2.2

2010-04-26 Thread David Duncan
. The analyzer won't recognize one where the other is proper. There are also adornments you can use to override the analyzer's understanding, but I can't recall them right now. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev

Re: conflict between Core Graphics and NSView graphics

2010-04-26 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: App is in Landscape Mode, but main UIWi ndow still thinks it’s portrait.

2010-04-22 Thread David Duncan
orientation here. It is sufficient to simply return YES for the orientations that you want (assuming that you've done everything else correctly). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Problem with CoreAnimation and OpenGL drawing from a safari plugin

2010-04-22 Thread David Duncan
the timing information provided to you by -drawInCGLContext: to drive your animation. An exceptionally simple version of this is demonstrated in the CALayerEssentials sample's example CAOpenGLLayer. -- David Duncan Apple DTS Animation and Printing

Re: need help getting Apple sample code to compile

2010-04-21 Thread David Duncan
, not modifications necessary to the sample (sample code is designed to be self contained and built without modification as a general case). What am I missing? From what I can tell, your doing too much. -- David Duncan Apple DTS Animation and Printing

Re: iPhone: A memory leak I can't explain

2010-04-15 Thread David Duncan
on this list. You can copy from the Extended Detail pane where the stack trace is shown. -- 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: iPhone: A memory leak I can't explain

2010-04-15 Thread David Duncan
0x3198e348 100 1 36.00 KB 0x319802e4 Do you happen to know what these frames are from? -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: iPhone: A memory leak I can't explain

2010-04-15 Thread David Duncan
On Apr 15, 2010, at 12:32 PM, Tino Rachui wrote: 2010/4/15 David Duncan david.dun...@apple.com On Apr 15, 2010, at 11:50 AM, Tino Rachui wrote: Well, yes but only one line at a time if I'm not wrong(?) which makes copying the whole stack a rather cumbersome task. Shift-click to extend

<    1   2   3   4   5   6   7   8   9   10   >