Re: Layer hosting views, geometryFlipped, and subviews

2010-12-16 Thread David Duncan
ke this: Layer-backed view Layer-hosted view Layer-backed 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

Re: Improving drawing of UIView with many many Subviews

2010-12-21 Thread David Duncan
CGContextSaveGState(context); > CGContextTranslateCTM(context, 0, CGImageGetHeight(bc_itemImage)); > CGContextScaleCTM(context, 1.0, -1.0); > CGContextDrawImage(context, self.bounds, bc_itemImage); > CGContextRestoreGState(context); > > } -- David Duncan _

Re: Waiting for UIWebView with Dispatch Semaphores

2010-12-21 Thread David Duncan
e of time, 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

Re: Colored Pattern example problems

2010-12-23 Thread David Duncan
he drawing functions, as patterns are relatively advanced 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 modera

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 &

Re: dylib question

2011-01-05 Thread David Duncan
ically, 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.a

Re: How to get "colored" font smoothing in a CALayer

2011-01-06 Thread David Duncan
create your own bitmap context, call -drawInContext: 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

Re: NSDictionary key types

2011-01-06 Thread David Duncan
s using -isEqual: for this comparison. So knowing that, as long as [obj1 isEqual:obj2] returns true, then it must follow that [dict valueForKey:obj1] == [dict valueForKey:obj2] is also true. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-de

Re: NSDictionary key types

2011-01-06 Thread David Duncan
gt; if (myObj = [myDict objectForKey:myKey]) { >. . . do 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)

Re: NSDictionary key types

2011-01-06 Thread David Duncan
ying "this object is short, this object 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 comme

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 smo

Re: Custom path animation for CAShapeLayer

2011-01-10 Thread David Duncan
d do here is use a Keyframe animation, but I'm 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.

Re: NSString localizedStringWithFormat: and thousand separators

2011-01-21 Thread David Duncan
; NSFormatter? How does your test prove or disprove the functionality you are trying 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 ___

Re: MemoryWarning and loadView

2011-01-24 Thread David Duncan
the view controller is included in the same nib as its 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. Co

Re: Why so many public properties all up in my grizzle?

2012-03-16 Thread David Duncan
ose to the outside world entirely. -- 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 Hel

Re: How is this an "incorrect decrement of a reference count"?

2012-03-19 Thread David Duncan
n to reference an invalid object. Basically your safe options are to either: 1) Use a temporary that you release: id foo = [[NSFoo alloc] init]; self.foo = foo; [foo release]; 2) Use -autorelease: self.foo = [[[NSFoo alloc] init] autorelease]; 3) Use ARC which wil

Re: How is this an "incorrect decrement of a reference count"?

2012-03-20 Thread David Duncan
llocated. I would look into using Heap Shots to see what you are losing by not releasing your outlets in -dealloc. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: further confusion regarding the release of controls loaded from a nib

2012-03-20 Thread David Duncan
g ARC, then you couldn't have declared them weak, and most likely declared them as retain. As such you are responsible for releasing them. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or m

Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions

2012-03-27 Thread David Duncan
IImage with the screen scale via +imageWIthCGImage:scale:orientation: (assuming it cannot) after you load it with +imageWithData:. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions

2012-03-27 Thread David Duncan
remain compatible with the 3.2 or earlier SDK. It has served its purpose and can be retired :). If you no longer support iOS 3.x you can even remove the existence check for UIGraphicsBeginImageContextWithOptions. -- David Duncan ___ Cocoa-dev mailing list

Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions

2012-03-27 Thread David Duncan
On Mar 27, 2012, at 10:59 AM, Andreas Mayer wrote: > > Am 27.03.2012 um 19:29 schrieb David Duncan: > >> Simplest solution is to save the scale along side the image itself > > That's what I just implemented. But I still think PNG images should retain > the

Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions

2012-03-27 Thread David Duncan
On Mar 27, 2012, at 1:04 PM, Andreas Mayer wrote: > > Am 27.03.2012 um 20:13 schrieb David Duncan: > >> Primarily because people abuse the resolution field, and as such it cannot >> be trusted for this particular function. In a perfect world, we would only >> ever

