Re: NSDateFormatter not working on iOS 5.

2012-03-23 Thread Heath Borders
:[NSDate date]]); [1] http://unicode.org/reports/tr35/tr35-10.html#Date_Format_Patterns -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Mon, Feb 13, 2012 at 12:09 PM, Peter Edberg pedb...@apple.com wrote: On Feb 2, 2012, at 7:56 AM, John Joyce wrote

Re: issues using encodeWithCoder: with NSAttributedString for iOS

2012-02-26 Thread Heath Borders
I don’t know of an easy workaround. Back in the day I would have suggested creating a category on CGColor that adds the required archiving methods, but doing this will get you rejected from the App Store. You may need to write a function that walks through a mutable attributed string and finds all

Stop developer tools access... and gdb-i386-apple-darwin... alerts

2012-02-03 Thread Heath Borders
://i.stack.imgur.com/GeKA8.png gdb-i386-apple-darwin needs to take control of another process for debugging to continue. Type your password to allow this. http://i.stack.imgur.com/sg9rv.png My user is an admin user.  I never saw these alerts before.  How do I get them to stop? -Heath Borders

On iOS5 simulator and device, NSDateFormatter doesn't show time zone abbreviation for Asia/Kolkata for the z or zzz specifier.

2012-01-31 Thread Heath Borders
but it outputs GMT+05:30 IST Is this a bug? Am I doing something wrong?  People have mentioned that NSDateFormatter has bugs, especially when a time zone is specified in the format string.  Could this be one of those bugs?[1] [1] http://stackoverflow.com/a/838934/9636 -Heath Borders heath.bord...@gmail.com

Re: NSDateFormatter not working on iOS 5.

2012-01-31 Thread Heath Borders
: date string: GMT+05:30 time zone abbreviation: IST -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Mon, Nov 21, 2011 at 1:54 AM, Peter Edberg pedb...@apple.com wrote: On Nov 17, 2011, at 10:14 AM, Matt Neuburg wrote: On Wed, 16 Nov 2011 14:43:55

Why doesn't UIViewController retain its UISearchDisplayController

2011-10-06 Thread Heath Borders
/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instp/UIViewController/searchDisplayController [2] http://stackoverflow.com/q/2395272/9636 [3] -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com

Re: Managed Object Model versions

2011-09-30 Thread Heath Borders
You specify a URL for the persistent store when you create it. Just find the store at that URL. -Heath On Sep 30, 2011 12:33 AM, Luke Sneeringer lukesneerin...@gmail.com wrote: Hey all, I am working on writing my first Core Data application. I made an entity, did some work to test it, and then

Re: Calling -addObserver:forKeyPath:… more than once

2011-08-26 Thread Heath Borders
You must call remove as many times as you call add. Otherwise, subclasses and superclasses would interfere with each other's observations. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Fri, Aug 26, 2011 at 4:34 AM, Rick Mann rm

Re: Sharing a persistent store between iOS and Mac

2011-08-26 Thread Heath Borders
I've done something similar in two of my projects. However, I only shared the sqlite file, not the momd. I created a command-line build tool, and generated a sqlite coredata store with it. Then I copy the sqlite into my iOS project and add it to the Copy Bundle Resources phase. I do NOT copy

Re: Core Data Concurrency Issues

2011-08-04 Thread Heath Borders
A managed object context needs to be used and created from the same thread. Create and use childContext in a single dispatchAsync block. -Heath On Aug 4, 2011 5:32 PM, Jeff Kelley slauncha...@gmail.com wrote: I’m having some issues with concurrency with Core Data. I create an object that has a

Re: MPMoviePlayerController Fast forward

2011-07-29 Thread Heath Borders
You could do key-value observing on currentPlaybackRate. http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPMediaPlayback_protocol/Reference/Reference.html#//apple_ref/occ/intfp/MPMediaPlayback/currentPlaybackRate -Heath Borders heath.bord...@gmail.com Twitter

