Re: where are the CALayer struts and springs on iPhone?

2010-09-03 Thread Matt Neuburg
On Fri, 03 Sep 2010 08:44:05 -0700, Matt Neuburg said: >On Tue, Sorry about that. Every once in a while my email program sends out an incomplete message like that, and I don't know why (or even whether the problem is the email program or something further down the line, like the server

missing features in iOS 4 block-based UIView animation

2010-09-08 Thread Matt Neuburg
e animation is about to start. * You can't specify a fixed number of repetitions. I have code that relies on this feature (e.g. a view that shakes its head by vibrating back and forth three times). What are folks doing to compensate? Thx - m. -- matt neuburg, phd = m...@tidbits.com, ht

some no-op animation options?

2010-09-08 Thread Matt Neuburg
OptionLayoutSubviews makes any difference. If anyone has actual examples to show, I'd appreciate it. Thx - 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 App

Re: CALayer instant content update

2010-09-13 Thread Matt Neuburg
d key." (Gibberish, and even more so standing alone as a bulleted item in the middle of the list.) 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.apeth

Re: Is kCAOnOrderOut too good to be true?

2010-09-13 Thread Matt Neuburg
9 PM, Jon Buffington wrote: >> >>> Steven, >>> >>> Did you ever find a solution to the kCAOnOrderOut animation problem? I was >>> frustrated by this problem in the past but gave up as the animation was >>> optional. -- matt neuburg, phd = m...@tidbits.

Re: Timing of UI events

2010-09-13 Thread Matt Neuburg
the time when the event occurred. mach_absolute_time(), or CACurrentMediaTime(), is the time now. 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.apeth

Re: CALayers - printing and flippedness

2010-09-14 Thread Matt Neuburg
grows down but the y-axis grows up. As to interoperability of Mac code with iOS code, my experience is that there isn't any (Mac has NSRect, iOS has CGRect, etc.) so the problem doesn't arise - you're going to have two separate code bases in any case. m. -- matt neuburg, phd =

Re: CALayers - printing and flippedness

2010-09-14 Thread Matt Neuburg
lf purely to core graphics. 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.tidbits.com/matt/default.html#appl

Re: force garbage collection? (NSAppleScript call from Cocoa app)

2010-09-14 Thread Matt Neuburg
#x27;t have a Microsoft list.) m. PS My experience, for what it's worth, is that the solution to Word's slowness during a script is to bring Word to the front and wave the mouse around over the document window while the script runs. I am completely serious about this; try it. --

Re: Scripting Bridge Strange Pauses

2010-09-17 Thread Matt Neuburg
t;these pauses in many scripts It sounds like you may have encountered the Snow Leopard Apple Event Bug: http://db.tidbits.com/article/10643 If so, there are two workarounds: (1) Use appscript, which has a built-in workaround, or (2) update to 10.6.3 or later. m. -- matt neuburg,

DemoMonkey services MIA

2010-09-19 Thread Matt Neuburg
s, so I know the system is aware of them). What might the problem be? Thx - 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

Re: DemoMonkey services MIA

2010-09-19 Thread Matt Neuburg
On or about 9/19/10 3:26 PM, thus spake "Matt Neuburg" : > I downloaded and built the DemoMonkey example and created a document... > > https://developer.apple.com/library/mac/#samplecode/DemoMonkey/Introduction/In > tro.html > > ... but the application's

Re: What's the point of @properties?

2010-09-21 Thread Matt Neuburg
ntax as the way to have an object do something. No, I think that's bollocks. Dot syntax is *exactly* syntactic sugar for calling the accessor, and using it correctly depends upon keeping that fact firmly in mind. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/&g

Re: Animated mask for UIViews?

2010-09-21 Thread Matt Neuburg
And one can animate aspects of layer drawing, so the answer would seem to be yes; for example, if the mask were shaped like an ellipse, you could animate a change in the size of the ellipse. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an auto

Re: How to double tap event on a UIButton

