Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread David Duncan
can't change UINavigationBar class/instance, this makes sense? I'm forced to use IB? Since we've come around to file an ER then an appropriate question seems to be what are you trying to accomplish by subclassing the UINavigationBar? -- David Duncan Apple DTS Animation and Printing

Re: odd problems with NSData / OpenGL

2009-12-08 Thread David Duncan
If you don't turn GC on, then you likely don't have it on. Check your project settings, as most if the project templates do not enable GC. -- David Duncan @ My iPhone On Dec 8, 2009, at 3:52 PM, Henri Häkkinen hen...@henuxsoft.com wrote: On Dec 8, 2009, at 6:42 PM, David Duncan wrote

Re: How to determine the type of a motherboard controller

2009-12-07 Thread David Duncan
On Dec 5, 2009, at 12:02 AM, Zephyroth Akash wrote: How do I get the class-code definition of a motherboard controller ? The first question that comes to mind is what do you need to know this information for? Knowing would give us some idea of how to direct you further. -- David Duncan Apple

Re: AudioToolbox detect VBR?

2009-12-07 Thread David Duncan
or not, is this possible using the AudioToolbox framework, or any other apple framework? You would have a better chance of getting an answer on the CoreAudio-API list. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: Question about aliasing (analog clock hands)

2009-12-03 Thread David Duncan
coordinate system. When you specify a point outside of that system, the results are undefined. Specify something between 0,0 and 1,1. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: removing all sublayers from a layer with fast enumeration

2009-11-30 Thread David Duncan
Your modifying an array that is being enumerated, which is illegal. -- David Duncan @ My iPhone On Nov 30, 2009, at 2:23 PM, Matt Neuburg m...@tidbits.com wrote: To remove all sublayers from a layer, it is sufficient to set that layer's sublayers property to nil, so this code is completely

Re: UIImageView Animation Question

2009-11-27 Thread David Duncan
out clearly from the documentation :). -- 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: How do you use an Application ID for an iPhone application

2009-11-26 Thread David Duncan
not pre-pend the 10-character app ID to your bundle identifier, Xcode will do that automatically. -- 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: UIImageView Animation Question

2009-11-26 Thread David Duncan
commitAnimations]; Keep in mind that the call to UIGraphicsGetCurrentContext() here is superfluous, and likely returning NULL. You can remove it without making any change on the behavior of your code. -- David Duncan Apple DTS Animation and Printing

Re: different width in fastenumeration

2009-11-26 Thread David Duncan
by definition gives you the keys, so you could just use for(id key in objects) {} -- 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: UIImageView Animation Question

2009-11-26 Thread David Duncan
the value you are already passing). -- 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: question about informal protocols

2009-11-20 Thread David Duncan
and @required to Protocols is meant to replace the need for Informal Protocols. Categories are still very useful for adding functionality to a class, as Protocols only allow you to create an interface, not an implementation. -- David Duncan Apple DTS Animation and Printing

Re: Advice about crash requested

2009-11-19 Thread David Duncan
On Nov 19, 2009, at 4:18 PM, Chris Idou wrote: I've got a user getting the following crash, and I don't know what to make of it because it all happens in Apple code. Has anyone got any advice? What are you doing on Thread 2 ([FilerExecutor main])? -- David Duncan Apple DTS Animation

Re: iPhone: Having a touch point want to find layer it is in

2009-11-16 Thread David Duncan
a bit with 'hitTest' but in vain so far. Maybe I'm doing something fundamentally wrong. Suggestions much appreciated. What is wrong with -hitTest:? It is exactly what you should be using. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev

Re: CGImageRef printing issue

2009-11-13 Thread David Duncan
context. -- 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: CGImageRef printing issue

2009-11-12 Thread David Duncan
On Nov 12, 2009, at 2:26 PM, Mirko Viviani wrote: On 12/ago/2009, at 21.30, David Duncan wrote: From my experience on Windows, DPIHeight and DPIWidth are properties of the display device the image is drawn on, and not properties of the image itself. They are properties of both

Re: Bulletproof way to create a new CGBitmapContext from an existing image?

2009-11-03 Thread David Duncan
specific reasons for going beyond that. -- 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: Code Sign verification on Leopard

2009-10-15 Thread David Duncan
'true'. When you aren't certain if the code your running is yours, you can't trust anything that it does, including telling you it is valid. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: How to switch the default printer?

2009-10-15 Thread David Duncan
to. Then you can just run the print job as usual and it will save the PDF to file. -- 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/iPod Device Detection Necessary for App Approval?

