providesPresentationContextTransitionStyle busted?

2011-12-19 Thread Matt Neuburg
her I'm doing this totally wrong or the docs are describing it incorrectly or no one in the world has actually tried this except me! Thx - m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, ht

presentingViewController docs patently false

2011-12-19 Thread Matt Neuburg
but then they should say what that situation is. I've been looking for it all day and haven't found it... m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf Progra

Re: presentingViewController docs patently false

2011-12-19 Thread Matt Neuburg
On Dec 19, 2011, at 4:05 PM, Kyle Sluder wrote: > On Mon, Dec 19, 2011 at 3:55 PM, Matt Neuburg wrote: >> So both self and its parent do in fact have their definesPresentationContext >> property set to YES, and yet neither is being returned as the value of the >> pro

Re: presentingViewController docs patently false

2011-12-22 Thread Matt Neuburg
On Mon, 19 Dec 2011 15:55:49 -0800, Matt Neuburg said: >The docs say: > >> @property(nonatomic, readonly) UIViewController *presentingViewController >> Discussion >> The default implementation of this property walks up the view hierarchy, >> starting from this v

Re: No more warning about registered observers on dealloc with ARC?

2011-12-22 Thread Matt Neuburg
ng else is going on here; perhaps you haven't quite gotten to the root of your problem yet. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 4! http://www.apeth.net/matt/default.html#iosbook__

Re: providesPresentationContextTransitionStyle busted?

2011-12-22 Thread Matt Neuburg
On Mon, 19 Dec 2011 10:39:26 -0800, Matt Neuburg said: >According to the docs: > >> @property(nonatomic, assign) BOOL providesPresentationContextTransitionStyle >> Discussion >> If the value of this property is YES and the value of the >> definesPresentationCon

Re: No more warning about registered observers on dealloc with ARC?

2011-12-22 Thread Matt Neuburg
On Dec 22, 2011, at 3:58 PM, Roland King wrote: > > On Dec 23, 2011, at 1:19 AM, Matt Neuburg wrote: > >> On Thu, 22 Dec 2011 21:13:07 +0800, Roland King said: >>> You used to get a handy message logged to the console when an object with >>> KVO registered

Re: presentingViewController docs patently false

2011-12-24 Thread Matt Neuburg
On Thu, 22 Dec 2011 10:27:32 -0800, Kyle Sluder said: >On Dec 22, 2011, at 8:59 AM, Matt Neuburg wrote: > >> Okay, I did eventually find the situation in which the docs are correct. It >> only took me two days to figure it out. >> >> But it is up to the docs

Re: release sent to deallocated instance under ARC .. how?

2011-12-24 Thread Matt Neuburg
e of; getting sneaky with accessors is a way to trip oneself up later... I'd examine that getter if I were you. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 4! http://www.apeth.net/matt/default.html#i

Re: Cannot modify autoresizing with some iOS views

2011-12-24 Thread Matt Neuburg
On Sat, 19 Nov 2011 07:28:07 -0800, Matt Neuburg said: >On Fri, 18 Nov 2011 16:22:14 -0500, David Hoerl said: >>I have a Xcode 4.2 project with a dozen or so nibs. I'm in the process >>of assuring that all the resizing is set up properly. >> >>I find that a sma

Re: presentingViewController docs patently false

2011-12-24 Thread Matt Neuburg
On Sat, 24 Dec 2011 10:32:49 -0800, Kyle Sluder said: >On Dec 24, 2011, at 10:04 AM, Matt Neuburg wrote: >I'm under the impression that the default segues consult the >definesPresentationContext property to configure the actual animation. I could >of course be mistaken.

Re: Storyboard SplitViewController example

2011-12-25 Thread Matt Neuburg
On Dec 25, 2011, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > I am very new to Xcode and iPad development. I am trying to do the following: > > I have an initial NavigationController and ViewController. I am trying to go > from a button on the ViewController to a SplitViewController

Re: Storyboard SplitViewController example

2011-12-27 Thread Matt Neuburg
without any communication to or from the rest of the company. It's totally gone its own way (else the table view cells stuff would have migrated back to the nib editor). m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease

Re: viewWillAppear not called with UINavigationController containment

2011-12-27 Thread Matt Neuburg
t; See my examples, both in the book online and in the downloadable code examples, for the iOS 5 revision of my book. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 4! http://www.apeth.net/matt/default.html