ANN: HBCollections Blocks Categories

2011-07-29 Thread Heath Borders
feedback about ways to make this more efficient or any other convenience APIs or basic functional APIs I could add. Thanks! -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com ___ Cocoa-dev mailing list (Cocoa-dev

Re: Why are these objects still faults?

2011-07-19 Thread Heath Borders
Is your topic node self-referential? Maybe CoreData doesn't prefetch circular references. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Tue, Jul 19, 2011 at 12:21 AM, Gideon King gid...@novamind.com wrote: Hi, I'm doing a fetch of some objects

Re: Core Data search optimizations

2011-07-14 Thread Heath Borders
I would use CLucene for this. It isn't as easy to use as CoreData (it is written in C++, so you'll need some Objective-C++ as a shim at a minimum), but it is powerful and VERY fast. -Heath From my iTouch4 On Jul 14, 2011, at 1:17 PM, Indragie Karunaratne cocoa...@indragie.com wrote: Hi guys,

Re: iOS: AVFoundation, AVAssetWriter and caching

2011-07-06 Thread Heath Borders
I'm pretty sure someone else on the list tried exactly that, and it didn't work. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Wed, Jul 6, 2011 at 11:40 AM, Steve Christensen puns...@mac.com wrote: With the caveat that I haven't actually tried

Re: [Q] Will the be any problem in implementing an NSArray method using fast enumeration?

2011-06-30 Thread Heath Borders
You might also try HBCollections, a series of collections categories I wrote that makes it easy to do stuff like this. https://github.com/hborders/HBCollections -Heath On Jun 30, 2011 2:10 PM, Dave DeLong davedel...@me.com wrote: ___ Cocoa-dev mailing

Re: MFMailComposeViewController: referencing attached data in HTML body

2011-06-26 Thread Heath Borders
You could base64 your image data and use a data url to refer to it within your HTML. Then, you wouldn't have to attach it. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Sun, Jun 26, 2011 at 6:14 PM, Pierre Fournier shir...@hotmail.com wrote

Re: iOS: Automatically resizing subviews

2011-06-06 Thread Heath Borders
Make sure your subviews are small enough to fit inside your view initially. I've had issues with resizing clipped subviews. -Heath On Jun 6, 2011 1:52 AM, Development developm...@fornextsoft.com wrote: I thought I understood how auto resizing worked but I don't According to the docs if I want

Re: Core Animation: performing a two-step animation

2011-06-01 Thread Heath Borders
Perform the second transform after the first animation completes in a separate animation block. You can start the second animation block from the first animation block's completion block. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Wed, Jun 1

Re: Fuzzy string matching

2011-05-31 Thread Heath Borders
CLucene might be a bit heavy, but it works great for me. -Heath From my iTouch4 On May 31, 2011, at 12:02 PM, Eric E. Dolecki edole...@gmail.com wrote: Thanks - I'm not sure that's going to be flexible enough for me or not, but I'll give it a go. Thanks again! Google Voice: (508) 656-0622

Re: Threading synchronization: does a primitive exists?

2011-05-05 Thread Heath Borders
Try NSConditionLock. Its documentation should be pretty self-explanatory. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Thu, May 5, 2011 at 8:33 AM, eveningnick eveningnick eveningn...@gmail.com wrote: Hello I have a thread A that spawns

Re: UIGestureRecognizer in superview firing

2011-05-02 Thread Heath Borders
I've seen this behavior as well, and I solved it the same way you did. I hope there is a better way. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Mon, May 2, 2011 at 3:15 AM, Roland King r...@rols.org wrote: I have a UIView subclass which has

Re: viewWillDisappear not being called

2011-04-25 Thread Heath Borders
I've seen this behavior also, specifically on iOS 3.1 while using a UIViewController inside a UINavigationController inside a UITabBarController. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Mon, Apr 25, 2011 at 9:59 PM, Jeffrey Walton noloa

Re: viewWillDisappear not being called