2009-10-14 Thread David Duncan
. For example, if you want to check for a camera, UIImagePickerController has methods that allow you to determine if one exists and what types of media it can handle. If you could explain what you are trying to detect, I'm sure folks could point you where you need to look. -- David Duncan Apple DTS

Re: iPhone/iPod Device Detection Necessary for App Approval?

2009-10-14 Thread David Duncan
, rather than artificially only running on devices that you think have the features you need. -- 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: Screensaver won't run on 10.6 even after porting to 64-bit

2009-10-13 Thread David Duncan
actually add anything to the language but a bit of syntactic sugar. It isn't always appropriate to use, but there is no reason not to use it when it is. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: NSString Class Instance Variables

2009-10-13 Thread David Duncan
for many other Foundation classes. -- 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: Returning to app after phone call

2009-10-13 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

Re: Are these Apple or 3rd party classes?

2009-10-09 Thread David Duncan
path to all libraries loaded, you can use that to determine where a particular library is. It would probably also be useful to know what version of Mac OS X this is occurring on. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev

Re: EXC_BAD_ACCESS when -fobjc-gc is on (Was: Memory corruption ...)

2009-10-07 Thread David Duncan
) in a GC environment. -- 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: Screen saver for Snow Leopard and previous OS (Was: ScreenSaverView gets instantiated several times)

2009-10-05 Thread David Duncan
GCC_ENABLE_OBJC_GC[sdk=macosx10.6][arch=x86_64] = supported -- 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: View shifted up on iPhone simulator

2009-10-02 Thread David Duncan
... what are you really trying to detect by looking at the device type? -- 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: CAKeyframeAnimation for 'position' not working

2009-10-01 Thread David Duncan
must be 1.0. Values are interpolated between the specified keytimes. So your values are ascending, but they are not normalized to 0-1, and for linear the first value is not 0.0. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing

Re: CAKeyframeAnimation for 'position' not working

2009-10-01 Thread David Duncan
... The only thing I can really recommend then is to simplify this down. I have a working test case where I just coded a bunch of locations and it works, so I can only think it is an issue with the data you've supplied. -- David Duncan Apple DTS Animation and Printing

Re: Looking for Sample code: WWDC2007 - Session 201 - Building Animated Cocoa User Interfaces

2009-09-28 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: Animating contents property of CALayer via the delegate

2009-09-28 Thread David Duncan
with another set of frames, but you may notice skips in the animation at the points where your delegate is called for you to add the next keyframe animation. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev

Re: Can I recompose the Carbon-based app to a Cocoa-based app?

2009-09-24 Thread David Duncan
by the UI agnostic DCAudioFileRecorder class. You could just take that class with some small modifications and use it directly in your Cocoa app... -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: drawing/masking one image with the alpha value from another

2009-09-23 Thread David Duncan
always be 100% black... care to share some code? If you think I've missed something vital here about masks please point it out. When using a plain image as a mask, the alpha value is the only thing that should matter. -- David Duncan Apple DTS Animation and Printing

Re: System preferences plugin in Snow Leopard

2009-09-23 Thread David Duncan
On Sep 23, 2009, at 6:37 AM, Jakub Bednar wrote: Does please anybody know, what am I missing? Maybe some explicit specification that my plugin is 64-bit capable? Did your build your plugin as GC-supported? 64-bit System Preferences plugins need to be Garbage Collected. -- David Duncan

Re: drawing/masking one image with the alpha value from another

2009-09-22 Thread David Duncan
for the drawing you do which should do exactly what you want. -- 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: OR compositing operation?

2009-09-22 Thread David Duncan
. This is the Lighten blend mode (kCGBlendModeLighten). There doesn't appear to be a corresponding NS composting mode, and I'm not sure why, but you can easily get a CGContext from an NSGraphicsContext by asking it for its graphicsPort, so this shouldn't be hard to integrate. -- David Duncan Apple DTS

Re: Printing to NSData

2009-09-21 Thread David Duncan
would test this to see how bad it actually is however. -- 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: settings to build for 10.5 on 10.6?

2009-09-17 Thread David Duncan
. More than likely you are seeing a behavioral difference between 10.6 and 10.5 and we would need to see the code that leads up to this crash to have a chance of understanding what is going wrong. -- David Duncan Apple DTS Animation and Printing

Re: settings to build for 10.5 on 10.6?

2009-09-17 Thread David Duncan
the tangy Xcode 3.2 goodness...). m. You don't need to develop on 10.5, but you do need to test there to ensure compatibility. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: settings to build for 10.5 on 10.6?

2009-09-17 Thread David Duncan
SDK you should appear as if you don't know about 10.6 and should get 10.5 behaviors where necessary. -- 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: CALayer z-ordering

2009-09-16 Thread David Duncan
- layer-backed hierarchy, then regardless of the actual ordering of the views, the layer-backed hierarchy will draw over the non-layer-backed hierarchy. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev

Re: CALayer renderInContext not rendering all sublayers

2009-09-14 Thread David Duncan
will have better results with the CARenderer and OpenGL readback techniques, although this method is rather more complex. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: CGWindowListCreateImage fails on Snow Leopard with kCGNullWindowID

2009-09-10 Thread David Duncan
you can't create an image that large, the creation code fails and you get back a NULL CGImageRef instead. The current best work around is to determine a proper bounding box for the desktop and pass it for the given rect. -- David Duncan Apple DTS Animation and Printing

Re: UIImagePickerController problem

2009-09-10 Thread David Duncan
) toInterfaceOrientation when the orientation is landscape the imagePicker is displayed in portrait. I have attempted to maunally rotate the view but I get unpredictable image selection results. This is my rotation code: -- David Duncan Apple DTS Animation and Printing

Re: How to set the media box for a CGPDFPageRef?

2009-09-09 Thread David Duncan
that PDFKit hides from you, so I would likely try to solve your issues with PDFKit rather than rewriting your code to use CG directly. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: iPhone-detecting call event...

2009-09-03 Thread David Duncan
On Sep 2, 2009, at 10:20 AM, Farooq zaman wrote: Is it possible to detect phone-call event on iPhone? If yes, what are the available APIs? No, it is not. The only interaction possible with the Phone is to request it to dial a number via a URL. -- David Duncan Apple DTS Animation

Re: NSDictionary, allKeys and the NSAutoreleasePool

2009-09-03 Thread David Duncan
something along the lines of: - (void) release { if( retainCount == 1 ) [self dealloc]; else --retainCount; } -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Getting a StringPtr from Gestalt on 64-bit

2009-09-03 Thread David Duncan
is via sysctlbyname using hw.model. -- 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: Getting a StringPtr from Gestalt on 64-bit

2009-09-03 Thread David Duncan
will determine what build is launched, and older projects will often have i386 as default (a newly created project shows that x86_64 is shown by default on my machine). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev

Re: Finding information about deprecated methods / what replaces them?

2009-08-31 Thread David Duncan
. In this case the replacement appears to be CGDisplayCopyDisplayMode. -- 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: Implementing delegates with formal protocols

2009-08-28 Thread David Duncan
is not found in protocol(s). Your protocol probably doesn't conform to NSObject, ala @protocol MyProtocolNSObject -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: CALayer drawing delay

2009-08-27 Thread David Duncan
just drawing an image, you could instead just set the contents directly to the image (same issue applies). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: CALayer drawing delay

2009-08-27 Thread David Duncan
On Aug 27, 2009, at 3:58 PM, David Duncan wrote: By default when the contents of an animation change contents of a layer change, sorry for any confusion... -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev

Re: [IPhone 3.0] How do I make a UITextField the first responder?

2009-08-25 Thread David Duncan
not mean that it is in a view hierarchy yet. -viewDidAppear: or -viewWillAppear: make more sense here. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: I am not sure which message I have to trust?

2009-08-24 Thread David Duncan
was able to find the source. Trust what you see on the device. It is what your users will experience. But you haven't provided enough information for anyone to really assist you at this time... -- David Duncan Apple DTS Animation and Printing

Re: leak in a sound function

2009-08-24 Thread David Duncan
from the sample code because there were a number of design flaws that lead to many issues, such as the leak you are seeing here. Use the AVAudioPlayer class or OpenAL directly instead. -- David Duncan Apple DTS Animation and Printing ___ Cocoa

Re: Where to get Frameworks for AVFoundation.framework?

2009-08-24 Thread David Duncan
for the framework. Open up your Targets, Get Info, select the General Tab and in the list at the bottom of the window press the + button. You should be able to find the AVFoundation.framework easily in the list. -- David Duncan Apple DTS Animation and Printing

Re: When do I need to override hash?

2009-08-20 Thread David Duncan
amount of experimentation required. -- 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: When do I need to override hash?

2009-08-20 Thread David Duncan
than just returning 0, usually by just extracting some bits from 'self', ala -(NSUInteger)hash { uintptr_t hash = (uintptr_t)self; return (hash 4); } -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa

Re: Coding with VM limitation on the iPhone?

2009-08-19 Thread David Duncan
data is written (and writing to flash can be fairly costly). -- 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: Displaying an animated graph (= nodes and edges)

2009-08-17 Thread David Duncan
If you can require iPhone OS 3.0 then you can experiment with the CAShapeLayer which will automatically rerender when zoomed. -- David Duncan @ My iPhone On Aug 17, 2009, at 4:18 PM, Kaspar Fischer kaspar.fisc...@dreizak.com wrote: Any ideas? Kaspar On 16.08.2009, at 12:43, Kaspar

Re: iPhone: detect if docked?

2009-08-16 Thread David Duncan
this situation. Caveat implementor. On Aug 15, 2009, at 2:19 PM, Jack Carbaugh wrote: ah but wouldn't this be a FAIL if say, the user was using a battery extender for a quick recharge ? On Aug 15, 2009, at 3:40 AM, David Duncan wrote: On Aug 14, 2009, at 4:29 AM, Sean Kline wrote: Is another

Re: [iPhone 3.0] -- UIImage imageFromContentsOfFile and animations

2009-08-13 Thread David Duncan
memory glitches, it sounds like your images are awfully large... -- 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: Trouble with NSColor

2009-08-13 Thread David Duncan
On Aug 13, 2009, at 9:24 AM, Daniel Furrer wrote: I'm trying to get the RGB components of a system color. Which system color? Many system colors are patterns and thus do not have real RGB values. -- David Duncan Apple DTS Animation and Printing

Re: iPhone: detect if docked?

2009-08-13 Thread David Duncan
On Aug 13, 2009, at 2:12 PM, Eric E. Dolecki wrote: Is there a way to tell if the device is currently docked? Probably the closest thing would be to use the Battery API to determine if the battery is being charged. See UIDevice for details. -- David Duncan Apple DTS Animation and Printing

Re: [iPhone] CAKeyframeAnimation

2009-08-12 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

Re: CGImageRef printing issue

2009-08-12 Thread David Duncan
that alternative 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 to the list. Contact the moderators at cocoa-dev-admins

Re: [iphone] split an image

2009-08-04 Thread David Duncan
you elaborate? -- 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: [iphone] split an image

2009-08-04 Thread David Duncan
into its coordinate system. -- 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: Cahnging bgColor of a UIView not working.

2009-07-29 Thread David Duncan
on the head here too): Always ensure your using floating point division if your going to do this. That means always dividing by 255.0. I've seen too many people asking why do I always get black and pointed out because you forgot the . 0 :). -- David Duncan Apple DTS Animation and Printing

Re: Rotating image

2009-07-26 Thread David Duncan
? CGContextRotateCTM(UIGraphicsGetCurrentContext(), M_PI / 2.0); [img drawAtPoint...]; -- 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: Core Animation rendering problem

2009-07-23 Thread David Duncan
at least). By default a view (or layer) is not redraw when it is resized, but the content is scaled. You want to change the contentMode on the UIView if you want it to redraw (and understand that there is a performance penalty for doing this). -- David Duncan Apple DTS Animation and Printing

Re: The iPhone SDK OpenGL ES Application template

2009-07-21 Thread David Duncan
or not. About the only thing to keep in mind is that if you do use a view controller, don't use the orientation change support. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: SecRandom.h on iPhone OS 2.2.1?

2009-07-21 Thread David Duncan
framework, but it is possible – there are a lot of things that only work on the device. -- 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: The iPhone SDK OpenGL ES Application template

2009-07-21 Thread David Duncan
path on some devices. - how you do it in OpenGL You need to register for UIDevice orientation notifications and use those notifications to rotate your modelview matrix. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list

Re: [iPhone] UITableView cell display bugs ?

2009-07-20 Thread David Duncan
override should call [super layoutSubviews] first. -- 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: Getting a CoreAnimation layer frame, accounting for zPosition?

2009-07-20 Thread David Duncan
to implement? -- 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: Windowed Video

2009-07-16 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: Under OS 3.0 CoreGraphics.framework is not available

2009-07-15 Thread David Duncan
: -[FlipsideView drawRect:] in FlipsideView.o _CGContextSaveGState, referenced from: -[FlipsideView drawRect:] in FlipsideView.o _CGContextRestoreGState, referenced from: -[FlipsideView drawRect:] in FlipsideView.o _CGContextSetFillColor, referenced from: -- David Duncan Apple DTS Animation

Re: CAKeyframeAnimation problem

2009-07-13 Thread David Duncan
. Please file a bug report on this issue. One work around is to animate the contentsRect property instead of contents and use the contentsRect to select a portion of a single image that is assigned to the contents property of the layer. -- David Duncan Apple DTS Animation and Printing