Re: Storyboard SplitViewController example

2011-12-28 Thread Matt Neuburg
, I think we agree, there's no point throwing out the baby with the bathwater. But I look forward to a better baby! :) m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, http://tinyurl

Re: viewWillAppear not called with UINavigationController containment

2011-12-28 Thread Matt Neuburg
an on screen view. Trying to >think what would be different in a popover. > I'll try to do some testing too - it's perfectly possible that you've discovered a bug. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease p

Re: UIControllerView demo

2011-12-28 Thread Matt Neuburg
t what I think are some pretty good examples on my github repository, including a complete implementation that imitates the new iPad Mail interface: <https://github.com/mattneub/Programming-iOS-4-Book-Examples/blob/master/convertedToIOS5/p560p575splitViewNoPopover/p560p575splitViewNoPo

Re: viewWillAppear not called with UINavigationController containment

2011-12-29 Thread Matt Neuburg
u're told to do a certain dance, just do the dance. What my example tries to do is show you exactly what the dance is supposed to look like: <https://github.com/mattneub/Programming-iOS-4-Book-Examples/tree/master/convertedToIOS5/p476containerController> m. -- matt neuburg, phd = m..

Re: Get the RSS Feed of a site

2012-01-07 Thread Matt Neuburg
lication is for iPhone. > >Can anyone help me ? > What TidBITS News does is use NSURLConnection and Kevin Ballard's RSS-parsing code ("FeedParser"). m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool

Re: cannot form weak reference to ..

2012-01-07 Thread Matt Neuburg
011 video again; you're explicitly told that this is exactly why the weak-strong dance includes a nil test against the strong self inside the block. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Pr

Re: AppleScript recording

2012-01-19 Thread Matt Neuburg
> Although I have an open bug report on this issue (and I'm reliably informed > that Apple are looking into it) I wonder if there is a Cocoa equivalent that > I may use instead. > > Thank you for any suggestions. I suggest you ask on the applescript-implementors list. m. -- mat

Re: Maintaining Image for a UIButton

2012-01-19 Thread Matt Neuburg
red size and aspect ratio *before* you put it in the button. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 4! http://www.apeth.net/matt/default.html#iosbook

Re: Controlling iOS scrolling

2012-01-19 Thread Matt Neuburg
e me UIPageViewController, I scrapped my earlier architecture to use that instead; if you can afford to run iOS 5 only, I strongly suggest you do the same, as the earlier technique, though viable, is a heck of a lot of work. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net

Re: On iOS5 simulator and device blah blah

2012-01-31 Thread Matt Neuburg
http://www.cocoabuilder.com/archive/cocoa/310977-nsdateformatter-not-working-on-ios-5.html See the explanation from Peter Edberg at Apple: = The change in parsing of abbreviated time zone names in iOS 5.0 is a result of an intentional change in the open-source ICU 4.8 library (and the open

Re: Maintaining Image for a UIButton

2012-02-06 Thread Matt Neuburg
utton. One appears as an image inside the button (to the left of the title, by default, if there is one). Can you guess from their names which is which? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 4!

Re: Can I somehow encourage the deallocation of a dismissed view controller?

2012-02-12 Thread Matt Neuburg
uoted here) like it *is* a leak. You may even have a retain cycle. What's the basis for saying "it's not a leak"? In any case instruments will show you who's retaining your object. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a too

Re: Playing Music in Objective C

2012-02-14 Thread Matt Neuburg
rom a cross platform perspective. Oooh, this does look helpful; thanks for posting the link! m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 5! http://shop.oreilly.co

Re: Custom UIView drawing but can't figure out when/where it's loading

2012-02-15 Thread Matt Neuburg
ter which way the view was instantiated. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do ___ Cocoa-dev mailing

receptionist pattern question: NSOperationQueue vs. GCD

2012-02-15 Thread Matt Neuburg
d call dispatch_asynch? Putting it even more generally (and this is probably my *real* question), is there any reason why I'd ever use NSOperationQueue's addOperationWithBlock given the existence of GCD? Thx for your thoughts - m. -- matt neuburg, phd = m...@tidbits.com, http://www

Re: receptionist pattern question: NSOperationQueue vs. GCD

2012-02-15 Thread Matt Neuburg
This might be another way of phrasing the same question: why does the new iOS 5 method +[NSURLConnection sendAsynchronousRequest:queue:completionHandler:] want an NSOperationQueue as its queue rather than a dispatch queue? m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt

__block __weak - am I doing this right?

2012-02-15 Thread Matt Neuburg
thout writing a trampoline method, I'm avoiding the nightmare of storing my observers in an instance variable, op and op2 are the same object - everything about it seems to be okay. My questions are: * Is this really an okay way to talk? * Why was I crashing until I said __block

Re: receptionist pattern question: NSOperationQueue vs. GCD

2012-02-15 Thread Matt Neuburg
blocks you've got GCD. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html TidBITS, Mac news

Re: ARC + return of autoreleased CFType

2012-02-15 Thread Matt Neuburg
released, it doesn't matter what I name the method: the analyzer is unhappy. And under ARC it isn't clear what I can do about this, since I can't autorelease anything and I can't invite ARC to do so (and anyway I don't want to). Only adding CF_RETURNS_RETAINED

Re: receptionist pattern question: NSOperationQueue vs. GCD

2012-02-16 Thread Matt Neuburg
On Wed, 15 Feb 2012 13:56:14 -0800, Kyle Sluder said: >On Wed, Feb 15, 2012 at 11:19 AM, Matt Neuburg wrote: >> My question is simply this: in a world that has GCD, is there any reason why >> we wouldn't have "queue" be a GCD dispatch queue (probably the main queue

Re: __block __weak - am I doing this right?

2012-02-16 Thread Matt Neuburg
On Wed, 15 Feb 2012 16:20:50 -0800, Greg Parker said: >On Feb 15, 2012, at 12:58 PM, Matt Neuburg wrote: >Are you using GC or ARC? I think this is safe with GC but not safe with ARC, >but I'm not an expert in the NSNotificationCenter machinery. ARC, but I don't see how it

Re: __block __weak - am I doing this right?

2012-02-16 Thread Matt Neuburg
Never mind the async talk in my previous answer. You mean what I know; my point was, I now get the idea about why it's important that the block is executed later. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool!

Re: __block __weak - am I doing this right?

2012-02-16 Thread Matt Neuburg
On Feb 16, 2012, at 12:05 PM, Greg Parker wrote: > On Feb 16, 2012, at 8:22 AM, Matt Neuburg wrote: >> On Wed, 15 Feb 2012 16:20:50 -0800, Greg Parker said: >>> >>> Are you using GC or ARC? I think this is safe with GC but not safe with >>&g

Re: receptionist pattern question: NSOperationQueue vs. GCD

2012-02-16 Thread Matt Neuburg
On Feb 16, 2012, at 9:34 AM, Kyle Sluder wrote: > I must correct myself: NSOperationQueue uses GCD on iOS 4 and higher Good; I thought so, but you made me doubt it... :) m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phu

Re: __block __weak - am I doing this right?

2012-02-16 Thread Matt Neuburg
On Feb 16, 2012, at 12:45 PM, Greg Parker wrote: > On Feb 16, 2012, at 12:42 PM, Matt Neuburg wrote: >> On Feb 16, 2012, at 12:05 PM, Greg Parker wrote: >>> >>> The question is, who retains the observer? The __block __weak variable does >>> not, because

Re: __block __weak - am I doing this right?

2012-02-16 Thread Matt Neuburg
On Feb 16, 2012, at 4:16 PM, Greg Parker wrote: > On Feb 16, 2012, at 12:57 PM, Matt Neuburg wrote: >> On Feb 16, 2012, at 12:45 PM, Greg Parker wrote: >>> On Feb 16, 2012, at 12:42 PM, Matt Neuburg wrote: >>>> On Feb 16, 2012, at 12:05 PM, Greg Parker wrote: >

Re: __block __weak - am I doing this right?

2012-02-18 Thread Matt Neuburg
On Feb 18, 2012, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > Date: Sat, 18 Feb 2012 18:39:55 + > From: steven Hooley > To: Fritz Anderson > Cc: cocoa-dev@lists.apple.com > Subject: Re: __block __weak - am I doing this right? > Message-ID: > > Content-Type: text/plain; cha

Re: __block __weak - am I doing this right?

2012-02-22 Thread Matt Neuburg
t;id x = [Foo methodWithBlock:^{ return x; }]; Yes, the static analyzer catches that now (even in an Xcode as old as Snow Leopard Xcode 4.2). That was a *huge* help to me in arriving at the correct formulation. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A foo

Re: How EXC_BAD_ACCESS in objc_msgSend if receiver, parms OK?

2012-02-22 Thread Matt Neuburg
the slot pointed to by the variable and not letting some other string slip into it. In other words, believe in zombies, not in your intuitions about how everything looks okay. :) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool =

Re: My runloop-based async code breaks with GCD

2012-02-22 Thread Matt Neuburg
to the run >loop, and won't run the run loop for you. What made this light bulb come on for me was watching the video of Quinn's incredibly great lecture from WWDC 2010; in particular, see Session 208. Wow. See also his MVCNetworking example, which demonstrates the architecture he

Re: Xcode - An Apple Embarrassment

2012-02-29 Thread Matt Neuburg
they'd insist on having those problems solved. (2) Watch the WWDC 2012 videos *carefully* and look at how the presenters interact with Xcode 4. They encounter bugs all the time and either skip past them or are stymied by them. This makes me think they are not familiar with or dependent on

Re: How are views supposed to reload after being nillified by memory warnings?

2012-02-29 Thread Matt Neuburg
ods you've implemented, so you can't play fast and loose like this. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do RubyFrontier! http://www.apeth.com/R

Re: Xcode - An Apple Embarrassment

2012-02-29 Thread Matt Neuburg
On Wed, 29 Feb 2012 09:28:31 -0800, Matt Neuburg said: >> >> On 28 feb 2012, at 22:26, Lee Ann Rucker wrote: >> >> > Plus there's no [...] jump to documentation. >> >> >> Is too! >> >> Option+DoubleClick >> > >*N

Re: How do IB inspector fields relate to the actual objects?

2012-02-29 Thread Matt Neuburg
exturedBackgroundWindowMask > > I don't see what the relation between these is. Is there any? Consider the NSPanel style mask values: enum { NSUtilityWindowMask = 1 << 4, NSDocModalWindowMask = 1 << 6, NSNonactivatingPanelMask = 1 << 7 NS

Re: How are views supposed to reload after being nillified by memory warnings?

2012-03-03 Thread Matt Neuburg
;s say that its view (self.view) contains a UIImageView in its hierarchy (self.view.imageview). You are saying that the runtime might summarily rip the UIImageView out of the interface, so that self.view is *not* nil but self.view.imageview *is* nil??? m. -- matt neuburg, phd = m...@tidbits.com, <h

Re: UITextField not shrinking text

2011-02-01 Thread Matt Neuburg
so I'd suggest filing a bug. Poke the hornet's nest and see what flies out of it... m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edi

Re: layer contents briefly appearing stretched when resizing

2011-02-01 Thread Matt Neuburg
ame: is just the wrong time to do this. What if you implement layoutSublayersOfLayer: in the UIView subclass? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Defini

inherited implicitly created member is no member?

2011-02-01 Thread Matt Neuburg
g the property without the ivar meant that I was implicitly creating the ivar. And as far as the superclass is concerned, it does mean that. Why doesn't the subclass know about this? Thx! m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai ore

Re: inherited implicitly created member is no member?

2011-02-01 Thread Matt Neuburg
On Feb 1, 2011, at 7:23 PM, Kyle Sluder wrote: > On Tue, Feb 1, 2011 at 7:14 PM, Matt Neuburg wrote: >> Of course I can fix this in several ways, of which the most obvious is to >> declare the ivar "text" explicitly in the interface for MySuperClass. But >> I&#

Re: inherited implicitly created member is no member?

2011-02-02 Thread Matt Neuburg
On Feb 1, 2011, at 7:50 PM, Greg Parker wrote: > when @synthesize does create an ivar, the ivar it creates is @private That's what I needed to know - thanks! m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among

Re: layer contents briefly appearing stretched when resizing

2011-02-02 Thread Matt Neuburg
issue, but I can't find it, I'm explicitly >doing everything in the one method, removing layers or removing their contents >before they are resized etc, so the only thought I'm left with is that core >animation is shifting the actual work to another thread, even when I'

Re: Smoothly decimating UIImageView images

2011-02-04 Thread Matt Neuburg
layer. My impulse, therefore, is to say: don't be lazy, use a thumbnail-size version of the image, even if that "complicates the code". m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool

Re: [iOS] NSUserDefaults best practices

2011-02-05 Thread Matt Neuburg
;in my App Delegate. NSUserDefaults' standardUserDefaults *is* a singleton. Just call registerDefaults: in didFinishLaunching... and you're done. (There is no need, in iOS, to do it any earlier, as with +initialize, because there are no bindings in iOS.) m. -- matt neuburg, phd = m...@tidbits.com

Re: Common Font Style Names

2011-02-05 Thread Matt Neuburg
"Italic". Is there a better way >to get the common style names for display? > I doubt anything has actually changed. Some fonts, like Courier and Helvetica, have an oblique variant; some have an italic variant; some have neither. Exactly what font family are you starting with? m.

Re: Initializing NSError **, again Re: CoreData Migration Problems

2011-02-09 Thread Matt Neuburg
saved / gained by not initializing them was > wasted, for all of time, the first time I had to debug the segfault. So the take-home message is: To touch "error" after this call without first learning that "file" is nil is wrong and can lead to undefined behavior. But n

Initializing NSError **, again Re: CoreData Migration Problems

2011-02-09 Thread Matt Neuburg
or:(NSError **)error > ... > error > An out value that returns any error encountered during initialization. > Returns nil if the regular expression pattern is invalid. Really? :) m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi to

Re: Get ProcessSerialNumber of last front application

2011-02-09 Thread Matt Neuburg
y come to the front using Carbon Events. <http://www.cocoabuilder.com/archive/cocoa/155984-detecting-frontmost-application.html> m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definiti

Re: Initializing NSError **, again Re: CoreData Migration Problems

2011-02-09 Thread Matt Neuburg
On Feb 9, 2011, at 11:19 AM, Bill Bumgarner wrote: > > On Feb 9, 2011, at 10:51 AM, Matt Neuburg wrote: > >>> error >>> An out value that returns any error encountered during initialization. >>> Returns nil if the regular expression pattern is invalid. >

Re: Get ProcessSerialNumber of last front application

2011-02-09 Thread Matt Neuburg
w me down. My big > guess is number 2. > > On Feb 9, 2011, at 12:55 PM, Matt Neuburg wrote: > >> On Wed, 9 Feb 2011 09:23:45 -0600, "Mr. Gecko" said: >>> Hello, I am wondering how I can get the last front application >>> ProcessSerialNumber so I can

Re: Abstract Text Example and Question

2011-02-10 Thread Matt Neuburg
Basically you're making a histogram, which is a well-solved problem. If order matters, use both the dictionary *and* some other storage to keep track of the words in the order in which they actually appear. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool

Re: Performing the selector from a stored IMP

2011-02-11 Thread Matt Neuburg
> Date: Fri, 11 Feb 2011 12:21:29 + > From: Joanna Carter > Subject: Performing the selector from a stored IMP > > I want to store a "method pointer" in a dictionary, recover it and call it > from elsewhere in code. > Consider NSInvocation... m. -- matt

Re: Performing the selector from a stored IMP

2011-02-11 Thread Matt Neuburg
ny* method call into an NSInvocation, on the spot! It isn't doing this by magic; it's using Objective-C's wonderful runtime. And so can you. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007

Re: Canceling NSInvocationOperation

2011-02-13 Thread Matt Neuburg
> Message: 4 > Date: Sat, 12 Feb 2011 12:43:26 -0800 > From: Chase Latta > Subject: Canceling NSInvocationOperation > > I guess the root of my question is how do I access the > operation from within my method that I am passing to > initWithTarget:selector:object when I create my invocation oper

Re: UINavigationController in Popover

2011-02-14 Thread Matt Neuburg
pover size the same for all panels, so it avoids the > problem. > > > On 12/17/10 10:49 AM, "Matt Neuburg" wrote: > >> On Thu, 16 Dec 2010 14:37:00 -0600, Gordon Apple said: >>> I've Googled this and have seen that others have had this problem,

Re: iPhone UISearchDisplayController how to handle memory warning

2011-02-15 Thread Matt Neuburg
Then in the ViewDidLoad set the saved off > search text on UISearchBar. This actually performs the search as if the user > typed in the text. > > > On Jan 2, 2011, at 3:20 PM, Matt Neuburg wrote: > >> On Sat, 01 Jan 2011 10:36:01 -0600, Donald Largen said: &

Re: Sleep Notification

2011-02-15 Thread Matt Neuburg
good all-around place to cover resuming from interruptions of any kind. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.apeth.net/matt/default.html#applescriptt

Re: awakeFromNib on main thread?

2011-02-15 Thread Matt Neuburg
s a serious concern, just put an assert that the current thread *is* the main thread into your awakeFromNib implementation. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edit

Re: converting app to a document based app

2011-02-15 Thread Matt Neuburg
ee now that Quincey Morris has said this too.) If this is problematic, your code needed refactoring anyway! m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.a

Re: Animation doesn't reach end value

2011-02-16 Thread Matt Neuburg
way, others can test, reproduce, consider. In your email as it stands there is nothing to respond to. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! h

Re: Question about split view

2011-02-16 Thread Matt Neuburg
t allows view unloading to take place, you have to cover your bases. A solution might be something like this: - (void)viewDidUnload { [super viewDidUnload]; self.toolbarItems = self.toolbar.items; // property with retain policy } - (void)viewDidLoad { [super viewDidLoad];

Re: Question about split view

2011-02-16 Thread Matt Neuburg
be unloaded and the problem won't arise. I did sort of suggest this the last time we discussed this topic; I just didn't spell it all the way out. m. On Wed, 16 Feb 2011 13:42:28 -0800, Matt Neuburg said: >>On Sun, 16 Jan 2011 18:35:45 -0500, Phillip Mills >>said: >&

Re: Odd behavior / appearance

2011-02-17 Thread Matt Neuburg
wFromRect:CGRectMake(472.0, 633.0, 58.0, 29.0) inView:aView > animated:YES]; > >In this case, I get the nicer, scrollable sheet...but it will not scroll far >enough to leave the bottom two buttons on the screen (scrolls and bounces >back). > >Solutions would be nice, of course, bu

Re: -[NSSet containsObject:] returns NO when it should return YES

2011-02-21 Thread Matt Neuburg
//stackoverflow.com/questions/1181637/storing-and-retrieving-unsigned-long-long-value-to-from-nsstring m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! htt

Re: How to use Photo Albums of the landscape mode iphone app

2011-02-21 Thread Matt Neuburg
Assets Library framework. One of the WWDC 2010 videos is devoted to this very topic. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.apeth.n

Re: How to detect when an NSTextView has finished being loaded into a window?

2011-02-21 Thread Matt Neuburg
hem with something else (another view, or even a secondary window). You can cover the intervening time with a progress indicator of some sort. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive G

Re: GCContext errors

2011-02-21 Thread Matt Neuburg
s directly, rather than letting drawRect: call it? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.apeth.net/matt/default.html#applescriptthings

Re: proper use of QuartzCore

2011-02-25 Thread Matt Neuburg
ld give me better results and not consume too much CPU? Your approach 2 sounds like the way Apple's Metronome example is implemented, so be sure to take a look at that. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool!

Re: Help with Apple Helpbooks

2011-02-25 Thread Matt Neuburg
ocalization. Then when you've proved to yourself that this works, you can build outwards. See my screencast showing how to do it: http://www.apeth.com/writersua/implementAppleHelp.mov m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorele

Re: Using asynchronous APIs with NSOperation

2011-02-25 Thread Matt Neuburg
better off using concurrent operations. What is >not clear to me is, if I provide a callback to an asynchronous API, on >which thread is the callback called? You might be helped by studying Apple's (really Quinn's) MVCNetworking example. See esp. Networking/NetworkManager.m. m. -- mat

Re: MPVolumeView

2011-02-27 Thread Matt Neuburg
tap to make the button jump to where you tapped. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.apeth

Re: iPad widget question

2011-02-27 Thread Matt Neuburg
grid of tappable icons. No third-party code needed. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.apeth

Re: Help with simple NSView animation...

2011-03-03 Thread Matt Neuburg
animatable property, and they will be animated together (and therefore you'll get to redraw the presentation layer on every frame) when the redraw moment arrives and the animation is actually performed. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A

Re: NSAttributedString crashes

2011-03-03 Thread Matt Neuburg
o an end, unless you retain it. You may be confusing this with that. Even in that case you don't have ownership; you just have some extra persistence time while your code continues to run. And this makes sense, because there is no other owning obje

Re: Help with simple NSView animation...

2011-03-03 Thread Matt Neuburg
CALayer plus touches, as someone has said). But in general my view is: don't be afraid of Core Animation. It is not difficult and it puts the power directly into your hands. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phus

Re: animating addSubview with iOS4

2011-03-03 Thread Matt Neuburg
read: http://www.cocoabuilder.com/archive/cocoa/297736-why-can-a-modal-view-controller-present-another-in-viewdidload.html Note that I suggested delayed performance in viewDidLoad and he slapped me around for a while. :) So now I'm warning everyone else! :)) m. -- matt neuburg, phd = m...@

Re: NSAttributedString crashes

2011-03-03 Thread Matt Neuburg
On Mar 3, 2011, at 4:35 PM, Kyle Sluder wrote: > On Thu, Mar 3, 2011 at 4:20 PM, Gerriet M. Denkmann > wrote: >> But, taking my original example: >> >> NSAttributedString * attributedString = ... >> NSFont *aFont = [ attributedString attribute: NSFontAttributeName atIndex: >> 0 effectiveRang

Re: NSAttributedString crashes

2011-03-03 Thread Matt Neuburg
On Mar 3, 2011, at 7:32 PM, Graham Cox wrote: > On 04/03/2011, at 11:54 AM, Matt Neuburg wrote: > >> because NSString is a very, very special case. Memory management for strings >> is utterly different from memory management for a normal object > > > Is it? >

Re: animating addSubview with iOS4

2011-03-05 Thread Matt Neuburg
you're observing is this, and has nothing to do with viewDidAppear: per se. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 4! http://www.apeth.net/matt/default.html#iosbook__

Re: Outlets Not Connected In awakeFromNib

2011-03-05 Thread Matt Neuburg
ifferent matter.) What you say about viewDidLoad is perfectly true, but should not be an issue provided you do in viewDidLoad only things that are suitable for viewDidLoad (i.e. things that can do no harm if done more than once). m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apet

Re: Setting a delegate on a UITextField

2011-03-05 Thread Matt Neuburg
yourself in textFieldDidEndEditing. See the section entitled "Validating Entered Text" (along with the preceding section) in the "Managing Text Fields and Text Views" chapter of the Text, Web, and Editing Programming Guide for iOS. m. -- matt neuburg, phd = m...@tidbits.co

Re: XML Namespace Definitions on Non-Root Elements

2011-03-05 Thread Matt Neuburg
g? It's no use just saying "example:"; you have to have a way to tell it what "example:" *is* - i.e. you have to bind the namespace - and you don't have a way to do that from here. One option is to bypass the namespace altogether: nodesForXPath:@"//*[local-nam

Re: rerunning an NSOperation object

2011-03-06 Thread Matt Neuburg
ration you're going to *have* to build a new object. Your reluctance to do so (and even to accept what the docs are plainly telling you) suggests you may just need to refactor somehow. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an au

Re: XML Namespace Definitions on Non-Root Elements

2011-03-07 Thread Matt Neuburg
ttp://heath-tech.blogspot.com > > > >On Sat, Mar 5, 2011 at 2:27 PM, Matt Neuburg wrote: >> On Fri, 04 Mar 2011 14:25:06 -0600, Heath Borders >> said: >>>I'm trying to parse a document with a namespace declared on a non-root >>>element: >>>

Re: Setting a delegate on a UITextField

2011-03-07 Thread Matt Neuburg
On Mon, 07 Mar 2011 09:02:36 -0800 (PST), Jon Sigman said: >On Sat, 05 Mar 2011 11:22:46 -0800 Matt Neuburg wrote: >> One possible approach on iOS is to implement textFieldShouldEndEditing, and >>return NO and put up an alert if there's a problem. Another is just to m

Re: Setting a delegate on a UITextField

2011-03-07 Thread Matt Neuburg
On Mar 7, 2011, at 9:54 AM, Jon Sigman wrote: > On Mon, March 7, 2011 9:30:05 AM Matt Neuburg wrote: > > > The "Return" key invokes textFieldShouldReturn: and does *not* > > automatically resign first responder ... > > Ah! That is the part I had been overloo

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

2011-03-07 Thread Matt Neuburg
space:def]; NSXMLNode* xsi = [NSXMLNode predefinedNamespaceForPrefix:@"xsi"]; [e addNamespace:xsi]; NSXMLNode* loc = [NSXMLNode attributeWithName:@"xsi:schemaLocation" stringValue:@"http://example.com/document document.xs

<    1   2   3   4   5   6   7   8   9   >