2010-09-21 Thread Matt Neuburg
On Mon, 20 Sep 2010 06:38:32 +0200, " Jonathan Chac?n " said: >What can I manage the double tap gesture on a UIButton? Make a view that *looks* like a button and use gesture recognizers. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a to

Re: How to double tap event on a UIButton

2010-09-21 Thread Matt Neuburg
nse, and then when the second tap arrives, if it's within a short time of the first tap, cancel the delayed performance and do the double-tap response instead. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScri

Re: Animating a non-standard layer property

2010-09-22 Thread Matt Neuburg
by declaring them @dynamic) they cannot be animated and you will see the symptoms you see. In your -drawInContext: method you can then query the property to get the current value. >> -- >> David Duncan -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com

Re: What's the point of @properties?

2010-09-22 Thread Matt Neuburg
fact, let alone one having the same name. 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.apeth.net/matt/default.html#applescriptthings

Re: What's the point of @properties?

2010-09-22 Thread Matt Neuburg
the corresponding instance if it exists - even though there is no ivar with that name. If you don't believe me I'll send you a project that demonstrates. Indeed, I remember when this was the *only* way to define an outlet name; there was no such thing as the IBOutlet hint in

cool way to call super?

2010-09-23 Thread Matt Neuburg
Is there a cool dynamic Cocoa way to call super with the same parameters that came to me? I guess what I'm looking for is a pre-configured invocation of the current command where I can just change the target to super. No big deal, but I just wondered, since Cocoa is cool and dynamic. m. --

Re: Question in regards to UITableView

2010-09-24 Thread Matt Neuburg
o do this, and especially to find your way back. >Is >it okay to use two UITableViews to pull off all the data digging here? >(animate back and forth and reloading data for them)? Why not? Table views have nothing to do with their data. They are view, not model. m. -- matt neuburg, phd =

Re: To make an application start everytime when another program starts

2010-09-24 Thread Matt Neuburg
nched / frontmost I use Carbon Events. As you say, NSWorkspace may now supply this functionality, but it didn't at the time. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Gu

Re: "Settings" button in UITableView

2010-09-24 Thread Matt Neuburg
have the button be there, and just show or hide it when I provide the cell, according to some state variable. Call reload data to ask Cocoa to ask you to provide cells again. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool

Re: "Settings" button in UITableView

2010-09-25 Thread Matt Neuburg
r that only the visible cells (-visibleCells) need animating. 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: What would cause my animation's delegate methods to not be called?

2010-09-26 Thread Matt Neuburg
lem, but since you show no code, one has to guess... 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.apeth.net/matt/default.html#applescr

Re: [ANN] AppKiDo 0.985

2010-09-26 Thread Matt Neuburg
On Sun, 26 Sep 2010 00:50:57 -0400, Andy Lee said: ><http://homepage.mac.com/aglee/downloads/appkido.html> > >This should fix the problems at least some folks have been having with the iOS 4.1 SDK. Works for me! Thanks - m. -- matt neuburg, phd = m...@tidbits.com, <http://ww

clearsContextBeforeDrawing a NOOP?

2010-09-26 Thread Matt Neuburg
27;ve said before, I believe that neither UIViewAnimationOptionAllowAnimatedContent nor UIViewAnimationOptionLayoutSubviews has any effect. Again, I'd like to report these as bugs (because they do not in fact do anything), but perhaps someone has a counter-example. -- matt neuburg, phd = m

Re: portable app

2010-09-29 Thread Matt Neuburg
On Sep 29, 2010, at 12:02 PM, cocoa-dev-requ...@lists.apple.com wrote: > Message: 6 > Date: Wed, 29 Sep 2010 17:48:43 +0100 > From: Amy Heavey > Subject: portable app > To: cocoa-dev@lists.apple.com > Message-ID: > <5bd34c42-c5df-42a4-a054-9f6f9376d...@willowtreecrafts.co.uk> > Content-Typ

Re: Seriously confused by behavior of NSAffineTransform

