Re: Add a view as observer of a subview transform

2011-07-03 Thread David Duncan
that any of the properties it exports are KV observable. I would recommend you use a different method to observe changes in the transform. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: CIImage directly to CALayer contents?

2011-07-01 Thread David Duncan
of the filters you used to generate that CIImage to the layer. In the case you outline however, there is no advantage to be had – just assign the CGImageRef to the CALayer's contents and you are likely to be as optimal as possible. -- David Duncan

Re: Problem with setNeedsLayout and layoutSubviews in UIScrollView

2011-06-27 Thread David Duncan
determine if it is a portrait or landscape view by comparing width height in many cases. -- 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: Problem with setNeedsLayout and layoutSubviews in UIScrollView

2011-06-26 Thread David Duncan
orientation, us the interfaceOrientation property on your view controller. That said, why layout that way at all? Why not base your layout on the views bounds instead? -- David Duncan @ My iPhone On Jun 26, 2011, at 11:39 AM, Tales Pinheiro de Andrade tal...@me.com wrote: Hi. I have a few

Re: CATransactions having no effect in CALayer draw delegate

2011-06-20 Thread David Duncan
that you are actually changing. @contents is a bit special because it is typically set outside of your control, but other properties tend no to be. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?

2011-06-20 Thread David Duncan
don't do it in -dealloc also, you can still have a case where you get a delegate callback, but have an incomplete UI (depending on what you are doing it may not crash, but you would then not see the results either). -- David Duncan ___ Cocoa-dev

Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?

2011-06-17 Thread David Duncan
at that point. -- 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: Drawing noise in Cocoa (preferably fast)

2011-06-15 Thread David Duncan
? I've got the random noise part working and it easily fast enough. Its a shame there isn't a way to specify the opacity when drawing CGLayers. I'd find that useful but I imagine there is a reason for it. CGContextSetAlpha(). -- David Duncan

Re: Memory Management for an Array

2011-06-13 Thread David Duncan
to you to then follow the lifetime of that object to discover why it was leaked. The method at hand looks good, so it is most likely that the caller or one of its callers has failed to correctly manage the memory. -- David Duncan ___ Cocoa-dev mailing

Re: iOS: antialiasing text

2011-06-10 Thread David Duncan
as the one on your desktop machine). It may make more sense to take this from a different angle, for example why do you need a bitmap context in the first place and why does it need to be larger? There may be better ways of handling this case. -- David Duncan

Re: iOS: antialiasing text

2011-06-09 Thread David Duncan
antialiasing however. -- 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: iOS: Automatically resizing subviews

2011-06-06 Thread David Duncan
masks in a particular way. -- 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

Re: How can I be so wrong about graphics?

2011-06-06 Thread David Duncan
CGContextAddLineToPoint(context,pointB.x, pointB.y); //draw to this point // and now draw the Path! CGContextStrokePath(context); What is pointA pointB? What is self.strokeColor? Assuming this is happening within -drawRect:, it should work just fine. -- David Duncan

Re: How can I be so wrong about graphics?

2011-06-06 Thread David Duncan
On Jun 6, 2011, at 2:37 PM, David Duncan wrote: On Jun 6, 2011, at 2:31 PM, Development wrote: I'm really loosing faith in my ability to read simple english According to like a million examples... If I place the follow bit of code in a view's drawRect: method I should get a line

Re: iOS: drawing the end of a CGPath differently

2011-06-03 Thread David Duncan
with a single path. Instead I would recommend you use another MKOverlay to designate the end of the path. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread David Duncan
the timer if you do) then you cancel the connection attempt and declare that the connection timed out. No need for additional connections. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: What is the point of a host-reachability test that doesn't test the reachability of the host?

2011-06-02 Thread David Duncan
On Jun 2, 2011, at 11:16 AM, Nathan Sims wrote: On Jun 2, 2011, at 10:36 AM, David Duncan wrote: On Jun 2, 2011, at 10:31 AM, Jim Adams wrote: Why? Because the timeout was inordinately long with no way to shorten it other than create my own timeout. Users want responsiveness. One

Re: iOS programming (who does what to whom?)

2011-05-28 Thread David Duncan
which steps you through a simple iOS application. -- 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: Best way to handle iOS device rotation

