Re: original image size is not retained when it is exported as PDF using CGImageDestinationRef

2011-02-28 Thread David Duncan
ourself, where you can have control over the process. -- 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

Re: UIView animation (backgroundColor) + drawRect:

2011-03-02 Thread David Duncan
ould allow you to avoid -drawRect: entirely, which would allow you to animate the background color 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 no

Re: Memory used by a UIImage?

2011-03-07 Thread David Duncan
atching the "Dirty Size" statistic is what you are interested in 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

Re: CALayer drawing efficiency

2011-03-14 Thread David Duncan
ng it faster to draw? It sounds like 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.appl

Re: iOS 4.2 - Printing Quality

2011-03-15 Thread David Duncan
is slightly off from the DPI of the target is more 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) Ple

Re: Remove characters from string

2011-03-17 Thread David Duncan
> string? I think 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 ide

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

2011-03-18 Thread David Duncan
on with a crossfade 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-

(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 wrote: >

Re: Cocoa alternative for method aliasing?

2011-03-29 Thread David Duncan
There is a certain question 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 subcla

Re: UIView size after rotation

2011-03-30 Thread David Duncan
en. The docs describe the order 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.

Re: autorelease pool comprehension

2011-03-30 Thread David Duncan
s can be useful when you have 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

Re: constructor cannot be overloaded?

2011-03-30 Thread David Duncan
port 32-bit 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/

Re: applicationWillTerminate not received

2011-04-05 Thread David Duncan
ate > all the time. A SIGKILL 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

Re: NSString, stringByAppendingPathComponent, and Canonicalization

2011-04-05 Thread David Duncan
via some method 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 re

Re: Display a "Red frame" on the screen

2011-04-08 Thread David Duncan
some kind of API? You can use NSScreen to get a list of available screens 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 Du

Re: AVFoundation and OpenGL?

2011-04-11 Thread David Duncan
depends on what you mean 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 th

Re: Can an image be "rejected" by CALayer?

2011-04-11 Thread David Duncan
model layer still 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 moderator

Re: PDF Inverted colors

2011-04-11 Thread David Duncan
t; seem to invert. If I 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

Re: AVFoundation and OpenGL?

2011-04-11 Thread David Duncan
hink it does, but I haven't used it well enough 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 intera

Re: UIViewControllers being reloaded on didReceiveMemoryWarning... ?

2011-04-13 Thread David Duncan
y causing the view to reload, typically by referencing it via self.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-dev-ad

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

2011-04-14 Thread David Duncan
t;> }); >>> >>> return bah; >>> } Fundamentally however, this will not work. If you want to do lazy initialization of a variable with thread safety then you should use dispatch_once() to initialize the variable. This is also not somet

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

2011-04-14 Thread David Duncan
ecutes the block. 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. -- D

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

Re: Injecting text into a CALayer?

2011-04-15 Thread David Duncan
ublayer. At a higher level however, you could do the exact 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.

Re: Injecting text into a CALayer?

2011-04-15 Thread David Duncan
onscreen, so the text 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: Da

Re: CALayer: Animation using actions property

2011-04-19 Thread David Duncan
ation to the layer that auto-reverses 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 mo

Re: CALayer: Animation using actions property

2011-04-19 Thread David Duncan
n how you feel about 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

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

2011-04-19 Thread David Duncan
comments 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: CALayer: Animation using actions property

2011-04-21 Thread David Duncan
lity I can think 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 ei

Re: Properties vs Instance Variables

2011-04-27 Thread David Duncan
"self->foo" identically to _foo and self->_foo 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-admi

Re: block animation

2011-05-03 Thread David Duncan
he section on view controller containment (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

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

Re: Threading synchronization: does a primitive exists?

2011-05-06 Thread 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 Subscrip

Re: Why NSClassFromString(@"CADisplayLink")?

2011-05-10 Thread David Duncan
s typically indicate that you forgot to link a necessary framework, in this case 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 th

Re: setState has no effect on an NSButton

2011-05-10 Thread David Duncan
y cannot optimize away 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

Re: Core Animation animations stop prematurely at random

2011-05-17 Thread David Duncan
iVars for later use. 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 it to work in both situations. -- David Duncan _

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 h

Re: Why RunLoop?

2011-05-17 Thread David Duncan
ention, including things that you 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(

Re: Memory growing and growing when using UIImageView's image

2011-05-17 Thread David Duncan
until 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-adm

Re: Best way to handle iOS device rotation

2011-05-26 Thread David Duncan
Controller 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

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

2011-05-26 Thread David Duncan
27;t be necessary. A bug 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.c

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

2011-05-26 Thread David Duncan
e wonder how your view controllers are laid out. I don't suppose you added the contents that are having trouble 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 ___

Re: Seeding random() randomly

2011-05-26 Thread David Duncan
ed 2 minutes into the sequence 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

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

2011-05-28 Thread David Duncan
tual/iPhone101/Articles/00_Introduction.html> 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 moderat

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
e by then (presumably you just cancel 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

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 ow

Re: iOS: drawing the end of a CGPath differently

2011-06-03 Thread David Duncan
uch there isn't a way to do what you are trying to accomplish 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

Re: iOS: Automatically resizing subviews

2011-06-06 Thread David Duncan
t you get from setting the autoresizing 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.a

Re: How can I be so wrong about graphics?

2011-06-06 Thread David Duncan
; > >CGContextMoveToPoint(context, pointA.x,pointA.y); //start at this point > >CGContextAddLineToPoint(context,pointB.x, pointB.y); //draw to this point > >// and now draw the Path! >CGContextStrokePath(context); What is pointA & pointB? What is self.st

Re: How can I be so wrong about graphics?

2011-06-06 Thread David Duncan
al to the view > > 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

Re: iOS: antialiasing text

2011-06-09 Thread David Duncan
done on iOS. You should still get standard 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.a

Re: iOS: antialiasing text

2011-06-10 Thread David Duncan
s, but the mobile GPU doesn't do as nice a job 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 way

Re: Memory Management for an Array

2011-06-13 Thread David Duncan
aked. It is up 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 __

Re: Drawing noise in Cocoa (preferably fast)

2011-06-15 Thread David Duncan
, e.g. the CIRandomGenerator filter >> composited onto an image filled with the base color? > > 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'

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
– just also set the delegate of the web view 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

Re: CATransactions having no effect in CALayer draw delegate

2011-06-20 Thread David Duncan
e sounds of it, you also have a border and the cornerRadius set to a non-zero value. If you want to disable those animations too, you need to disable them for those associated keys too. Or you can use the CATransaction as you originally tried, but you need to do it around the values that you are

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
lled, so if you 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 __

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 wrote: > Hi. > > I have a f

Re: Problem with setNeedsLayout and layoutSubviews in UIScrollView

2011-06-27 Thread David Duncan
layout based on the size of the containing view? You can locally 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 a

Re: CIImage directly to CALayer contents?

2011-07-01 Thread David Duncan
to it, and then assign all 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 opti

Re: Add a view as observer of a subview transform

2011-07-03 Thread David Duncan
his: UIKit doesn't promise 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 d

Re: CAOpenGLLayer content size

2011-07-12 Thread David Duncan
. layer only shows 200x200 area (keep low resolution) Call -setNeedsDisplay on the layer. -- 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 c

Re: iOS: String Drawing

2011-07-12 Thread David Duncan
elp to ask to draw into a rectangle X+6 points wide – you need the label to be X+6 points wide. -- 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 moderat

Re: CAOpenGLLayer content size

2011-07-13 Thread David Duncan
no effect on the size of that content (but the content should be fitted to the layer according to its contentsGravity). > > Takashi Mochizuki > > On 2011/07/13, at 0:34, David Duncan wrote: > >> On Jul 8, 2011, at 11:33 PM, Takashi Mochizuki wrote: >> >>> De

Re: Memory management and returned values from methods...

2011-07-15 Thread David Duncan
nsure that autoreleased objects don't pile up on you. You can retain the iNeedThisString to ensure it survives the pool if necessary. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Determine architecture of a running application

2011-07-22 Thread David Duncan
this for? There is almost certainly a better solution than knowing this, especially since it is likely that you can't know this reliably. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: Does anyone else dislike Xcode 4?

2011-07-24 Thread David Duncan
in the debugger tab… > With Xcode 3, the last file I was editing was the one directly below the > debugger window… Feel free to report a bug asking for new tabs to be opened next to the current tab instead of at the end of the tab list (assuming that is what you want). -- David Duncan

Re: Does anyone else dislike Xcode 4?

2011-07-24 Thread David Duncan
On Jul 24, 2011, at 4:08 PM, Karl Goiser wrote: > Hi David, > > On 25/07/2011, at 8:44 AM, David Duncan wrote: > >> On Jul 24, 2011, at 3:34 PM, Karl Goiser wrote: >> >>> So, I tried the trick with behaviours, assigning debugging to a special >>> t

Re: Problem getting my layers to draw in the right order

2011-07-25 Thread David Duncan
seeing exactly how you are laying out your layers, my recommendation would be to add more layers :). To your root layer, add the replicator layer and the text layer, and then add the rest of your content to the replicator as you already do. By having the text layer order after the replicator laye

Re: [SOLVED] Problem getting my layers to draw in the right order

2011-07-26 Thread David Duncan
a CALayer already (zPosition should be usable as a way to order layers, but sublayer order is generally better). If you use a CATransformLayer, or a CAReplicatorLayer with preservesDepth=YES then you are effectively asking Core Animation to act more like a textured quad renderer. See the CA

Re: How can i change a app position and size?

2011-07-27 Thread David Duncan
_bounds to get > bounds of window window_number") are returned ({1920, 106, 3200, 906}). This is probably a holdover from the classic Mac OS days when rectangles were described as left/top/right/bottom. Core Graphics describes rectangles as left/top/width/height instead, which is what you a

Re: UIAlertView with UITextField

2011-07-27 Thread David Duncan
On Jul 27, 2011, at 10:02 AM, Dan Hopwood wrote: > This works really well and is exactly what I am looking for however a little > reading tells me Apple may reject submissions that use this private API. Yes, you will be rejected for using private API. -- David

Re: UIImageView Animation Question

2009-11-27 Thread David Duncan
ways be an object type, it would be at least of type id. And of course, its purpose is spelled 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

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 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 unnece

Re: Question about aliasing (analog clock hands)

2009-12-03 Thread David Duncan
anchorPoint is in a unit 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.a

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 Dun

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 maili

Re: odd problems with NSData / OpenGL

2009-12-08 Thread David Duncan
. Specifically, you probably aren't claiming ownership of the NSData object that you store in your instance variable, and thus it is being deallocated out from under you. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Co

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread David Duncan
t; why o why is it failing? My understanding is Quicklook plugins are not allowed to make network connections due to sandbox restrictions. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: NSURLConnection Problem Inside QuickLook Generator

2009-12-08 Thread David Duncan
ng depends on the state of certain > elements of the filesystem which is maintained in a separate server process. If the process is local you might try Unix domain sockets. Overall, you might have a better chance of getting help with this on Quicklook-dev, or perhaps Darwin-dev (for the sandb

Re: CAShapeLayer and touches?

2009-12-08 Thread David Duncan
pe layer's path? I'm not certain that is trivial. Does the shape layer have an associated view (i.e. did you subclass UIView to override +layerClass)? If so you could use that associated view. Otherwise you can use the layer's -hitTest: method to determine which layer was hit.

Re: CAShapeLayer and touches?

2009-12-08 Thread David Duncan
that. CAShapeLayers > have hitTests? I haven't seen code like that anywhere yet (Google). Any help > appreciated. CAShapeLayer is a subclass of CALayer, and CALayer provides -hitTest:. However, I'm fairly certain that it is based on the layer's geometry (position, bounds, tran

Re: CAShapeLayer and touches?

2009-12-08 Thread David Duncan
ot hit } -- 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/Unsub

Re: [iPhone] UINavigationController and UINavigationBar

2009-12-08 Thread David Duncan
ntroller in IB > otherwise I 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? --

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 wrote: On Dec 8, 2009, at 6:42 PM, David Duncan wrote: More t

Re: CAShapeLayer and touches?

2009-12-09 Thread David Duncan
27; was an instance of UIView. I was wrong. Thats what the error is telling you :). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Printing to a ipp printer discovered with bonjour

2009-12-11 Thread David Duncan
rinting to a cups printer from cocoa. or over bonjour? What are you trying to do? Typically issue such as browsing and adding printers is done at a much higher level by the user and applications can generally be ignorant of how this all works (or if a printer is even connected to the syste

Re: iPhone voice synthesis

2009-12-11 Thread David Duncan
ng for 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-admins(at)lists.apple.com

Re: water effect on iPhone with touch methods

2009-12-14 Thread David Duncan
.com/java/water.html > > essentially, i'd like to replicate this, or something similar, using a > UIImage and touch methods. how difficult will this be? You probably can't do this in realtime with a UIImageView on current devices (unless your image was very small). You would probably

Re: iPhone Testing Internet Connection?

2009-12-15 Thread David Duncan
e here: <http://developer.apple.com/iphone/library/samplecode/Reachability/index.html> -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: memcpy with 64 bit

2009-12-15 Thread David Duncan
replace APIs usually leads to people asking "What are you trying to do?" So... what are you trying to do? :). -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: Diacritics in Thai

2009-12-17 Thread David Duncan
t; On Dec 14, 2009, at 2:28 AM, Gerriet M. Denkmann wrote: > >> So: is this a bug (eventually to be fixed) or a feature, which all users of >> the Thai language have to find some workaround themselves? -- David Duncan Apple DTS Animation and Printing __

Re: Intercepting events and touches in UIPickerView subclasses? (or, WTF is going in the UIPickerView's responder chain?)

2009-12-18 Thread David Duncan
d possibly embellish, and you should send it on its way ([super sendEvent:]) before you do anything else. And whatever else you do, make sure your quick with it, because -sendEvent: gets called a LOT. -- David Duncan Apple DTS Animation and Printing __

Re: App works when launched from Xcode, not from Finder

2009-12-18 Thread David Duncan
h the x86_64 architecture it screwed > up the app. Xcode lets you set the architecture to execute, and projects brought forth from earlier versions/OSes typically have a 32-bit target set as the architecture to execute. New projects in Xcode 3.2/Snow Leopard should have x86_64 set as their

Re: NSAttributedString fill with gradient

2009-12-21 Thread David Duncan
treats patterns just like colors. -- 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-adm

Re: Is this possible?

2009-12-21 Thread David Duncan
ing a new image context, drawing the image with shadow, assigning that image to a UIImageView). What didn't work about that? -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: UIImage and shadows, WAS: Re: Please if some one knows

2009-12-21 Thread David Duncan
citly asking to draw outside of that original image. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at co

Re: UIImage and shadows, WAS: Re: Please if some one knows

2009-12-22 Thread David Duncan
of your hard disk or home folder (whereas on hardware you have to put it in your documents folder and then download it). Doing so would tell you if your drawing is doing what you want and help you figure out where the actual problem is. -- David Duncan Apple DTS Animation and Printing

Re: There must be a better way

2009-12-23 Thread David Duncan
ew or UIImagePickerController. -- David Duncan @ My iPhone On Dec 23, 2009, at 2:19 PM, Charlie Dickman <3tothe...@comcast.net> wrote: In an iPod Touch/iPhone app where the view is in 1 xib and it's controller is in a different one, according to the view-controller- data paradigm, is there a be

Re: n00b Q re: AppController

2009-12-24 Thread David Duncan
o implement this class to the same function, then you should probably abstract them all into a common framework that all of these plugins load instead. -- David Duncan Apple DTS Animation and Printing ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

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