2010-10-02 Thread Matt Neuburg
ke it might be more like what you're talking about, except that then you'd be saying CGAffineTransform, not NSAffineTransform. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edit

Re: Hitting Layers

2010-10-02 Thread Matt Neuburg
x27;s hitTest requires a point in *superlayer* coordinates. So I'm wondering if you're getting that wrong (as people often do, because it's so surprising), and maybe there's something about how you're obtaining mouseloc (your original point) that masks the issue when you

Re: Flipped NSView + scaled NSAffineTransform = confusion

2010-10-02 Thread Matt Neuburg
black rectangle with a slightly smaller green rectangle in the lower left corner. Go Ye And Do Likewise. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive

Re: clear a CGContextRef in an iPhone app

2010-10-04 Thread Matt Neuburg
I have to wonder why you're going to all this trouble when UIGraphicsBeginImageContext exists. What exactly are you planning on doing, ultimately, with this context? And why do you need to clear the entire thing after you've drawn into it? m. On Mon, 4 Oct 2010 11:34:23 -0700, Rainer Standke said

Re: Confused about floats

2010-10-05 Thread Matt Neuburg
y = y+100; >} > >} > >NSBitmapImageRep *bmpImageRep = [[NSBitmapImageRep >alloc]initWithData: >[targetImage TIFFRepresentation]]; That's another memory leak. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.ti

Re: Confused about floats

2010-10-05 Thread Matt Neuburg
On 10/5/10 10:18 AM, thus spake "Amy Heavey" : >I'm googling Fast Enumeration, but I'm compiling for 10.5, > > Fast enumeration is present in 10.5. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phus

Re: Let the runloop process its queue during a long operation

2010-10-06 Thread Matt Neuburg
On Wed, 6 Oct 2010 15:53:13 +0400, eveningnick eveningnick said: >Hello >I have an application that transforms a very big file, and during that >operation i want to give a chance to user to press Esc and cancel this >transformation. You're going to use a secondary thread and that's that. I would

Re: Let the runloop process its queue during a long operation

2010-10-07 Thread Matt Neuburg
d does not proceed to the next copy until the Finder has finished with it; yet the interface is never frozen and the spinning beachball never appears, because the AppleScript stuff is all happening in the background. This is no different than what the O.P. is talking about. NSOperation ma

Re: init returns nil or raises exception?