2011-05-26 Thread David Duncan
orientation callbacks (see the documentation for details) or by implementing -layoutSubviews on relevant views in your view hierarchy. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Why do things wind up under the nav bar after rotation?

2011-05-26 Thread David Duncan
report would be good here. -- 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

Re: Why do things wind up under the nav bar after rotation?

2011-05-26 Thread David Duncan
by taking a view from one view controller and adding it as a subview to a view owned (directly or indirectly) by another view controller? -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Seeding random() randomly

2011-05-26 Thread David Duncan
and relatively rare. The only reason I could reasonably debug the issue like this was because I had control over the sequence of numbers that I was seeing. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Core Animation animations stop prematurely at random

2011-05-17 Thread David Duncan
restriction like that however. That said, as you point out, if you have view that supports layers and come from a nib, you often have to duplicate work to allow it to work in both situations. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev

Re: Core Animation animations stop prematurely at random

2011-05-17 Thread David Duncan
On May 17, 2011, at 9:49 AM, Bill Cheeseman wrote: On May 17, 2011, at 11:33 AM, David Duncan wrote: There should be no actual restriction like that however. That said, as you point out, if you have view that supports layers and come from a nib, you often have to duplicate work to allow

Re: Why RunLoop?

2011-05-17 Thread David Duncan
cannot easily (if at all) replicate. -- 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: Memory growing and growing when using UIImageView's image

2011-05-17 Thread David Duncan
you get one your memory usage will keep growing and growing. -- 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: Why NSClassFromString(@CADisplayLink)?

2011-05-10 Thread David Duncan
QuartzCore.framework. -- 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: setState has no effect on an NSButton

2011-05-10 Thread David Duncan
the comparison to NO after the comparison to YES, because it cannot guarantee that the value you are comparing against isn't a value other than YES or NO in most cases. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Threading synchronization: does a primitive exists?

2011-05-06 Thread David Duncan
to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com This email sent to david.dun...@apple.com -- David Duncan

Re: block animation

2011-05-05 Thread David Duncan
On May 4, 2011, at 4:50 AM, Brian Bruinewoud wrote: Question is: Why doesn't the Nothing button animate in all calls to the method? Only thing I can think of is self.nothingButton == nil. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev

Re: block animation

2011-05-03 Thread David Duncan
(spoiler alert: what you are doing is not supported). If you want to be able to load arbitrary views from nibs to add to a view managed by a view controller, the recommendation is to use an NSObject subclass to own the view and UINib to load the nib. -- David Duncan

Re: Properties vs Instance Variables

2011-04-27 Thread David Duncan
above. -- 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: CALayer: Animation using actions property

2011-04-21 Thread David Duncan
of is that you are using different compilers that are optimizing differently *and* that you are using Garbage Collection (which you allude to when you set various values to nil). But if you aren't using GC, then I have no idea (and setting the values to nil has no effect either). -- David Duncan

Re: CALayer: Animation using actions property

2011-04-19 Thread David Duncan
and repeats indefinitely, which would likely give you the same effect without having to run a timer at all. -- 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: CALayer: Animation using actions property

2011-04-19 Thread David Duncan
it, it can either be a complex or fun game to see what you can do with animations to get an effect by itself ) -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: warning: cast from pointer to integer of different size

2011-04-19 Thread David Duncan
://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com This email sent to david.dun...@apple.com -- 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: Injecting text into a CALayer?

2011-04-15 Thread David Duncan
same thing with UIViews and use UILabel for your labels (which since they do less work for text layout are generally faster). -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Injecting text into a CALayer?

2011-04-15 Thread David Duncan
would ideally somehow be embedded within the circle objects so they could track together. Would it make sense to have a parallel CATextLayer associated with each CALayer in my circle object? Or does CAShapeLayer have that capability? From: David Duncan david.dun...@apple.com To: Jon

Re: Lockless thread-safe accessor using blocks: how to?

2011-04-14 Thread David Duncan
you need to do this: - (SomeObjectType) foo { dispatch_once(ivar_predicate, ^ { ivar_value = /* initialization */ }); return ivar_value; } -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Lockless thread-safe accessor using blocks: how to?

2011-04-14 Thread David Duncan
. If the flag is true, it does nothing. What makes dispatch_once useful over a simple if statement is that it ensures that if you execute dispatch_once concurrently from multiple threads that flag gets updated exactly once, and the block gets called exactly once. -- David Duncan

