Re: NSDateFormatter not working on iOS 5.

2012-03-23 Thread Heath Borders
eZone]; NSLog(@"V date string: %@", [dateFormatter stringFromDate:[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 Ed

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
http://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 Bo

Re: NSDateFormatter not working on iOS 5.

2012-01-31 Thread Heath Borders
bbreviation: %@", [timeZone abbreviationForDate:[NSDate date]]); output: 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 wrote: > > On Nov 17, 2

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
ion: %@", [timeZone abbreviationForDate:[NSDate date]]); // "IST" I expect the above code to output IST IST 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

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" 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 made another (linked)

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 the

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

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" wrote: > I’m having some issues with concurrency with Core Data. I create an object > that has a to-many relationsh

ANN: HBCollections Blocks Categories

2011-07-29 Thread Heath Borders
urage any 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 (

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

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 wrote: > Hi, I'm doing a fetch of some obje

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 wrote: > Hi guys, > > I'm working on a

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 wrote: > With the caveat that I haven't actually

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" wrote: ___ Cocoa-dev mailing list (Cocoa-dev

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 wrote: > > Hi,is

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" wrote: > I thought I understood how auto resizing worked but I don't > > > According to the docs if I want to automatically resi

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,

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" 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 > Twitter

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 wrote: > Hello > I have a thread A that spawns a thread B, and

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 wrote: > I have a UIView subclass which has a n

Re: How to detect string encoding before reading a file in NSString?

2011-04-26 Thread Heath Borders
Obviously, there are sometimes overlaps between encodings when you're trying to guess. http://en.wikipedia.org/wiki/Bush_hid_the_facts -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Tue, Apr 26, 2011 at 1:18 PM, Dave DeLong wrote: > Yo

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

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

Installing ipa from MobileSafari after deleting app requires restart

2011-04-22 Thread Heath Borders
! -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 the moderators at cocoa-dev

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

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

Re: MPMoviePlayerController setContentURL twice

2011-03-22 Thread Heath Borders
thePlayer prepareToPlay]; makes my code 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 wrote: > Your code worked!  Thanks!  The main difference between

Re: MPMoviePlayerController setContentURL twice

2011-03-22 Thread Heath Borders
I'll post back 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 wrote: > On Mon, 21 Mar 2011 22:59:04 -0500, Heath Borders > said: >>That's ex

Re: MPMoviePlayerController setContentURL twice

2011-03-21 Thread Heath Borders
break; case MPMovieLoadStateStalled: NSLog(@"stalled"); break; default: break; }

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 moderato

Validating NSXMLDocument with xml:space attributes

2011-03-07 Thread Heath Borders
ttp://example.com}foo', attribute 'space': The attribute 'space' is not allowed. Element '{http://example.com}foo', attribute 'space': The attribute 'space' is not allowed. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.b

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

2011-03-07 Thread Heath Borders
instance"; stringValue:@"http://example.com/document document.xsd"]; [rootXmlElement addAttribute:schemaLocationAttributeXmlNode]; Success! I got good xml: http://example.com/document"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc

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 wrote: > On Fri, 04 Mar 2011 14:

Re: NSXMLElement children doesn't return whitespace text nodes

2011-03-04 Thread Heath Borders
ot;" (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-tech.blogspot.com On Fri, Mar 4, 2011

XML Namespace Definitions on Non-Root Elements

2011-03-04 Thread Heath Borders
e 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 ___ Cocoa-de

Re: NSXMLElement children doesn't return whitespace text nodes

2011-03-04 Thread Heath Borders
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 wrote: > I recall that I had probl

NSXMLElement children doesn't return whitespace text nodes

2011-03-03 Thread Heath Borders
r. 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. Contact the moderators at