2010-10-09 Thread Matt Neuburg
form is now in fact: - (id) init { self = [super init]; if (self) { // do other initialization { return self; } m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Se

Re: [iOS] NSUserDefaults-backed Properties

2010-10-09 Thread Matt Neuburg
all synchronize; as long as your app exits in good order, your defaults will be written to disk (and this is just as true in a multi-tasking world). If you don't crash, you won't lose any data. If you do crash, there's another problem and you should concentrate on fixing it. m. -- ma

Re: UITableViewCell Display Issue

2010-10-09 Thread Matt Neuburg
iew and back in view again, it >looks the right way. Can anyone tell me what I'm doing wrong? The problem could be that the default UITableViewCell implementation of setSelected:animated: messes with opacity. You might need to provide a custom cell subclass, override setSelected:animated:,

Re: Problem using dictionary

2010-10-09 Thread Matt Neuburg
+initialize. >>NSString *key=[NSString stringWithFormat:@"%...@.%@",page,property]; >>NSLog(@"%@",key); >>NSLog(@"%@",[[dict valueForKey:key] description]); >>NSLog(@"%@",[[[dict valueForKey:page] valueForKey:property] >>description

Re: NSScanner Failing with EXC_BAD_ACCESS

2010-10-15 Thread Matt Neuburg
nitialize when you declare, because otherwise your value could be nonsense and can't be logged. So, minimally, you'd say this: NSString *theScannedString = nil; Now you can log that value successfully, even if nothing gets written into it. Then you can track down *why* nothing is getting writte

Re: The dreaded "UITableView won't refresh" problem: SOLVED.

2010-10-15 Thread Matt Neuburg
(or, as you say, an app deletion, which can have the same effect). 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#applescriptthing

Re: NSScanner Failing with EXC_BAD_ACCESS

2010-10-16 Thread Matt Neuburg
) m. > >No – initializing theScannedString doesn't excuse you from checking >the return value of -scanCharactersFromSet:. See Bill's response. Point taken! (And not the first time he's made this clear, either.) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth

Re: Smooth scrolling in NSScrollView

2010-10-16 Thread Matt Neuburg
we do it in 10.6. There is a very good discussion of issues that slow scrolling in the 2nd WWDC Core Animation talk. Of course some solutions may be used there that you can't use on 10.5, so it's not entirely germane, but the debugging technique using Instruments may be helpful to you. m

Re: MutableArray and TableView Question

2010-10-19 Thread Matt Neuburg
u'll be stopped where it happened and you'll be able to examine the call stack to *see* what's causing the problem. If that doesn't work, add breakpoints of your own and use stepping to figure out where the problem is. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.ap

Re: [iPhone] UIButton and Device Orientation problem in MainWindow.

2010-10-28 Thread Matt Neuburg
ib. Read up on view controllers in the docs, which are excellent on this point. You may have to unwind the whole way your interface is constructed in order to do this, so start with just the button and add stuff back after you get that working. m. -- matt neuburg, phd = m...@tidbits.com, <h

Re: Dictionary keyed by a few sparse integers?

2010-11-07 Thread Matt Neuburg
also override the inherited designated initializer to call your new designated initializer. The docs are also mind-numbingly tedious in their explanation of this point, which can cause one to ignore it. Don't! Graham's experience shows why. m. -- matt neuburg, phd = m...@tidbits.com

Re: Problem using zPosition on layer backed views

2010-11-07 Thread Matt Neuburg
#x27;s layers. There is nothing you can do about this, and if you think you can, what you're missing is a fundamental understanding of what a layer is. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: t

Re: UITableView Selection

2010-11-07 Thread Matt Neuburg
that info from the user defaults so this won't happen again later as the app continues to run and the data gets reloaded again. t. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an au

Re: Best way to get outlet from one NIB to another NIB

2010-11-07 Thread Matt Neuburg
that's when all the pieces are in your hands. 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://w

Re: Move UINavigationBar down?

2010-11-07 Thread Matt Neuburg
you can put a navigation bar in an interface anywhere you want and use it however you like. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Defi

Re: CAShapeLayer curved path animation

2010-11-07 Thread Matt Neuburg
n supply your own animatable properties is one of the coolest and least known features of layers. 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: Understanding the Run loop idea and the updating of controls during long operations

2010-11-07 Thread Matt Neuburg
til the CoreData back end has finished loading up the data. 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: CATransaction setCompletionBlock - Nested Transactions bug?

2010-11-08 Thread Matt Neuburg
k property, so you *have* to use CATransaction to get one. 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://w

Re: Synchronizing iOS redraw

2010-11-08 Thread Matt Neuburg
iately when the CATransaction class method +commit+ is called, without waiting for the redraw moment. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Gu

Re: Test for launched from (Apple)Script?

2010-11-10 Thread Matt Neuburg
t think there's any way to find that out because in a Cocoa app by the time your code runs that's already happened. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide

Re: Catching errors with MPMoviePlayerController

2010-11-14 Thread Matt Neuburg
examine for MPMovieFinishReasonPlaybackError. 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: More stoopid questions...

2010-11-14 Thread Matt Neuburg
ause this instance is the app's delegate, so it receives applicationDidLaunch) to make the window appear. 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: [iPhone] Toolbar button and "Touch Down"

2010-11-16 Thread Matt Neuburg
ist]), and then setting the >> target/action of the barButtonItem itself to nil? -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Seco

Re: [iPhone] Toolbar button and "Touch Down"

2010-11-17 Thread Matt Neuburg
u don't understand how to select the button itself using the design window, then use List View in the nib's main document window and drill down until you find it. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Amo

Re: [iPhone] Toolbar button and "Touch Down"

2010-11-17 Thread Matt Neuburg
On Nov 17, 2010, at 10:25 AM, Jonathon Kuo wrote: > On Nov 17, 2010, at 8:47 AM, Matt Neuburg wrote: >> >> On Nov 16, 2010, at 9:26 AM, Jonathon Kuo wrote: >> >>> I agree: that's how I expected it to work, too, but that's not how it does >>>

Re: [iPhone] Toolbar button and "Touch Down"

2010-11-17 Thread Matt Neuburg
erform your experiments there, in a much smaller, simpler environment. 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 ed

Re: Why UIBarButtonItemStyleBordered?

2010-11-19 Thread Matt Neuburg
ant a border drawn around it? Then draw a border around 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: [iPhone] Make UIWebView content empty before loading next page

2010-11-19 Thread Matt Neuburg
that.. can somebody kindly point some way.. I have not tried this myself, but keeping in mind that views are not redrawn until after your code finished running, I'd suggest trying delayed performance to give the view a chance to empty itself before doing the load request. m. -- matt neubur

Re: NSNotificationCenter not always working?

2010-11-19 Thread Matt Neuburg
> Date: Fri, 19 Nov 2010 11:58:35 -0800 > From: Laurent Daudelin > Subject: NSNotificationCenter not always working? > > Is there a way to debug why the same "postNotificationName:object:userInfo:" > would not work the second time it's called? In a word - no. This is one of the worst aspects o

Re: Little suggestion for many many images app, best approach.

2010-11-20 Thread Matt Neuburg
this is correct > how can I make the event go to the UIView bellow the tap when there is/was a > UIView on top of it. I suggest you start by reading the docs. The rules for touch handling, and what settings and tricks you can use to customize it, are pretty thoroughly expla

Re: Little suggestion for many many images app, best approach.

2010-11-20 Thread Matt Neuburg
he purpose of this method is to let you simulate touchability for a sublayer. But, as I said before, you won't do this unless performance forces you to do it; if you need all those pictures to be touchable, it's going to be a lot easier if they are all views. m. -- matt neuburg, phd

Re: Radio dial buttons [iOS] -sheesh

2010-11-26 Thread Matt Neuburg
r, try AppKiDo, which combines a class browser and documentation display. 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.

Re: Scroll/Position Image in Scrollview that is smaller than the Scrollview

2010-11-26 Thread Matt Neuburg
l view's idea of how zoomed the content is, so you have to give it new maximum-minimum zoom values to compensate and track the "real" zoom value yourself. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = c

Re: Change duration of a running CAAnimation?

2010-11-26 Thread Matt Neuburg
ot;in the middle"; also, observe that +repeatCount+ is a float (it does not have to indicate an integral number of repetitions). m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript:

Re: Change duration of a running CAAnimation?

2010-11-26 Thread Matt Neuburg
mationDidEnd: finished:). In this way I can > fully control the fromValue and toValues of each loop of the > animation. It sounds as if looking at Apple's Metronome example at the start would have helped you here. :) m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/mat

Re: UIWindow orientation

2010-12-01 Thread Matt Neuburg
troller that responds to rotation of the device as appropriate. That way, the coordinate system of the whole interface rotates to compensate, and you get your location in terms of that rotated coordinate system (or something further down the hierarchy). This is true of *any* app. Always use a ro

Re: accelerometer puzzle

2010-12-01 Thread Matt Neuburg
a protocol is optional, then (1) why should the compiler care whether we formally adopt the protocol or not, and (2) what sort of "error checking" could the compiler do? In other words I'm suggesting that there should be no warning unless the protocol has required methods. m. -

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-01 Thread Matt Neuburg
le: (2) table view controller's initWithStyle: (3) the style pop-up menu in the nib ??? 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/

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread Matt Neuburg
hat you're stumbling over your feet in part because you insist on doing everything in nibs. In my view, nib instantiation and configuration of view controllers just makes it harder to understand what's going on. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ p

Re: Works in 4.1 but not 4.2 ...

2010-12-02 Thread Matt Neuburg
to >>> uncaught exception 'NSInvalidArgumentException', reason: '-[UIView >>> setController:]: unrecognized selector sent to instance 0x9814950' m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorel

drawing thread-safety in iOS

2010-12-02 Thread Matt Neuburg
WDC videos we see CATiledLayer being drawn to via drawRect: with UIKit. So what's true? And how can I find out precisely what is and isn't thread-safe? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScri

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread Matt Neuburg
pied by a table (as in my TidBITS News app, where there's a UILabel and a table), you *can't* use UITableViewController. 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://tin

Re: navigation bar tint color issue on iOS 4.2

2010-12-03 Thread Matt Neuburg
from splitViewController:willShowViewController:invalidatingBarButtonItem:): [((UINavigationController*)aViewController).navigationBar performSelector:@selector(setTintColor:) withObject:[UIColor greenColor] afterDelay:0.1]; And so on. But please, pick a nicer color. :) m. -- matt neuburg,

Re: navigation bar tint color issue on iOS 4.2

2010-12-03 Thread Matt Neuburg
t figured out exactly how it's done; I find I can customize the look of the nav bar when the view is in the split view or when the view is in the popover but not both, and I don't know why. But obviously this is something the framework would rather you didn't do. :) m. -- matt ne

Re: navigation bar tint color issue on iOS 4.2

2010-12-05 Thread Matt Neuburg
On Fri, 3 Dec 2010 15:16:58 -0500, Phillip Mills said: >On 2010-12-03, at 3:10 PM, Matt Neuburg wrote: > >> But obviously this is something the framework would rather you didn't do. :) > >...and if the framework and IB had agreed that it was a bad idea, I probably >wou

Re: Source files are not shown in the Xcode

2010-12-08 Thread Matt Neuburg
v. So I just wonder if I should >leave it alone or I should import those >files into the project? >Thanks I would delete them, since they are just confusing you. They are not in the project, so they are just files lying around in the folder and serve no purpose on earth (except perhaps t

Re: SearchBar doesn't display at all

2010-12-08 Thread Matt Neuburg
ew and nothing else, that's what you'll see when it's pushed onto the stack. If you want it to have a search bar, give it a search bar. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool!

Re: SearchBar doesn't display at all

2010-12-08 Thread Matt Neuburg
hen by default creates its own table view. So the table view you end up seeing is not the table view in the nib. This has fooled many people (including me). m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 Ma

Re: SearchBar doesn't display at all

2010-12-08 Thread Matt Neuburg
ass? It's up to you to tell it where its nib is. UITableViewController does *not* inherit the automagic ability of a UIViewController to find its nib without being told its name. (To be sure, I regard this as a bug in the framework, but that's a different story.) m. -- matt neuburg

Re: [iOS] How to add push animation to view controller without a navigation controller

2010-12-11 Thread Matt Neuburg
rom a navigation controller. If so, then why not have a navigation controller? The navigation bar doesn't have to show, so no one will ever know. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Defin

Re: iOS multiple text colors in an editable text field

2010-12-11 Thread Matt Neuburg
n attributed string is one line of code! However, that doesn't solve your problem. The solution is probably to assign yourself a different problem; there's no styled editable text on iOS and that's that. It doesn't pay to fight against the framework. m. -- matt neuburg, phd = m.

Re: iOS multiple text colors in an editable text field

2010-12-12 Thread Matt Neuburg
On Sun, 12 Dec 2010 14:05:38 +1100, BareFeetWare said: >1. Apple Mail. If you reply to a messages containing multi-colored text, you >can edit that text. > >So my question is, how do they do it? Perhaps they have access to API that we don't... m. -- matt neuburg, phd = m...@t

convert CFRange to NSRange?

2010-12-12 Thread Matt Neuburg
I feel like I'm missing something. I can't seem to typecast as CFRange to an NSRange. I know I can pull a CFRange apart and reassemble it as an NSRange, but shouldn't there be a simpler way? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>

assign property behaves differently from simple instance variable???

2010-12-13 Thread Matt Neuburg
the problem. So it appears that the problem is that I'm synthesizing accessors for the *name* "firstResponder". It is as if this name was being used under the hood in some way I'm unaware of, and synthesizing an accessor breaks its use. But how can *that* be? -- matt neuburg

Re: convert CFRange to NSRange?

2010-12-14 Thread Matt Neuburg
On Sun, 12 Dec 2010 08:04:55 -0800, "John C. Randolph" said: > >On Dec 12, 2010, at 7:34 AM, Matt Neuburg wrote: > >> I feel like I'm missing something. I can't seem to typecast as >> CFRange to an NSRange. I know I can pull a CFRange apart and >

Re: assign property behaves differently from simple instance variable???

2010-12-14 Thread Matt Neuburg
On Mon, 13 Dec 2010 11:31:38 -0800, Wim Lewis said: > >On 13 Dec 2010, at 11:01 AM, Matt Neuburg wrote: >> How can this seemingly minor change make such a big difference? I'm not even >> *using* the synthesized accessor! Yet its mere presence breaks the project. >>

Re: assign property behaves differently from simple instance variable???

2010-12-14 Thread Matt Neuburg
On Dec 14, 2010, at 10:01 AM, Keary Suska wrote: > On Dec 13, 2010, at 12:01 PM, Matt Neuburg wrote: > >> self->firstResponder = tf; > > Well, the proper syntax is self.firstResponder . Using the deference is > probably a back-door way to access the class struct

Re: iOS multiple text colors in an editable text field

2010-12-14 Thread Matt Neuburg
akes me wonder whether the protocol is somehow insufficient to work as advertised. Otherwise, why would Apple withdraw the only example illustrating it? And why wouldn't they talk about it at WWDC? Still, this is clearly the direction to go. m. -- matt neuburg, phd = m...@tidbits.com, <

Re: cannot access __block variable of array type inside block

2010-12-15 Thread Matt Neuburg
On Tue, 14 Dec 2010 19:42:32 -0800, Jonathon Kuo said: >Thanks, Dave! That works, though I don't understand why... We've been down this road. <http://www.cocoabuilder.com/archive/cocoa/289708-arrays-as-block-variables.html> m. -- matt neuburg, phd = m...@tidbits.com, &l

Re: Layer hosting views, geometryFlipped, and subviews

2010-12-17 Thread Matt Neuburg
sibling views are not permitted to overlap (the only way to show one view "in front" of another is to make it a subview of that view). Everything that an NSView does is based on those assumptions. As Kyle said, the problem is the integration of Core Animation into that worl

Re: UINavigationController in Popover

2010-12-17 Thread Matt Neuburg
ze to allow for its own nav bar, and passes this on up to the popover controller, which sizes the popover correctly. (If you're not seeing that, it may be because you're testing under 3.2; I have no idea.) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/&g

Re: Text display consistency

2010-12-22 Thread Matt Neuburg
ss-platform code compatibility (Mac OS X <-> iOS) is pretty well forlorn, and I'd recommend just using higher-level mechanisms on both and dealing with the doubled code base. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease

Re: CALayer and pixel alignment

2010-12-22 Thread Matt Neuburg
oatValue]; > >CGRect drawingRect = CGContextConvertRectToUserSpace(gcontext, deviceRect); > >CGContextSetRGBStrokeColor(gcontext, 0.0f, 0.0f, 0.0f, 1.0f); >CGContextSetRGBFillColor(gcontext, 1.0f, 1.0f, 1.0f, 1.0f); > >CGContextAddRect(gcontext, drawingRect); >CGContextDrawPath(gcontex

Re: UISearchDisplayController in UIToolbar on iPad

2010-12-24 Thread Matt Neuburg
enough to constitute instructions so that someone else can perform the same experiment. Otherwise no one even knows that the problem really is. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = coo

<    1   2   3   4   5   6   7   8   9   >