Re: Lockless thread-safe accessor using blocks: how to?

2011-04-14 Thread David Duncan
On Apr 14, 2011, at 10:26 AM, WT wrote: On Apr 14, 2011, at 2:09 PM, David Duncan wrote: On Apr 14, 2011, at 10:02 AM, WT wrote: I looked at dispatch_once() at one point, but I'm still confused by how it works. dispatch_once uses a predicate (just a flag) to determine if it should run

Re: UIViewControllers being reloaded on didReceiveMemoryWarning... ?

2011-04-13 Thread David Duncan
impact system performance. Can anyone tell me what's causing this ? It's screwing up some of the child views and causing some subtle bugs... Your -viewDidUnload method is either directly or indirectly causing the view to reload, typically by referencing it via self.view. -- David Duncan

Re: AVFoundation and OpenGL?

2011-04-11 Thread David Duncan
by making OpenGL work with AVPlayerLayer. What are you trying to do?™ -- 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: Can an image be rejected by CALayer?

2011-04-11 Thread David Duncan
is). If setting the bounds fixes that, then that is the likely cause. -- 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: PDF Inverted colors

2011-04-11 Thread David Duncan
open that PDF in Preview.app it looks the same, all jpeg images are inverted (looks like a film negative). Anybody have a idea on what is causing this and how to work around it? Thanks Dean Are these JPEG's perhaps CMYK? Either way you should file a bug report. -- David Duncan

Re: AVFoundation and OpenGL?

2011-04-11 Thread David Duncan
to know for certain) Basically a CAEAGLLayer is a cross-over point from Core Animation to OpenGL. Other Core Animation content doesn't interact with the content of a CAEAGLLayer anymore than the content of any single CALayer interacts with the content of any other. -- David Duncan

Re: Display a Red frame on the screen

2011-04-08 Thread David Duncan
and then just create an NSWindow on whatever screens you want. You probably want a borderless window (which is a flag you can pass when you create the window) so that the window doesn't have content by default. -- David Duncan ___ Cocoa-dev mailing list (Cocoa

Re: applicationWillTerminate not received

2011-04-05 Thread David Duncan
without applicationWillTerminate seems kind of rude :( Is there any reason you can't save your state once you enter the background instead? -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: NSString, stringByAppendingPathComponent, and Canonicalization

2011-04-05 Thread David Duncan
that relies on filename, it is probably best to use arbitrary file names and use whatever the user gives you as a document title instead. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: UIView size after rotation

2011-03-30 Thread David Duncan
that the auto rotation methods are called in and what has happened at each step. -- 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: autorelease pool comprehension

2011-03-30 Thread David Duncan
a process which creates lots of objects that are otherwise short lived, but your particular case doesn't have that, since all of these objects end up being referenced, directly or indirectly, via the 'list' object. -- David Duncan ___ Cocoa-dev mailing list

Re: constructor cannot be overloaded?

2011-03-30 Thread David Duncan
with this project). -- 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: Cocoa alternative for method aliasing?

2011-03-29 Thread David Duncan
of why? in this, but I think the answer is that you should use the various control events that are exposed for -addTarget:action:forControlEvents:. By doing so you can get action messages for basically every touch interaction without needing to subclass to forward messages. -- David Duncan

(no subject)

2011-03-22 Thread David Duncan
Is the contentsScale property set correctly? For CALayers it defaults to 1.0, UIKit ensures that it is set correctly for layers that it creates, but it is your responsibility to do this for layers that you create yourself. -- David Duncan On Jul 11, 2010, at 4:03 PM, Carter Allen cocoa

Re: iPhone: animating UILabel width results in pre-stretched text

2011-03-18 Thread David Duncan
animation. This is probably a better alternative. -- 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: Remove characters from string

2011-03-17 Thread David Duncan
in this case it is necessary to understand why you want to do this, as it is highly likely to inform the approach that you should use. As an example, removing all Unicode characters from a string would invalidate characters such as ä, and which could change meanings or identifications. -- David Duncan

Re: iOS 4.2 - Printing Quality

2011-03-15 Thread David Duncan
likely to look bad than one that is significantly smaller if only because the resampling will distort the image more. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: CALayer drawing efficiency

2011-03-14 Thread David Duncan
you nave needsDisplayOnBoundsChanged=YES, I would recommend you set it to NO, and call -setNeedsDisplay on your layers manually when the resizing is done. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Memory used by a UIImage?

2011-03-07 Thread David Duncan
are trying to figure out your memory usage, it is better to use the VM Tracker instrument (part of the Allocations template). You'll have to turn on automatic sampling or press the sample button yourself to get data, but watching the Dirty Size statistic is what you are interested in here. -- David

Re: UIView animation (backgroundColor) + drawRect:

2011-03-02 Thread David Duncan
and may offer some memory usage benefits (if you can use subviews). -- 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: How to create a CGColorSpaceRef with DeviceN model?

2011-02-28 Thread David Duncan
investigated this pathway in the past. -- 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: original image size is not retained when it is exported as PDF using CGImageDestinationRef

2011-02-28 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: CATransformLayer doesn't support implicit animation?

2011-02-09 Thread David Duncan
runloop iteration? If so, there was no from to animate from, so there is no animation. -- 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: UILabel contentView is 'left' out of IB but the default should be 'redraw'

2011-02-08 Thread David Duncan
(such as setting auto sizing text). Since it sounds like you want the redraw behavior, I would probably just make that change in IB and go from there. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: why does UIScrollView call layoutSubviews every time it scrolls?

2011-02-08 Thread David Duncan
. Technically scrolling is a geometry change, since it is accomplished by changing the layer's bounds.origin (basically the change is coming from Core Animation). If your layout is expensive, it is likely that you will need to maintain a separate layout is dirty flag to avoid this. -- David Duncan

Re: Best Approach in displaying the Image in Core Animation Layer - During the animation

2011-02-04 Thread David Duncan
(to make a 1 pixel border) will likely give you the effect that you desire, although at the cost of additional rendering time since your layers will no longer be opaque. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Best text rendering settings?

2011-02-04 Thread David Duncan
look as good as text drawn over a background. -- 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: Best Approach in displaying the Image in Core Animation Layer - During the animation

2011-02-04 Thread David Duncan
larger layer as I mentioned, using the very same APIs that you mentioned :). -- 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: Best text rendering settings?

2011-02-04 Thread David Duncan
like layout metrics (which is above Quartz) and so the question there might be what is Cocoa Text doing differently (which is beyond my knowledge). The first and second look like identical metrics with the issue I pointed out (sub-pixel on vs off). -- David Duncan

Re: NSBitmapImageRep with floating point values

2011-02-03 Thread David Duncan
**)? The type cast doesn't change the data, just the compiler's interpretation of it (and since this is a pointer that won't affect the data itself in anyway). -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: -[CALayer setContents:] slower in iOS 4.2?

2011-02-01 Thread David Duncan
with something that demonstrates the behavior. -- 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: layer contents briefly appearing stretched when resizing

2011-02-01 Thread David Duncan
the view's are resized on one runloop invocation and their contents replaced on the next. Instead of overriding -setFrame: you should override -layoutSubViews: which should catch more cases where layout is needed and allow you to do the work you need at the right time. -- David Duncan

Re: MemoryWarning and loadView

2011-01-24 Thread David Duncan
views (and thus archived along with those views). -- 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: NSString localizedStringWithFormat: and thousand separators

2011-01-21 Thread David Duncan
to test? You seem to be assuming that NSLog calls -localizedStringWithFormat:, you probably want to try calling it yourself and logging the results instead. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: Custom path animation for CAShapeLayer

2011-01-10 Thread David Duncan
not certain this could be done cleanly or without using lots of intermediate paths for even short sequences. It is something to explore. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: How to get colored font smoothing in a CALayer

2011-01-06 Thread David Duncan
: with that context, then create an image from the context and assign it to the layer's contents property. It isn't a generally useful technique, but if you have a case where you want to preserve previous content when redrawing the layer this is one way to do so. -- David Duncan

Re: NSDictionary key types

2011-01-06 Thread David Duncan
] == [dict valueForKey:obj2] is also 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 at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe

Re: NSDictionary key types

2011-01-06 Thread David Duncan
something } Only if [[NSNumber numberWithInt:8760] isEqual:@8760] which I don't believe to be the case. -- 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: NSDictionary key types