Re: Can't delete file on device

2012-03-27 Thread David Duncan
On Mar 27, 2012, at 1:50 PM, Rick Mann wrote: >NSURL* url = [NSURL URLWithString: ci.diskURI]; Does ci.diskURI include the "file://" prefix or is it just a path? If the latter, then you should be using +fileURLWithString:. --

Re: Adding a background image to the GLPaint sample

2012-03-28 Thread David Duncan
er. The CAEAGLLayer however doesn't draw via its -display method, and just logs the message above. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Co

Re: Adding a background image to the GLPaint sample

2012-03-28 Thread David Duncan
gate, and another warning "Application > windows are expected to have a root view controller at the end of application > launch". > > When you can, would you mind explaining both of these. > > I'm much obliged, a

Re: Question about UIImage, scaling, and UIGraphicsBeginImageContextWithOptions

2012-03-29 Thread David Duncan
ing for 0 yourself before passing it to this method. -- 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.

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread David Duncan
there > a generic all inclusive unicode font? What is the right approach to this > issue? Suggestions are appreciated. Why not just use the string drawing methods that are added to NSString by AppKit or UIKit (based on which your using)? -- David Duncan

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread David Duncan
Lookup the NSGraphicsContext class (AppKit) or the UIGraphics functions (UIKit) for this information. -- 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 a

Re: Displaying an arbitrary unicode character using CGContextShowTextAtPoint or CGContextShowGlyphsAtPoint

2012-03-30 Thread David Duncan
this for OS X 10.7 which is all I need to support. So have you tried the previously mentioned NSString methods? Did you encounter an issue? -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: drawRect using a Category

2012-03-31 Thread David Duncan
ady been noted , this means every NSMatrix instance in your app now uses your drawRect:. But it also means you can't have two instances of NSMatrix that had different drawing and you can no longer access the original implementation. -- David Duncan ___

Re: CALayer compositingFilter trouble

2012-04-26 Thread David Duncan
dramatically. Maybe > this is to be expected? Why? Can I avoid that? How? My best guess would be you are underflowing. 1/255 = ~0.0039. 0.004 * 255 = 1, 0.003 * 255 = 0. Since the saturation determines how much of the hue contributes to the final c

Re: Declaring Variables - Setting to nil VS Not Setting?

2012-04-26 Thread David Duncan
ctive-C inherits this behavior. I believe however that under ARC these lines are equivalent (at least thats my reading of section 4.2 on initialization at <http://clang.llvm.org/docs/AutomaticReferenceCounting.html>) but given your comments I suspec

Re: My app thinks it is a phone. Why?

2012-05-07 Thread David Duncan
thing delude itself being a phone? > > (This was an iPhone project, which I am now trying to make universal). Are you sure you've configured your application to target both iPhone and iPad? Check that the Project and Target levels match and say the same thing. -- David Duncan ___

Re: My app thinks it is a phone. Why?

2012-05-08 Thread David Duncan
On May 7, 2012, at 7:14 PM, Gerriet M. Denkmann wrote: > On 8 May 2012, at 01:08, David Duncan wrote: > >> On May 5, 2012, at 10:15 PM, Gerriet M. Denkmann wrote: >> >>> My app (iOS 5.1) has a xib called MainWindow.xib which does NOT contain a >>> window,

Re: iOS launch Music app?

2012-05-09 Thread David Duncan
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: Basic Question

2012-05-09 Thread David Duncan
ilman/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 the mode

Re: Array annotation strangeness

2012-05-09 Thread David Duncan
you that an NSDictionary (which is the type you've assured it 'myAnnotation' is) does not implement the method you are trying to call on it. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Re: CurrentAddress on iPad

2012-05-16 Thread David Duncan
here should be a check box in the inspector to have the window be resized when unarchived. -- 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

Re: ARC apps - loading non-ARC bundles

2012-05-18 Thread David Duncan
therwise you can get over-retain and over-release bugs at the boundaries. -- 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

Re: Transforming UIImage (rotate, translate, scale) and then crop to constant size

2012-05-24 Thread David Duncan
ed to use a placeholder image in your UI - you would need to somehow communicate the real image to this code via a UIImageView. Instead from an architecture POV you should should model this as an image and a transform, and the UIImageView and this code just happen to share these two components. -- Davi

Re: Page number in UIWebView

2012-05-24 Thread David Duncan
On May 24, 2012, at 4:05 AM, Takeichi Kanzaki Cabrera wrote: > Hello everyone, I'm displaying a PDF in an UIWebView object, is there a way > to access the page number displayed when scrolling? Nope. -- David Duncan ___ Cocoa-dev mailing

Re: Arc and autorelease

2012-05-24 Thread David Duncan
keep objects out of the local autorelease pool, and can usually succeed at that even when working with code that is not itself compiled under ARC. I would use whichever method makes sense to you and only worry about high watermark issues if you dis

Re: Transforming UIImage (rotate, translate, scale) and then crop to constant size

2012-05-30 Thread David Duncan
gt;CGContextSetAllowsAntialiasing(ctx, YES); >>CGContextSetShouldAntialias(ctx, YES); >>CGContextTranslateCTM(ctx, size.width/2, size.height/2); //this >> will translate my context to the center of the context >>CGContextConcatCTM(ctx, _imageView.transform); &g

Re: CALayer contentScale initialization, where to do it?

2012-06-17 Thread David Duncan
contentsScale won't matter until you the layer into a window, so why not just assign it when you add the layer as a sublayer? -- David Duncan @ My iPhone On Jun 16, 2012, at 10:57 PM, Markus Spoettl wrote: > On 6/16/12 11:59 PM, Kyle Sluder wrote: >> That's the same docum

Re: CALayer contentScale initialization, where to do it?

2012-06-17 Thread David Duncan
Same concept applies. Set it when you assign the layer or add the view. -- David Duncan @ My iPhone On Jun 17, 2012, at 12:55 AM, Markus Spoettl wrote: > On 6/17/12 9:15 AM, David Duncan wrote: >> contentsScale won't matter until you the layer into a window, so why not >>

Re: CALayer coordinates question

2012-06-25 Thread David Duncan
drawing always appear in > the lower left corner of the parent NSView. Is that normal? No, it isn't. Can you share a brief example that triggers the issue? -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: NSInteger vs int vs int32_t

2012-07-02 Thread David Duncan
bit integers in it. Whereas Kyle is asserting that the CPU need only read 32-bits at a time (or less) from the cache for opcodes that deal with 32-bits (or less) of data at a time. Your both correct, but your looking at different parts of the same problem. -- David Duncan __

Re: "Capturing 'self' strongly in this block is likely to lead to a retain cycle"

2012-07-10 Thread David Duncan
is is not unlike how you create your own autorelease pools when creating a new NSThread. -- 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 mode

Re: +bundleForClass: category question

2012-07-15 Thread David Duncan
e the framework bundle. -- 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 yo

Re: +bundleForClass: category question

2012-07-15 Thread David Duncan
On Jul 15, 2012, at 9:07 PM, Graham Cox wrote: > > On 16/07/2012, at 1:29 PM, David Duncan wrote: > >> In this case, it means your bundle will be the framework bundle. > > Just to be clear, you mean the bundle for the *original* framework (AppKit, > say) and not my

Re: How can I convince an NSBigMutableString to become a mere NSAttributedString ?

2012-07-17 Thread David Duncan
ce. From what I can see, the delegates all declare that you are receiving an NSString, and as such you should be treating the value you get as an NSString. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post ad

Re: How can I convince an NSBigMutableString to become a mere NSAttributedString ?

2012-07-17 Thread David Duncan
nd work from there. Thats what -isKindOfClass: is for. -- 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.ap

Re: Save photo taken by UIImagePickerController

2012-07-18 Thread David Duncan
rollerOriginalImage", and if that happens to be the case here then your image will always be nil. > >UIImageWriteToSavedPhotosAlbum(image, self, > @selector(image:didFinishSavingWithError:contextInfo:), nil); > > } -- David Duncan _

Re: СoreGraphics text drawing performance

2012-07-18 Thread David Duncan
is drawn. But as was stated by Graham, you can set the text drawing mode to both fill & stroke at the same time. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Given NSString containing a letter like Ç, how do I convert that to a C?

2012-07-21 Thread David Duncan
ng, how can I get > the letter "C" when the string starts with "Ç"? You will probably want to do your comparisons based on strings that you've folded via -stringByFoldingWithOptions:locale:, and i fyou fold with diacritic insensitivity th

Re: Profound UITableView rendering-performance problem, but only at certain positions?

2012-07-24 Thread David Duncan
doing something relatively strange with -drawRect:'d drawing, but given what you've described implementing this functionality via -drawRect: would be a lot more work than is necessary. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: iOS Rendering PDFs on a Background Thread

2012-07-26 Thread David Duncan
thods can only be called on the Main Thread. Is this correct? No, these methods are fine as long as you use the context only within the same invocation (that is, don't try to share the context between threads or split the begin/end between thr

Re: iOS Rendering PDFs on a Background Thread

2012-07-26 Thread David Duncan
urrentImageContext > UIGraphicsEndImageContext > > This is all in one method that runs in one thread, are you saying this will > work ok? Should be fine. If you find an issue, please report a bug. This was a recent topic at WWDC2012 as well, see session 211 "Building Concurrent User

Re: Custom UITableView cell label with ARC and storyboards

2012-07-29 Thread David Duncan
ith this. But my question would be why are you adding new labels in cellForRowAtIndexPath when you've already created a subclass of UITableViewCell? Have your subclass create (and maintain a reference) to these labels and never recreate them again. -- David Duncan

Re: Custom UITableView cell label with ARC and storyboards

2012-07-29 Thread David Duncan
On Jul 29, 2012, at 7:38 PM, Alex Zavatone wrote: > > On Jul 29, 2012, at 10:30 PM, David Duncan wrote: > >> On Jul 29, 2012, at 7:02 PM, Alex Zavatone wrote: >> >>> I've put together a TVC with a custom TVC cell class consisting mainly of >>> UIL

Re: Custom UITableView cell label with ARC and storyboards

2012-07-29 Thread David Duncan
On Jul 29, 2012, at 7:55 PM, Alex Zavatone wrote: > > On Jul 29, 2012, at 10:48 PM, David Duncan wrote: > >> On Jul 29, 2012, at 7:38 PM, Alex Zavatone wrote: >> >>> >>> On Jul 29, 2012, at 10:30 PM, David Duncan wrote: >>> >&g

Re: UIScrollView insertSubview:atIndex: problem

2012-07-30 Thread David Duncan
what you want, but given that a scroll view has other implicit subviews you would need to be more careful if you need an exact location. It may make more sense to use an intermediate subview that you place content into and which is a child o

Re: UIScrollView insertSubview:atIndex: problem

2012-07-31 Thread David Duncan
like you want the views to be visually in a particular position, and you should thus ensure that each view has the correct frame.origin or center to place them that way. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: rotating UIView without changing size

2012-08-03 Thread David Duncan
ctly, then that view won't be resized at all, and should maintain its position in its superview (if nothing else ensuring the subview remains at the correct size and position should be much easier than what it seems you are trying to do above). -- David Duncan __

Re: rotating UIView without changing size

2012-08-03 Thread David Duncan
iew (which needs to be a subclass to do this properly) of 2) make SliderViewController not a subclass of UIViewController. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: loading UIView in correct orientation

2012-08-03 Thread David Duncan
y to force the ViewController to apply the proper rotation when > it is initially loaded? This is basically the same problem as your other question – your not using view controller containment, so the behavior is very different. -- David Duncan _

Re: rotating UIView without changing size

2012-08-03 Thread David Duncan
terested observers) Don't try to get away with not having a view controller (that is explicitly set as the window's rootViewController). Its simply not worth it. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: How do I get memory usage numbers?

2012-08-13 Thread David Duncan
this than never mind but with > all of the programs out there that include these numbers there must be a > better way to find out how it's done. What are you trying to debug? -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: #warning 64BIT: Inspect use of sizeof

2012-08-15 Thread David Duncan
ide", sizeof() is only > mentioned as being a great thing which should be used liberally. And that > makes sense to me. > > What am I supposed to "inspect" for? The only thing I can imagine is if you have code that expects sizeof(int) == sizeof(long)

Re: Finder Info

2012-08-27 Thread David Duncan
n invalid file name). Note: this is primarily from memory so this exact example may or may not fail, but should give you a framework for finding ones that do. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Local Properties

2012-09-03 Thread David Duncan
this is not really nice. There sure must be a better way. There isn't. You get the message you get because "self.myStruct.something = 7" gets broken down to "[self myStruct].something = 7", but the LHS of that is not assignable (its an R-value, not an L-value, and only L-values are assignable)

Re: iPad drawing and screen rotation

2012-09-22 Thread David Duncan
tentMode of your view? The default is (if I recall correctly) UIViewContentModeResize, which will not redraw when the view's bounds changes, but rather stretch the contents to match. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: app developed for iPhone is compatible with iPad

2012-09-26 Thread David Duncan
option for double sizing). If you create a Universal application, then you can provide a native UI for both device idioms. You will need to take some care there, but the templates should manage the very basic bits for you (i.e. the aforementioned window resizing). -- David

Re: iOS 6 changes in CATextLayer text drawing

2012-10-11 Thread David Duncan
out an opaque background. m. Did you set the contentsScale on your CATextLayer (or wrap it in a UIView)? By default CALayers never change their contentsScale, so if you are just using a plain CATextLayer without anything else to manage it, the contentsScale will be 1 regardless of the screen'

Re: iOS 6 changes in CATextLayer text drawing

2012-10-11 Thread David Duncan
On Oct 11, 2012, at 1:25 PM, Matt Neuburg wrote: > > On Oct 11, 2012, at 10:54 AM, David Duncan wrote: > >> On Oct 11, 2012, at 10:27 AM, Matt Neuburg wrote: >> >>>> (1) CATextLayer in iOS 6 requires an opaque background in order to >>>> anti

Re: iOS; how to "connect" to 3G

2012-10-18 Thread David Duncan
and to fail completely. Basically when using Reachability, you should always use the callback to know when to retry any previously failed connections, and once you get a callback that says that connection is possible, then you should try to

Re: sync drawing an ever-increasing path

2012-10-23 Thread David Duncan
very complex it may make more sense to break it into pieces and use multiple shape layers animated sequentially. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: sync drawing an ever-increasing path

2012-10-23 Thread David Duncan
o do this implicitly once the layer is in a layer tree by setting the animation duration on the current CATransaction and setting the strokeEnd directly. > > > > That seems to be all that is needed. > > David > > > > > On Oct 23, 2012, at 11:37 AM, Dav

Re: sync drawing an ever-increasing path

2012-10-23 Thread David Duncan
hod that you call instead of -setNeedsDisplay without the overhead. > > thanks for pointing to didMoveToWindow. > > David > > > > On Oct 23, 2012, at 1:25 PM, David Duncan wrote: > >> >> On Oct 23, 2012, at 12:34 PM, David Rowland wrote: >> >

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread David Duncan
ences are inside the application, but rather inside the application's sandbox. The distinction is huge (if only because if it was inside the application your application's signature would break and would no longer launch). Nothing except deleting the application (nee its sandbox) shou

Re: Plan for persisting preferences on iOS applications

2012-10-24 Thread David Duncan
On Oct 24, 2012, at 10:25 AM, Alex Zavatone wrote: > > On Oct 24, 2012, at 1:13 PM, David Duncan wrote: > >> On Oct 24, 2012, at 10:03 AM, Alex Zavatone wrote: >> >>> >>> On Oct 24, 2012, at 12:40 PM, Mike Abdullah wrote: >>> >>

Re: iOS 6 built-in view controller save-and-restore disappointing

2012-11-09 Thread David Duncan
On Nov 9, 2012, at 11:30 AM, Matt Neuburg wrote: > It turns out that the new iOS 6 UIViewController/UIView state restoration > does not work through a restart of the device! How was the device restarted? -- David Duncan ___ Cocoa-dev mailin

Re: Looping CAKeyframeAnimation stop in place?

2012-11-09 Thread David Duncan
he list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com -- David Duncan __

Re: iOS 6 built-in view controller save-and-restore disappointing

2012-11-09 Thread David Duncan
On Nov 9, 2012, at 1:45 PM, Matt Neuburg wrote: > > On Nov 9, 2012, at 1:29 PM, David Duncan wrote: > >> On Nov 9, 2012, at 11:30 AM, Matt Neuburg wrote: >> >>> It turns out that the new iOS 6 UIViewController/UIView state restoration >>> does n

Re: iOS 6 built-in view controller save-and-restore disappointing

2012-11-09 Thread David Duncan
the auto-save state to be deleted in the reboot case (its being saved, but deleted afterwards by the reboot process). -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the l

Re: iOS 6 built-in view controller save-and-restore disappointing

2012-11-09 Thread David Duncan
On Nov 9, 2012, at 5:04 PM, Matt Neuburg wrote: > > On Nov 9, 2012, at 4:21 PM, David Duncan wrote: > >> On Nov 9, 2012, at 3:48 PM, Matt Neuburg wrote: >> >>>>> Why - are you suggesting it *is* supposed to work through a restart??? m. >>>> &g

Re: leak in AVAudioPlayer ?

2012-12-07 Thread David Duncan
On Dec 7, 2012, at 6:23 AM, Ariel Feinerman wrote: > I have seen in leaks profiler the AVAudioPlayer make three retain and only > two release of NSURL Could you share a minimal amount of code that reproduces this leak? -- David Duncan ___ Coc

Re: CALayer UIImage rendered on top of content instead of below

2012-12-14 Thread David Duncan
legate, and what the complete -drawLayer:inContext: method looks like (primarily because you are using the UIKit methods that expect an implicit context). -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: touch position for UITableView

2012-12-20 Thread David Duncan
On Dec 20, 2012, at 11:28 AM, "Eric E. Dolecki" wrote: > over time though or only when it's triggered? Depends on which gesture recognizer you use. You probably want a pan recognizer for this. -- David Duncan ___ Cocoa-dev maili

Re: touch position for UITableView

2012-12-20 Thread David Duncan
fire. > > > > Google Voice: (508) 656-0622 > Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki > Imagineric > > > On Thu, Dec 20, 2012 at 2:40 PM, David Duncan wrote: > On Dec 20, 2012, at 11:28 AM, "Eric E. Dolecki" wrote

Re: Guidance on CATiledLayer

2012-12-31 Thread David Duncan
ngle child, the Shape Layer (all layers added to a replicator are replicated). That should give you your grid background. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: Duplicating display UITable scrolling, etc. in two apps

2013-01-05 Thread David Duncan
that UITableViewDelegate adopts the UIScrollViewDelegate protocol. -- 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.app

Re: CALayer renderInContext changes zPosition of some child layers

2013-01-05 Thread David Duncan
d would be to sort the sublayers array yourself rather than relying upon zPosition to do so. -- 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 modera

Re: Printing layer-based view

2013-01-08 Thread David Duncan
an be fairly complex to get right. Also you'll have to implement tiling yourself and your basically doing raster rendering (since its via OpenGL). Overall not the greatest experience. As Kyle mentioned, doing this yourself, rather than relying upon CA, is probably for the best at this time. --

Re: Could somebody please fix NSTimer?

2013-01-14 Thread David Duncan
t" is subtly different for each environment) as well as support existing applications of each of these flavors that wouldn't know about this new behavior. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: How to avoid warning?

2013-01-21 Thread David Duncan
> > I get a warning on the initWithManager: statement (Obviously), how to avoid > the warning or otherwise fix it? What warning do you get? (Its not obvious from context). -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Re: How can I get rid of this warning message?

2013-01-22 Thread David Duncan
; Just note that the template has a bug – if you want to delay for a fractional number of seconds, be certain to change the type of 'delayInSeconds' to a floating point type. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lists.ap

Re: Do CALayer filters apply to non-image drawing?

2013-02-05 Thread David Duncan
where they do work, the way you get content into the layer does not matter. -- 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: Breaking on nil context

2013-02-12 Thread David Duncan
r attributed string use an NSColor to specify the stroke color? -- 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-admin

Re: CALayer's backgrounds filters having effect only on immediate parent?

2013-02-20 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 Subscription: > https://lis

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