2011-04-25 Thread Heath Borders
It sure would have been helpful if viewWillDisappear was sent as documented. When the home button is pressed, and the home screen is presented, the view has clearly disappeared (no offense Alex). I was seeing this when switching tabs, not when the home button was pressed. -Heath Borders

Installing ipa from MobileSafari after deleting app requires restart

2011-04-22 Thread Heath Borders
equipment info dictionary Thanks! -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Re: Big Core Data, countForFetchRequest, and GCD

2011-03-29 Thread Heath Borders
For thread-safety's sake why don't you just create a separate NSManagedObjectContext for your asyncTask? They are cheap. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Tue, Mar 29, 2011 at 4:38 PM, Steve Mykytyn smyky...@gmail.com wrote

Re: MPMoviePlayerController setContentURL twice

2011-03-22 Thread Heath Borders
when I figure out what went wrong. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Mon, Mar 21, 2011 at 11:50 PM, Matt Neuburg m...@tidbits.com wrote: On Mon, 21 Mar 2011 22:59:04 -0500, Heath Borders heath.bord...@gmail.com said: That's exactly

Re: MPMoviePlayerController setContentURL twice

2011-03-22 Thread Heath Borders
work. Thanks again for your help, Matt! -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Tue, Mar 22, 2011 at 8:30 AM, Heath Borders heath.bord...@gmail.com wrote: Your code worked!  Thanks!  The main difference between our snippets was that you

Re: NSOperation with unit test

2011-03-22 Thread Heath Borders
Your NSOperation is probably running on a background thread managed by the NSOperationQueue. Your test needs to wait until the NSOperationQueue has processed all its tasks. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Tue, Mar 22, 2011 at 10

MPMoviePlayerController setContentURL twice

2011-03-21 Thread Heath Borders
this issue isn't indicative of a larger problem. Thanks! -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: MPMoviePlayerController setContentURL twice

2011-03-21 Thread Heath Borders
; default: break; } } } NSLog(@ContentURL: %@, self.moviePlayerController.contentURL); } @end -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath

Re: XML Namespace Definitions on Non-Root Elements

2011-03-07 Thread Heath Borders
That worked! I actually changed it to: nodesForXPath:@/root/*[name() = \example:foo\] Thanks! -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Sat, Mar 5, 2011 at 2:27 PM, Matt Neuburg m...@tidbits.com wrote: On Fri, 04 Mar 2011 14:25:06 -0600

Proper way to construct an Attribute NSXMLNode so that its prefix is included in its XMLString

2011-03-07 Thread Heath Borders
xmlns=http://example.com/document; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=@http://example.com/document document.xsd /document This doesn't seem consistent with the documentation. Am I hacking here? Thanks! -Heath Borders heath.bord...@gmail.com Twitter

Validating NSXMLDocument with xml:space attributes

2011-03-07 Thread Heath Borders
': The attribute 'space' is not allowed. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: NSXMLElement children doesn't return whitespace text nodes

2011-03-04 Thread Heath Borders
the xmlns:space=preserve attribute. (Input) Available in Mac OS X v10.4 and later. Declared in NSXMLNodeOptions.h. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Thu, Mar 3, 2011 at 10:33 PM, Gideon King gid...@novamind.com wrote: I recall that I had

XML Namespace Definitions on Non-Root Elements

2011-03-04 Thread Heath Borders
I can do this change programmatically, but I'd rather not have to modify the document. This namespace usage should be legal. Am I doing something wrong? Thanks! -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com

Re: NSXMLElement children doesn't return whitespace text nodes

2011-03-04 Thread Heath Borders
element somehow [myTextElement stringValue]; // returns (empty) This seems inconsistent with Note that white space in text nodes is always preserved, and is not affected by the NSXMLNodePreserveWhitespace option. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath

NSXMLElement children doesn't return whitespace text nodes

2011-03-03 Thread Heath Borders
to NSXMLDocument's initWithXMLString:options:error: selector. Thanks! -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests