Re: easy way to store table-like data

2011-03-08 Thread Matt Neuburg
uld be NSDictionary, NSArray, etc., or, as Dave DeLong rightly suggests, a class devoted to data structured a particular way). How they are presented in the interface is yet another. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease p

Re: kvo

2011-03-08 Thread Matt Neuburg
e NSOperation. 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___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Re: How to wait for methods with result/completion blocks to finish?

2011-03-08 Thread Matt Neuburg
completion block. Sure, this means you have to break up your procedure into steps, but block syntax can actually help you to clarify this. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease p

Re: How to wait for methods with result/completion blocks to finish?

2011-03-08 Thread Matt Neuburg
can perform, and the controller can consult its state to make it so. Even if you were to switch temporarily to a modal view that just says Saving, that's better than having a button that slaps the user's hand. That's my philosophy, anyway... But this is no longer an architectural ma

Re: Outlets Not Connected In awakeFromNib

2011-03-08 Thread Matt Neuburg
On Mar 5, 2011, at 11:00 AM, Matt Neuburg wrote: > On Fri, 04 Mar 2011 10:21:38 +0100, Andreas Grosam > said: >> >> Unfortunately, due to the problem described previously, -awakeFromNib does >> not seem to be always appropriate for its intended use as described in

Re: Apple Quit event custom handler not working : Beginner

2011-03-11 Thread Matt Neuburg
quit event handler *after* yours, and therefore is overriding yours. Try using delayed performance. 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: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]

2011-03-13 Thread Matt Neuburg
ification >notification with a reason of MPMovieFinishReasonPlaybackEnded, then gdb shows >the assertion failure and exception and dumps the backtrace (below). What was the outcome on this? Thx - m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an au

Re: Assertion failure in -[MPMoviePlayerControllerNew _moviePlayerDidBecomeActiveNotification:]

2011-03-14 Thread Matt Neuburg
On Sun, 13 Mar 2011 15:14:53 -0700, Steve Christensen said: >On Mar 13, 2011, at 11:05 AM, Matt Neuburg wrote: > >> On Tue, 08 Mar 2011 17:01:33 -0800, Steve Christensen said: >>> The setup has a MPMoviePlayerController instance that is playing a local >>> audio f

Re: Ad-hoc distribution still supported in App Store?

2011-03-14 Thread Matt Neuburg
On Mar 14, 2011, at 6:48 PM, cocoa-dev-requ...@lists.apple.com wrote: > I'd like to distribute this on the app store so they can d/l it there, and > not have to put up with the "reminder" notices, but I don't want just anyone > to be able to find the app on the App Store. Is this what Ad-hoc di

Re: MPMoviePlayerController setContentURL twice

2011-03-21 Thread Matt Neuburg
layerController. Setting the contentURL to a different URL works fine. Something else must be going on at your end. As always, my advice is: make a new project, reduce this to the absolute simplest possible case (an MPMoviePlayerController, its view, two embedded movies, and two button

Re: UIWebView HTML to match UITextView

2011-03-21 Thread Matt Neuburg
fferent engines for drawing. 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___ Cocoa-dev mailing list (Cocoa-de

Re: MPMoviePlayerController setContentURL twice

2011-03-21 Thread Matt Neuburg
URLForResource:@"xbox" withExtension:@"mp4"]]; [self.thePlayer play]; } That's all. It works. So then you build up from there towards what you *really* want to do. When it stops working, that's when you broke it. m. -- matt neuburg, phd = m...@tidbits.c

Re: iPhone animation puzzle

2011-03-23 Thread Matt Neuburg
nimations]; >>>>> >>>>> >>>>> and so does this, >>>>> >>>>> label.alpha = 1.0; >>>>> [UIView animateWithDuration:2.5 animations:^{label.alpha = 0.0;} ]; >>>>> >>>>> >>>

Re: iOS - Hide Master view in a split view

2011-03-25 Thread Matt Neuburg
they stack!) Of course, you could just rip out the UISplitView entirely and replace it with a different root view, but that seems unnecessary. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool!

Re: copyPath:toPath:handler: more reliable than copyItemAtPath:toPath:error: ???

2011-03-26 Thread Matt Neuburg
e same thing the Finder does? So if it fails to do that, that would be a bug. 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: Cocoa alternative for method aliasing?

2011-03-29 Thread Matt Neuburg
gesture recognizer, perhaps, or just use the button's control events. In any case there should be no need to interfere at the very low level of the touches... responder methods. There are *many* ways to interfere with aspects of touch delivery; they are quite interesting, but b

Re: applicationWillTerminate not received

2011-04-05 Thread Matt Neuburg
uld do you. Alternatively, if you insist on working this way, then check the box that says you don't multitask. 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.ht

Re: ScrollView Programming

2011-04-06 Thread Matt Neuburg
ble; the window will appear to consist of a static column of labels. 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: Can an image be "rejected" by CALayer?

2011-04-08 Thread Matt Neuburg
g to figure out why I couldn't see the layer in the interface 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: How To Increment CALayer Retain Count?

2011-04-08 Thread Matt Neuburg
d assuming that the view controller's view outlet is connected to the View and assuming that you're loading the nib correctly... Anyway, the CALayer is surely a total red herring. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an aut

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

2011-04-10 Thread Matt Neuburg
GImageRef, which I create like so: > > CGImageRef imageRef = CGImageSourceCreateImageAtIndex( sourceRef, 0, > NULL ); > >Any ideas what might go wrong? Well, my next guess is the frame. I don't see you setting the layer's frame anywhere, so its size is zero by zero,

Re: Strange property/synthesized accessor behaviour

2011-04-10 Thread Matt Neuburg
ocumented existing ivar and I didn't get any warning. 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___ Co

Re: Remove Duplicates in a NSArray

2011-04-10 Thread Matt Neuburg
last. > >On Oct 1, 2008, at 7:29 AM, Rashmi Vyshnavi wrote: I'm betting that after two and a half years he probably solved it somehow. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 4! http

Re: UIViewControllers being reloaded on didReceiveMemoryWarning... ?

2011-04-13 Thread Matt Neuburg
#x27;s how I learned not to do that. :) I really applaud verbose explanatory log messages from the framework such as this. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Pr

Re: MPMoviePlayerController

2011-04-13 Thread Matt Neuburg
expected play, pause, and stop methods, as well as commands for seeking quickly forward and backward..." I had trouble discovering this too, the first time! I like to think that I've suffered so you don't have to... :) -- matt neuburg, phd = m...@tidbits.co

Re: MPMoviePlayerController

2011-04-16 Thread Matt Neuburg
mething your device can play. 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___ Cocoa-dev mailing list (Cocoa-de

Re: MPMoviePlayerController

2011-04-16 Thread Matt Neuburg
erview] addSubview:v]; return; } You could easily have found this out with Google; explanations of how to fix this example are plastered all over the Internet. m. PS. And of course, the chapter in my book about MPMoviePlayerController lays a lot of stress on your responsibilit

Re: MPMusicPlayerController playbackState

2011-04-20 Thread Matt Neuburg
ayerController notifications tend to be called twice in quick succession. What I do is ignore one of the calls if they are extremely close together in time. It hadn't occurred to me to examine the extra info in the userInfo dictionary; you may have discovered a way of distinguishing th

Re: iOS rotate to interface orientation problem

2011-04-20 Thread Matt Neuburg
seful: http://www.apeth.com/iOSBook/ch19.html#_rotation 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 ___ Coco

Re: video analog to MPMediaItemCollection?

2011-04-20 Thread Matt Neuburg
> Date: Wed, 20 Apr 2011 14:48:21 -0700 > From: John Michael Zorko > Subject: video analog to MPMediaItemCollection? > > > Hello, all ... > > I can access the iOS device's iPod library with MPMediaItemCollection, but I > don't see a way to access the video library on the device. Does an API f

Re: UI Design on iPad

2011-04-21 Thread Matt Neuburg
> Date: Thu, 21 Apr 2011 12:23:46 +0800 > From: Bing Li > Subject: UI Design on iPad > > I am a new developer on iPad. After reading some books about Cocoa and iPad, > I notice that the UI supported by Interface Builder is not rich enough. Just > some common widgets are available and no interfac

Re: getting metadata from iPhone photos

2011-04-22 Thread Matt Neuburg
etails >> for >> an application made by xcode. > >Start with the ALAsset class (described at ><http://developer.apple.com/library/ios/#documentation/AssetsLibrary/Reference/ALAsset_Class/Reference/Reference.html>). > That should get you to where you want to be. Also note the

Re: UIPickerView

2011-04-26 Thread Matt Neuburg
ccessory view, to make a table view a way of choosing one amongst many options. 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: viewWillDisappear not being called

2011-04-26 Thread Matt Neuburg
led viewWillDisappear: merely because the app is backgrounding. (It is true that view controllers used to signal viewWillDisappear: when the app was *terminating*. But those days are long gone; we are in the iOS 4 world of multitasking now.) m. -- matt neuburg, phd = m...@tidbits.com, <ht

Re: iOS - AudioSession Category to play in sleep mode

2011-04-26 Thread Matt Neuburg
>I am not sure what i am missing here. http://tinyurl.com/3bx55zx The very first hit is what you are missing. 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: Properties vs Instance Variables

2011-04-27 Thread Matt Neuburg
rty accessing a "_window" ivar. I think they do this just so you can't accidentally say "window" unqualified. 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

Re: Show UIActivityIndicatorView asynchronously

2011-04-28 Thread Matt Neuburg
]; } And then showItemsForRow inits the view controller and loads its view in the usual way. 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: UIGestureRecognizer in superview firing

2011-05-02 Thread Matt Neuburg
ew chain. >I'm going to use the PanGestureRecognizer delegate method >gestureRecognizer:shouldReceiveTouch: to stop this happening. That's correct. It's very easy to implement this, because a touch has a view, so you can detect immediately that this touch was not on the sup

Re: UIView not loading

2011-05-03 Thread Matt Neuburg
ith loadView is insane. If you implement loadView, that means the view will not be loaded from the nib, so you're cancelling out the very thing you want to do. If you implement loadView you *must* supply the view right there and set the view property manually. http://www.apeth.com/iOSBook/ch1

Re: iOS nib weirdness...

2011-05-06 Thread Matt Neuburg
tp://www.cocoabuilder.com/archive/xcode/293709-app-failure-in-simulator.html 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: NSOperationQueue and Synchronization Control

2011-05-06 Thread Matt Neuburg
ns. I strongly suggest that you watch the WWDC 2010 videos on this topic before proceeding any further. 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: transitionWithView:duration:options:animations:completion: still defeats me

2011-05-09 Thread Matt Neuburg
> Date: Mon, 09 May 2011 21:43:38 +0800 > From: Roland King > Subject: transitionWithView:duration:options:animations:completion: > still defeats me > > I seem to have a lot of trouble with this method! A few months ago I had my > own custom drawRect: and that was messing it up, this time

Re: Core Animation animations stop prematurely at random

2011-05-16 Thread Matt Neuburg
n with the same key, for example; but that's a totally wild guess based on nothing (because there's nothing in your question to base it on)... m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Pro

Re: Delegate & Notification

2011-05-16 Thread Matt Neuburg
search on NSRunLoop in Xcode, I get 50 or 60 sample code projects. I'm not saying that all of these would show you what you want to know (most of them are about adding a timer or a stream), but to claim that there is *no* sample code involving run loops seems a bit over the top. m. -- matt neu

Re: Thumbnail view like iPhone Photos app

2011-05-20 Thread Matt Neuburg
enough. >Please give me some general ideas on how to load images on time and manage >the cached memory. > There's a WWDC 2010 session where they actually build something that looks like the Photos application, to deal exactly with this sort of issue. Watch that video; at the very least,

Re: getting the shakes

2011-06-09 Thread Matt Neuburg
hook me!"); } Might try that. Keep in mind that having a text field as first responder complicates the story a little. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 4

Re: touches outside a view's bounds

2011-06-09 Thread Matt Neuburg
int:point toView:sub]; result = [sub hitTest:pt withEvent:event]; if (result) return result; } return nil; } 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

Re: Manually setting orientation makes a mess out of my interface

2011-06-09 Thread Matt Neuburg
y portrait mode, and when you switch to an editor you summon a modal view whose view controller permits only landscape mode. http://www.apeth.com/iOSBook/ch19.html m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Progra

Re: How can I be so wrong about graphics?

2011-06-09 Thread Matt Neuburg
e and that the author is telling you works right out of the box (just build and run and look at the result) you have a firm starting-place from which to experiment. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool =

Re: tools for writing help books

2011-06-09 Thread Matt Neuburg
x27;s cup of tea. However, it's free and open source, and it's Ruby so you get to use whatever cool Ruby tools you feel like. I write in kramdown and HAML and SASS and things like that, so I'm not doing much manual HTML. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.ap

Re: touches outside a view's bounds

2011-06-09 Thread Matt Neuburg
On Jun 9, 2011, at 5:23 PM, Roland King wrote: > > On 10-Jun-2011, at 12:44 AM, Matt Neuburg wrote: > >> On Wed, 01 Jun 2011 22:25:32 +0800, Roland King said: >>> I've been taking advantage of the fact that UIView's don't clip to their >>> boun

Re: layoutSubviews doesn't always work (iOS 4.3 on iPad Simulator)

2011-06-18 Thread Matt Neuburg
e I was just experimenting with the same issue. What I ended up doing is setting the contentOffset explicitly after the zoomScale changes. https://github.com/mattneub/Programming-iOS-4-Book-Examples/tree/master/p492zoomCentered m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/m

Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?

2011-06-18 Thread Matt Neuburg
ne automatically when the view is >popped off the navigation stack. What I do is start with a UIViewController subclass that creates the UIWebView in viewDidLoad and disposes of it in dealloc, setting the delegate to nil first, just as suggested in the docs. It's not clear to me why creat

Re: Release a NSWindowController after the window is closed

2011-06-18 Thread Matt Neuburg
On Jun 18, 2011, at 12:02 PM, cocoa-dev-requ...@lists.apple.com wrote: > Date: Sat, 18 Jun 2011 10:09:13 -0700 > From: Kyle Sluder > Subject: Re: Release a NSWindowController after the window is closed > This general pattern will fail under ARC (yay, we can talk about that > now). Why are we

Re: layoutSubviews doesn't always work (iOS 4.3 on iPad Simulator)

2011-06-18 Thread Matt Neuburg
ad and run the project I pointed you to, you'll see there's no problem about scrolling to the offscreen portions of the image when it's zoomed large. m. > > On 19/06/2011, at 02:05 , Matt Neuburg wrote: > >> On Sun, 12 Jun 2011 14:30:42 +1000, Brian Bruinewoud

Re: Synthesised properties and additional actions

2011-06-19 Thread Matt Neuburg
sign the new value? I provide a good (I think) technique for doing this in my book (p. 275, example 12-5 "Overriding synthesized accessors"). You can also download sample code here: https://github.com/mattneub/Programming-iOS-4-Book-Examples/tree/master/p275b_overrideSynthesizedAccessors

Re: Help Book question

2011-06-22 Thread Matt Neuburg
erstand why the anchor based link isn't working. I'm sure >I'm doing something obviously wrong Not necessarily; this feature *could* just be broken... m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease

Re: UIScrolview in only one direction at time

2011-06-22 Thread Matt Neuburg
an change the content offset as the user scrolls (in the delegate), so you can counteract any change in the x- or y-component of the content offset during the drag. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Program

Re: Synthesised properties and additional actions

2011-06-22 Thread Matt Neuburg
ng wrong are quite high. So the question is simply, how can I add my own functionality while at the same time inheriting all the synthesized accessors' yummy goodness, whatever it may be? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an

Re: Synthesised properties and additional actions

2011-06-22 Thread Matt Neuburg
On Jun 22, 2011, at 10:41 AM, Joanna Carter wrote: > AFAICT, you are talking about making "non-GC" accessors less prone to > reference counting errors? If I'm using GC, then this, presumably, becomes > less relevant? My book is about iOS 4; there is no GC in that world! :) m._

Re: about tiling images.

2011-06-23 Thread Matt Neuburg
> Message: 6 > Date: Thu, 23 Jun 2011 16:18:25 +0200 > From: Gustavo Adolfo Pizano > Subject: about tiling images. > I have been checking 2010 video about using UIScrollView with images, > zooming etc. Thye use CATiledLayer and doing some calculations they > now what tile to load depending on t

Re: who is currently the first responder? (iOS)

2011-06-29 Thread Matt Neuburg
l to its knees; guess how I found *that* out? :) >I want to make the edit commit Oh. Well, if that's your only problem, then all you have to do is call endEditing: on the superview. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autor

Re: How to assign a method for touch event to a UIImageView?

2011-06-29 Thread Matt Neuburg
f hitTest:p withEvent:nil]; 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___ Cocoa-dev mailing list (Cocoa-de

Re: Properties, Attributes and Retain+Autorelease

2011-06-29 Thread Matt Neuburg
; but (I think he's implying) this conditioning is specious and serves only to make us lazy. To put it another way: ObjectCreator's "value" method is opaque; to pretend that you *know* its memory-management policy is really just a case of programming by guesswork. m.

Re: How Do I get informed when -showHelp: has been called?

2011-07-01 Thread Matt Neuburg
;repoint" the showHelp: action from the Help menu item so that my own code runs in response. Usually, however, this is because I *don't* want the Help View launched and opened from this menu item. :) m. -- matt neuburg, phd = m...@tidbits.com, <

Re: Cocoa Touch: Accessory view never calls "up outside" action?

2011-07-13 Thread Matt Neuburg
out what the word "inside" normally means. With an ordinary default roundrect UIButton you can see how far away this distance is, because if you tap on the button and then move your finger away from the button, there comes a moment where it suddenly changes from highlighted to unhig

Re: Stupid (virtual) keyboard mistake... I think

2011-07-20 Thread Matt Neuburg
ith no intervention on your part. The reason is that this dismissal takes place if the text field has its "end editing on exit" hooked up, even if it is unhandled. So Approach 2 has the advantage of being Extremely Cool. :) You can set up the same thing in the nib instead of code i

Re: Dismissing a Popover Internally

2011-07-20 Thread Matt Neuburg
rrent first responder. Obviously the system knows what the first responder is, so why won't it tell you? It's kind of dumb. This is similar; the system clearly knows useful stuff it won't share with you. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>

Re: Dismissing a Popover Internally

2011-07-21 Thread Matt Neuburg
eant by "store a reference". Another trick I use is to subclass UIPopoverController just so as to have a way to distinguish one popover from another. As I said, in my view none of this should be necessary. m. > > > On 7/20/11 2:30 PM, "Matt Neuburg" wrote: >

Re: Native Cocoa API for iTunes?

2011-07-21 Thread Matt Neuburg
ly find that out just by looking (for example, by generating a scripting bridge glue file, or in many other ways). You don't need to ask. Just *look*. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = coo

Re: Help with Secondary UINavigationController

2011-07-21 Thread Matt Neuburg
subview somehow, but you must *not* do it with a UINavigationController; that would be a misuse of this class. You should simply write your own code to manipulate the subview. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an aut

Re: Printing options

2011-07-21 Thread Matt Neuburg
prints out customer orders in nice columnar fashion with a header, columns, prices, total at the bottom, etc., and it does exactly that. Printing is just drawing, it isn't hard. Just draw lines in the places where you want lines, text in the places where you want text, etc. m.

Re: Dialog Command Keys

2011-07-26 Thread Matt Neuburg
on-enabling-of-menus-in-modal-window.html 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___ Cocoa-dev mailin

Re: MPMoviePlayerController Fast forward

2011-07-29 Thread Matt Neuburg
uch as the earphones that come with an iPhone), or the buttons that you see when you double-click the Home button and swipe left. But if you are referring to the buttons that are *part* of the MPMoviePlayerController's view interface, then those have nothing to do with remote control. m. --

Re: UIImageView subclasses

2011-07-29 Thread Matt Neuburg
case, my book tells you how (using a gesture recognizer), and you can download code that demonstrates one approach: https://github.com/mattneub/Programming-iOS-4-Book-Examples/tree/master/p424hitTesting m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/m

Re: Change in animation?

2011-07-30 Thread Matt Neuburg
on works (on iOS) - and you can read that chapter even if you don't have the book: http://www.apeth.com/iOSBook/ch17.html m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 4!

Re: UIImageView Animation Question

2009-11-27 Thread Matt Neuburg
quot;context" is asking for a graphics context. If the name-mongers had used "contextInfo" as elsewhere in Cocoa, the purpose of this parameter would have been much more obvious. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorele

Re: UIImageView Animation Question

2009-11-27 Thread Matt Neuburg
On Fri, 27 Nov 2009 15:53:30 -0800, David Duncan said: >On Nov 27, 2009, at 2:02 PM, Matt Neuburg wrote: > >> It's really another case of a poor choice of terminology, isn't it? (By >> "another" I am referring to my recent critique on this list of the

Re: Hiding String Constant in Compiled Code

2009-11-30 Thread Matt Neuburg
tring, replace it with a perfectly functioning one >of their own making, and then save the file and the application would >run with the new string value. If the app is code-signed, it will not run when the executable is altered. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tid

removing all sublayers from a layer with fast enumeration

2009-11-30 Thread Matt Neuburg
as if the fast enumeration itself were somehow illegal. Why? Thx - m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.h

Re: removing all sublayers from a layer with fast enumeration

2009-11-30 Thread Matt Neuburg
rrayWithArray: myview.layer.sublayers]; for (CALayer* sub in arr) [sub removeFromSuperlayer]; and I still got the same crash. Enumerating thru arr with objectAtIndex: causes no problem; it's the fast enumeration that's troublesome. m. > On Nov 30, 2009, at 2:23 PM, Matt Neuburg wrote: >

Re: removing all sublayers from a layer with fast enumeration

2009-11-30 Thread Matt Neuburg
does show we're in something called NSFastEnumerationMutationHandler. Is it worth filing a bug, asking for some sort of log message? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive

Re: totally baffled by "odoc" apple event failing on launch

2009-12-01 Thread Matt Neuburg
vent debugging. I'm guessing that they are not, and that this is the problem. But I don't know *why* not. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http

Re: Some questions/problems regarding CALayers

2009-12-01 Thread Matt Neuburg
"square" a given Piece is in. So as the Board redraws / resizes, it redraws the squares and resizes / repositions each Piece accordingly. (Or if you want each Piece to resize / reposition itself, provide a method so that it can ask the Board where it needs to be.) m. -- matt neuburg, p

Re: totally baffled by "odoc" apple event failing on launch

2009-12-02 Thread Matt Neuburg
handling them by then) Are you doing something else odd at startup which might require this workaround? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http:/

Re: totally baffled by "odoc" apple event failing on launch

2009-12-03 Thread Matt Neuburg
"odoc" apple event is NOT failing on launch. It's just that you are getting it sooner (or later?) than you are hoping for it. Is that right? Thx - m. > >On Dec 2, 2009, at 11:06 AM, Matt Neuburg wrote: > >> On Tue, 1 Dec 2009 15:05:19 -0800, "David M. Cotter"

Re: Application crashing on iPod Touch, not on iPhone

2009-12-03 Thread Matt Neuburg
dency on whether there's a network. The dependency on the network should come later, like when you actually try to download something! And Apple's own examples do no exception checking around [NSURL urlWithString]. So if you're certain this is the problem, I would suggest filing a bugrep

Re: NSSlider's setAltIncrementValue: broken?

2009-12-03 Thread Matt Neuburg
he slider area, not what happens when you drag the knob. Normally when you click in the slider area, the slider jumps to where you clicked; with setAltIncrementValue, it jumps the amount you set as the value (when you hold down the Option key and click in the slider area). m. -- matt neuburg

Re: Why is "set" a class method of NSColor?

2009-12-04 Thread Matt Neuburg
have a vague feeling that, once again, it's a nomenclature thing. It should really have a name that makes clear you're setting something about the graphics context (like setForContext or something)... You might want to file a bug on the docs for not linking to the drawing guide from where y

seg fault or not?

2009-12-04 Thread Matt Neuburg
with signal 11: Segmentation fault Whom should I believe? Should I worry? And since I can't even get this to break, how can I track it down? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the

Re: Why is "set" a class method of NSColor?

2009-12-04 Thread Matt Neuburg
u're doing (at the price of verbosity, of course). m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf AppleScript: the Definitive Guide, 2nd edition http://www.

Re: NSPopUpButton questions

2009-12-06 Thread Matt Neuburg
On Sat, 5 Dec 2009 20:29:25 -0500, "timm...@gmail.com" said: >The Apple docs for NSPopUpButtons says to avoid accessing it's NSMenu directly because it may need to do housekeeping. Where do the Apple docs say that? I'm thinking there might be some misunderstanding lur

Re: Draw rounded NSImage

2009-12-06 Thread Matt Neuburg
raphicsContexts.html Notice how the isolation of the graphics context surrounds both the clipping and the image drawing. In your example, though, since the clipping and the image are all the drawing you're doing, there's no need to isolate a graphics context in any case. m. -- matt

Re: Bindings question...

2009-12-13 Thread Matt Neuburg
Objects with content? (2) When thinking about what tables "automatically" do, are you taking into account the selection? m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, http://tinyurl.c

pls explain rotated iPhone coordinates to me

2009-12-14 Thread Matt Neuburg
why? What on earth is going on here? Thanks - m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescriptthings _

Re: pls explain rotated iPhone coordinates to me

2009-12-15 Thread Matt Neuburg
On or about 12/15/09 7:00 AM, thus spake "Luke the Hiesterman" : > should be using a rect based on the bounds Will do, thanks! I think this will make a big difference. :) m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai ore

Re: pls explain rotated iPhone coordinates to me

2009-12-15 Thread Matt Neuburg
de/ApplicationEnvironment/ApplicationEnvironment.html#/ /apple_ref/doc/uid/TP40007072-CH7-SW18> m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf AppleScript: the D

Re: pls explain rotated iPhone coordinates to me

2009-12-15 Thread Matt Neuburg
On or about 12/15/09 11:29 AM, thus spake "Luke the Hiesterman" : > You should probably post a sample project which demonstrates this. http://www.apeth.com/example.zip Thanks for any enlightenment! m. > > On Dec 15, 2009, at 9:09 AM, Matt Neuburg wrote: > >>

Re: pls explain rotated iPhone coordinates to me

2009-12-16 Thread Matt Neuburg
now able to use width as width and height as height! :) m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf AppleScript: the Definitive Guide, 2nd edition http://www.tidbit

iPhone Simulator auto-rotation touches detection bug?

2009-12-19 Thread Matt Neuburg
an autorotated-at-startup app. Is this a known bug? Naturally I'm considering submitting a bug report...! m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://

<    1   2   3   4   5   6   7   8   9   >