Re: CAKeyframeAnimation problem

2009-07-13 Thread David Duncan
and then the underlying view is redrawn with the added image. What's the convenient way to avoid the flickering? Set the final value of the animation on the layer when you add the animation. You'll want to disable actions when you change the current value of the layer as well. -- David Duncan Apple DTS

Re: NSApplication and UIApplication

2009-07-06 Thread David Duncan
sent to instance 0x530f10' Are you building with the 2.2.1 SDK and running on the iPhone OS 3 simulator? Perhaps the other way around? Either way, it is not a supported configuration (the simulator OS must always match the SDK used). -- David Duncan Apple DTS Animation and Printing

Re: warning:assignment from distinct Objective-C type

2009-07-01 Thread David Duncan
at http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt.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

Re: Basic, but still confuses me (initWithFrame and drawRect)

2009-06-19 Thread David Duncan
of -drawRect: and it should all be 100% related to drawing the content of your view. You may read from various properties, but you almost never set them. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev

Re: Basic, but still confuses me (initWithFrame and drawRect)

2009-06-19 Thread David Duncan
insertSubview:strokeViewClass atIndex:1]; totally doesn't work. Where did you create the view? If you didn't create a view (either by alloc/initWithFrame: or by adding it in a NIB and setting up an outlet) then strokeViewClass is likely nil. -- David Duncan Apple DTS Animation and Printing

Re: Group CGAffineTransform Animations?

2009-06-18 Thread David Duncan
side of the position. -- 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: Group CGAffineTransform Animations?

2009-06-18 Thread David Duncan
= view.center; Then you will find that c == c2, c != visualCenter, and c2 != visualCenter. This is why using translations for transforms is very confusing. You expect the center of the view to change, but it does not. This is by design. -- David Duncan Apple DTS Animation and Printing

Re: Strange problem with CFHash and CFEqual

2009-06-18 Thread David Duncan
(if somewhat useless). It just puts them all in the same bucket. If you want a better hash code, then you would have to implement that yourself (I would probably do something with the width, height, rowbytes and maybe some other parameters of the image. -- David Duncan Apple DTS Animation

Re: Group CGAffineTransform Animations?

2009-06-17 Thread David Duncan
(for example) then setting the view's center to the center of the screen is a saner approach than using the transform matrix to do it. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Group CGAffineTransform Animations?

2009-06-17 Thread David Duncan
of a view within the same animation block and both animations will occur concurrently. -- 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: Group CGAffineTransform Animations?

2009-06-17 Thread David Duncan
is applied to that final rectangle to determine the actual position on screen. The frame rectangle is then extracted from that in a process that while meaningful tends to be useless to developers. -- David Duncan Apple DTS Animation and Printing

Re: is setFrame as optimal as setNeedsDisplayInRect?

2009-06-14 Thread David Duncan
The Core Animation instrument (and a few others) require you to target the device rather than the simulator. On Jun 13, 2009, at 2:46 PM, Chunk 1978 wrote: how can i add core animation to the performance tools list? it, and several others, are deactivated. -- David Duncan Apple DTS

Re: Cocoa equivalent to Quartz's CGImageCreateWithImageInRect(image, imageRect);

2009-06-14 Thread David Duncan
. If the image is fairly large, then you may want to use a CATiledLayer (but you will have to draw it via Quartz instead of via UIImage's draw methods). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev

Re: Flipped Coordinates

2009-06-08 Thread David Duncan
is upside down? -- 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: Flipped Coordinates

2009-06-08 Thread David Duncan
however, then it is possible your text is going to be upside down. The usual case of this is altering the text matrix, via CGContextSetTextMatrix, as it is not saved when you save the drawing state. -- David Duncan Apple DTS Animation and Printing

Re: How to lock an object?

2009-06-04 Thread David Duncan
something better that you can do here... -- 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: NSNull and distinct objective-C type

2009-06-04 Thread David Duncan
not - read the man page x-man-page://3/sleep for details. If you want something closer to a drift free timer, then you need to determine when you want to wake up and use mach_wait_until() or a higher level API to wait until that time. -- David Duncan Apple DTS Animation and Printing

Re: Keeping track of CGAffineTransform's action

2009-06-02 Thread David Duncan
not just change the view's center property? -- 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: Keeping track of CGAffineTransform's action

2009-06-02 Thread David Duncan
values in your transform matrix. If you move the view's center, then you are updating the view's center property. Either way its the same amount of work on yoru part. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa

<    3   4   5   6   7   8   9   10   >