2011-01-06 Thread David Duncan
is tall without breaking out a ruler to determine if they are the same length. -- 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: How to get colored font smoothing in a CALayer

2011-01-06 Thread David Duncan
On Jan 6, 2011, at 2:51 PM, James Bucanek wrote: David Duncan mailto:david.dun...@apple.com wrote (Thursday, January 6, 2011 11:53 AM -0800): On Jan 6, 2011, at 10:28 AM, James Bucanek wrote: So how can I get my text to draw as smoothly as the Finder? Subpixel antialiasing requires

Re: dylib question

2011-01-05 Thread David Duncan
, and as such developer provided dylibs are useless. -- 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: Colored Pattern example problems

2010-12-23 Thread David Duncan
and are based upon those functions. -- 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: Colored Pattern example problems

2010-12-23 Thread David Duncan
On Dec 23, 2010, at 1:09 PM, FF wrote: On 2010-12-23, at 12:56 PM, David Duncan wrote: On Dec 23, 2010, at 5:58 AM, FF wrote: I copied this example from Apple docs. Generally the examples are there to show you how to use an API, not necessarily to be complete standalone code. You

Re: Improving drawing of UIView with many many Subviews

2010-12-21 Thread David Duncan
); CGContextTranslateCTM(context, 0, CGImageGetHeight(bc_itemImage)); CGContextScaleCTM(context, 1.0, -1.0); CGContextDrawImage(context, self.bounds, bc_itemImage); CGContextRestoreGState(context); } -- David Duncan ___ Cocoa-dev mailing

Re: Waiting for UIWebView with Dispatch Semaphores

2010-12-21 Thread David Duncan
, but a dead end that will fail for anything but the simplest of scenes. -- 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: Layer hosting views, geometryFlipped, and subviews

2010-12-16 Thread David Duncan
-backed view appkit views -- 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: assign property behaves differently from simple instance variable???

2010-12-14 Thread David Duncan
'self-foo' is equivalent to 'foo' (both are transformed into an appropriate offset into instance storage). self.foo is equivalent to [self foo] or [self setFoo:] depending on context. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev

Re: Using MPMediaPickerController in landscape mode - iPhone

2010-12-14 Thread David Duncan
, but the size of the MPMediaPickerController view's is in portrait mode always. As noted in the documentation, the media picker doesn't support landscape mode. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: drawing thread-safety in iOS

2010-12-02 Thread David Duncan
CATiledLayer being drawn to via drawRect: with UIKit. So what's true? And how can I find out precisely what is and isn't thread-safe? m. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: accelerometer puzzle

2010-12-01 Thread David Duncan
the compiler is just trying to help you understand the ramifications of your code, just like the warning for if (x = y). You can take the advice or leave it. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-12-01 Thread David Duncan
the frame, are not the same, and well the docs clearly says its undefined. Check the bounds, it contains the untransformed size of the view. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-11-30 Thread David Duncan
on the view the frame is a much less reliable means of making adjustments to the view. -- 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

Re: Moving a UIView when has a CAAffineTransformationRotate

2010-11-30 Thread David Duncan
the debugger to check your deltas. -- 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

Re: accelerometer puzzle

2010-11-29 Thread David Duncan
is not the case above). -- 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: respondsToSelector warning: may not respond

2010-11-27 Thread David Duncan
// stuff @end -- 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: respondsToSelector warning: may not respond

2010-11-27 Thread David Duncan
of typing code into Mail instead of a compiler :). -- 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: readonly property which is a mutable array

2010-11-19 Thread David Duncan
it was a mutable object that wouldn't have been modified anyway. -- 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: PDF and iPad

2010-11-09 Thread David Duncan
: Error: FT_Open_Face failed: error 2. for some files as well when I call CGContextDrawPDFPage on some PDF files. Once again, is there a way to pre-flight the PDFs to determine if they are going to fail? -- David Duncan ___ Cocoa-dev mailing list

Re: CAShapeLayer curved path animation

2010-11-08 Thread David Duncan
, I tried the quad curve. -- 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

Re: Synchronizing iOS redraw

2010-11-08 Thread David Duncan
, you may or may not need OpenGL. You can experiment with using a CADisplayLink to update a view/layer hierarchy and see if that gets what you need. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

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