Re: UISearchDisplayController in UIToolbar on iPad

2010-12-25 Thread Matt Neuburg
;s good that you were able to solve your problem, but if all the relevant information is kept secret, that's the *only* way your problem is going to be solved; the question equates to an empty exercise. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anth

Re: UISearchDisplayController in UIToolbar on iPad

2010-12-25 Thread Matt Neuburg
ToolbarSearch example for a manual version of this behavior; personally, I'd rather do it that way! 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

Re: UITableViewCell showsReorderControl does nothing

2011-01-02 Thread Matt Neuburg
. It >doesn't matter however what I set showsReorderControl on my UITableViewCells >to, YES, or NO, the reorder control shows every time the table goes into >editing mode. Don't touch (1). Use (2) to prevent the reorder control from appearing on individual rows. m. -- matt neuburg, phd

Re: Funky icons in UITabBar

2011-01-02 Thread Matt Neuburg
a channel. A good image app will allow you to do that. 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 UISearchDisplayController how to handle memory warning

2011-01-02 Thread Matt Neuburg
controlled by the UISearchDisplayController. Now convince yourself that this minimal project does / does not have the problem you describe. If it doesn't, you know it's due to something else you're doing differently in the real project. m. -- matt neuburg, phd = m...@tidbits.com

Re: UITableViewCell showsReorderControl does nothing

2011-01-03 Thread Matt Neuburg
> but it doesn't seem to do anything. > > On 03-Jan-2011, at 5:14 AM, Matt Neuburg wrote: > >> On Fri, 31 Dec 2010 21:52:29 +0800, Roland King said: >>> I've read the UITableView / UITableViewCell documentation for reordering >>> several times now

Re: Missing connection

2011-01-04 Thread Matt Neuburg
On Jan 3, 2011, at 8:35 PM, John Brownie wrote: > On Tue Jan 04 2011 13:56:58 GMT+1000 (PGT) Matt Neuburg wrote: > >> You don't have a method called setStickyModifiers:, do you? If so, it will >> be called at nib-loading time with the button instance as parameter. When a

Re: Question regarding popoverControllerDidDismissPopover: delegate method

2011-01-06 Thread Matt Neuburg
oing anything, plus, sending it a message telling it to dismiss its popover will do no harm. 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: Stupid png icons

2011-01-06 Thread Matt Neuburg
o what you need done. You want something that can use e.g. the greyness of each pixel in the original image to determine the greyness of each pixel in the alpha mask. Photoshop or GIMP will do this fairly handily. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a

Re: UIDatePicker displays incorrect day in UIDatePickerDateAndTime mode for zones 12+ hours ahead of defaultZone

2011-01-10 Thread Matt Neuburg
timer can cause a crash. I'd say submit a bug, though I don't see how that's likely to help (all my bugs are either open or archived as duplicates, but closed - i.e. fixed - seems to be an unknown concept). m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt

Re: Custom path animation for CAShapeLayer

2011-01-10 Thread Matt Neuburg
tunity to redraw the path appropriately. 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: Overriding target and action of backBarButtonItem

2011-01-14 Thread Matt Neuburg
o back. However, you can perform other trickery that allows you to customize what happens at that moment. You can change beforehand what the user will go back *to*, and you can hear through a notification when the user does go back. Any further advice would depend upon your explaining what you

Re: UIEvent timestamp clarification

2011-01-14 Thread Matt Neuburg
mestamp is probably reproduced as the timestamp on the UIEvent, in which case you are worrying needlessly. But if that timestamp is NOT the timestamp on the UIEvent, you can't access it, so you are still worrying needlessly. :) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.

Re: NSSegmentedControl Label

2011-01-14 Thread Matt Neuburg
read the documentation: http://developer.apple.com/library/mac/#documentation/cocoa/Conceptual/SegmentedControl/Articles/SegmentedControlCode.html m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive

Re: Question about split view

2011-01-16 Thread Matt Neuburg
way, what I'm suggesting is that you try that sort of thing, to see if you can prevent the split view and its subcontrollers from having their views unloaded. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + a

Re: Why can't a modal view controller present another in viewDidLoad?

2011-01-16 Thread Matt Neuburg
; window at that time, and presenting a modal vc on a vc whose view is not in >> a window does not make sense. Perhaps viewDidAppear is what you were looking >> for. Or just use delayed performance. I use delayed performance a *lot*. Like whipped cream, it covers a multitude

Re: NSSegmentedControl Label

2011-01-16 Thread Matt Neuburg
>>>> On 1/14/11 12:28 PM, koko wrote: >>>>> Thanks Matt but the documentation is no help whatsoever. I read it. >>>>> >>>>> The question remains ... What is the recommended manner to put text >>>>> and graphic in one segment of an NSSegm

Re: Get iphoto scripting bridge handle without starting iphoto?

2011-01-16 Thread Matt Neuburg
vents. That is what inter-application communication *is*. See chapter 3 of my AppleScript book. 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/

Re: Why can't a modal view controller present another in viewDidLoad?

2011-01-17 Thread Matt Neuburg
. m. > On Jan 16, 2011, at 6:46 PM, Matt Neuburg wrote: > >> On Sun, 16 Jan 2011 13:47:06 -0800, G S said: >>> On Sun, Jan 16, 2011 at 11:47 AM, Luke Hiesterman >>> wrote: >>>> viewDidLoad is called the first time the view property of the vc is >>

Re: Question about split view

2011-01-17 Thread Matt Neuburg
n have to fudge and put up clumsy boolean flags to work out where you are, always filled with trepidation that the undocumented implementation details may change without notice. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = c

Re: Gestures

2011-01-17 Thread Matt Neuburg
r.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/HandlingTouchEvents/HandlingTouchEvents.html ... and you'll say you knew about this but you wanted to do it some other way. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an au

Re: Gestures

2011-01-17 Thread Matt Neuburg
he documentation before asking a question; you might find the answer and save bandwidth. 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

Re: Tiling, applying it in my app.

2011-01-22 Thread Matt Neuburg
On Fri, 21 Jan 2011 23:04:21 +0100, Gustavo Pizano said: >So here are my only thought... > >Get a bigger image and when zooming getting the image with the correct scale. Exactly so. See the PhotoScroller example. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/m

Re: printing a different representation than what is on the screen

2011-01-22 Thread Matt Neuburg
ive/cocoa/181559-printing-database-report.html#181739 http://www.cocoabuilder.com/archive/cocoa/175898-trouble-with-knowspagerank.html#175913 http://www.cocoabuilder.com/archive/cocoa/115096-building-and-printing-tables.html#115128 m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apet

Re: Tiling, applying it in my app.

2011-01-22 Thread Matt Neuburg
the details of your implementation. 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#app

Re: starting with Cocoa!

2011-01-22 Thread Matt Neuburg
alendar Calendar Database Calendar Interface Mail Mail Message SMS Message Maps Presenting a Map Annotations Overlays Current Location To be continued... m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelea

Re: lots of find/replace in text file

2011-01-24 Thread Matt Neuburg
lar expressions and blocks. (2) A common trick is make the text file a format string (i.e., containing a lot of %@) and just hand it to stringWithFormat along with all the substitutions. Badda bing badda boom. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes an

Re: lots of find/replace in text file

2011-01-25 Thread Matt Neuburg
On Jan 24, 2011, at 6:54 PM, Kyle Sluder wrote: > On Jan 24, 2011, at 6:02 PM, Matt Neuburg wrote: > >> >> (2) A common trick is make the text file a format string (i.e., containing a >> lot of %@) and just hand it to stringWithFormat along with all the >> s

Re: [iPhone] can't get views not to slide off by the height of the status bar

2011-01-25 Thread Matt Neuburg
ous view controllers. If you want to keep those views in nibs in order to save memory until you need them, fine, but you'll have to load those nibs yourself and extract the views from them yourself and manage those views yourself. m. -- matt neu

Re: lots of find/replace in text file

2011-01-25 Thread Matt Neuburg
y. I was, if you recall, gently prodding at the OP's desire for "efficiency" in performing a series of substitutions. You've gone in completely the opposite direction from that - and, I think, rightly so. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>

Re: [iPhone] can't get views not to slide off by the height of the status bar

2011-01-25 Thread Matt Neuburg
*not* want a "just do this" answer; you wanted a more general explanation of what was causing this issue. I provided one, and you immediately rejected it, and abandoned your stated principles and contented yourself with your own "just do this" answer, ending up no wiser than b

Re: [iPhone] can't get views not to slide off by the height of the status bar

2011-01-25 Thread Matt Neuburg
ow the modal interface; you'd populate it with the data and appropriate tabs for the particular experiment the user is about to see. 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: [iPhone] can't get views not to slide off by the height of the status bar

2011-01-26 Thread Matt Neuburg
enerally. This is a framework. To code, don't fight the framework: *use* the framework. And the way to use the framework is to let the framework use you. Do what it wants and expects. ("Do not taunt Happy Fun Ball", as we used to say in regard to a different framework.) m. -- matt neub

Re: iOS Setting frame size for MKAnnotationView

2011-01-27 Thread Matt Neuburg
awing of the pin). And since you are using the built-in pin-drawing annotation class, you can't even really customize that (except to set the color of the pin). m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an aut

Re: Delay select recognition

2011-01-27 Thread Matt Neuburg
feasible, and even Apple often fails to obey this rule (as witness the latency when tapping a link in Mobile Safari, caused by wait to see whether the user is about to double-tap to zoom). m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an au

Re: Printing a View

2011-01-29 Thread Matt Neuburg
ws that can speak up and say "But don't divide *me*!" Another, obviously, is to keep a record of where you put everything in the view when you constructed it, and use that record to do the necessary arithmetic to answer the framework's questions. m. -- matt neuburg,

Re: (id) issue, passing different types during initWith:(id)type

2011-01-29 Thread Matt Neuburg
'struct >NSString *' when passing argument 1 of 'initWithString:' from distinct >Objective-C type The problem is that the name "initWithString:" is taken. Pick another name. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.a

Re: Help Book authoring tool?

2011-01-31 Thread Matt Neuburg
http://www.apeth.com/RubyFrontierDocs/ 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: Tab bar controller inside a navigation controller, how to adjust the view height

2011-01-31 Thread Matt Neuburg
erface. A solution that works, and that will avoid the problem you're having, is to present the tab bar interface modally. If you're not willing to do that, then you might try to implement didReceiveMemoryWarning and just return - thus preventing the view from being unloaded. m.

Re: UIKit-additions and class references

2012-03-08 Thread Matt Neuburg
of the NSObject documentation, sitting all by itself on the _NSObject UIKit Additions Reference_, where you're extremely unlikely to discover it! m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autor

Re: Why are 2 Terminal windows opening with NSAppleScript?

2012-03-08 Thread Matt Neuburg
t; >[terminal executeAndReturnError:nil]; It actually might help you to read my AppleScript book! See p. 278 on the meaning of launch and on what applications do when they are launched implicitly by a tell block. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>

Re: @-directives

2012-03-08 Thread Matt Neuburg
;@property >@synthesize >@try >@catch >@finally >@autoreleasepool >@synchronized And let's not forget humble @"". m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autore

Re: Why so many public properties all up in my grizzle?

2012-03-19 Thread Matt Neuburg
file so you can do that - though, to be sure, the templates do some other memory management stuff that I don't agree with. Now, of course with ARC things are greatly simplified, and they're going to be simplified even more when synthesis of accessors is the default. Also I wish nonatom

Re: Why so many public properties all up in my grizzle?

2012-03-19 Thread Matt Neuburg
t the feature where you can drag from an ivar to the nib editor to form an outlet might not work (though now, I believe, it does). -- 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/produ

Re: There's obviously something I don't understand about NSDate.

2012-03-19 Thread Matt Neuburg
gt;Thanks for any insight! http://www.apeth.com/iOSBook/ch12.html#_memory_management The mistake you're making here is *exactly* the mistake marked with the comment "in non-ARC code this would be a bad idea". Of course ARC relieves you of such worries. And so does passing thru a prope

Re: There's obviously something I don't understand about autorelease.

2012-03-19 Thread Matt Neuburg
that this thing has an elevated retain count and needs release later. It's not very nice to expect a beginner to know that "copy" *also* means that. If you're copying, you're taking ownership, and "owning-copying" would remind you of that. m. -- matt neu

Re: Why so many public properties all up in my grizzle?

2012-03-19 Thread Matt Neuburg
e way to do that is to declare them in a class extension and have the subclass (MyImageDownloader) import the file with that class extension. Hope that helps - m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS

Re: There's obviously something I don't understand about autorelease.

2012-03-19 Thread Matt Neuburg
On Mar 19, 2012, at 1:08 PM, Quincey Morris wrote: > On Mar 19, 2012, at 11:48 , Matt Neuburg wrote: > >> As long as we're just dreaming up our own linguistic world, I'd suggest that >> instead of "owning" we say "owning-copying". I've neve

Re: NSAffineTransform on iOS

2012-04-13 Thread Matt Neuburg
iOS programming from Mac OS X programming, certain key differences jumped out at me, and are often explicitly noted in the text. 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: How to use AEKeyword for sending mail from the application?

2012-04-13 Thread Matt Neuburg
event and construct it yourself in code. 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

Re: UINavigationBar appearance not updating

2012-04-13 Thread Matt Neuburg
shed somehow." I suspect (as the book goes on to say) that using UIAppearance to change the look of an existing widget is a misuse. You want to change the way an existing widget looks, just change it. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a to

Re: saving images

2012-07-23 Thread Matt Neuburg
es/blob/master/ch36p912imageIO/p747p766imageIO/ViewController.m 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 __

Re: rotating UIView without changing size

2012-08-18 Thread Matt Neuburg
read the relevant chapter online: 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! Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do

Re: loading UIView in correct orientation

2012-08-18 Thread Matt Neuburg
view too early (in response to the wrong event). 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 mai

Re: How to (slowly) rotate a view

2012-08-18 Thread Matt Neuburg
ion) or view animation. Explained here: 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 5! http://shop.oreilly.com/product/0636920023562.do ___

Re: help indexer or hiutil help

2012-08-18 Thread Matt Neuburg
y the apple-help-authoring list. And be accurate; I'm sure you're not really calling your help index MyHelp.index (are you???). Also, does your help actually *use* anchors? You won't find any unless there are some. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/mat

Re: Constraints Question

2012-10-04 Thread Matt Neuburg
On Sat, 29 Sep 2012 17:52:23 -0400, Eric Gorr said: >I am trying to wrap my head around the auto-layout functionality. There are at least three (count them three) WWDC 2012 videos about this, and I strongly recommend that you touch *nothing* until you have watched all of them. m. -- m

Re: build compatibility for iOS

2012-10-04 Thread Matt Neuburg
er the new system to find out whether your app still works as expected. 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 _

Re: Migrating to iPhone 5 screen size

2012-10-05 Thread Matt Neuburg
landscape launch image (which recently >just came up on Apple's dev beta forums). It also has some pure white ones >that you can keep in a shared location and use for all new projects. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an au

iOS 6 changes in CATextLayer text drawing

2012-10-11 Thread Matt Neuburg
ess that it has to do with changes in the overall text drawing system needed to accommodate styled text throughout. Thx - 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/0

Re: iOS 6 changes in CATextLayer text drawing

2012-10-11 Thread Matt Neuburg
ystem. So now I have a different problem, namely that I don't understand the note at the top of the CATextLayer class docs, since my text drawing in CATextLayer looks the same with or without an opaque background. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anth

Re: iOS 6 changes in CATextLayer text drawing

2012-10-11 Thread Matt Neuburg
On Oct 11, 2012, at 10:54 AM, David Duncan wrote: > On Oct 11, 2012, at 10:27 AM, Matt Neuburg wrote: > >>> (1) CATextLayer in iOS 6 requires an opaque background in order to >>> antialias text. CATextLayer in iOS 5 did not have this limitation; it could >>

Re: iOS 6 changes in CATextLayer text drawing

2012-10-11 Thread Matt Neuburg
On Oct 11, 2012, at 11:38 AM, Corbin Dunn wrote: > > On Oct 11, 2012, at 10:27 AM, Matt Neuburg wrote: > >>> (1) CATextLayer in iOS 6 requires an opaque background in order to >>> antialias text. CATextLayer in iOS 5 did not have this limitation; it could >&

iOS 6 changes in CATextLayer text drawing

2012-10-12 Thread Matt Neuburg
y. So using CATextLayer in a backward-compatible project is going to be a massive headache. 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 RubyFrontie

gesture recognizers and nil-targeted actions

2012-10-17 Thread Matt Neuburg
case of target-action? I'd *love* to be able to send a gesture recognizer's selector message up the responder chain. 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

Re: build compatibility for iOS

2012-10-29 Thread Matt Neuburg
Just to give an example: iOS 6 is drawing text slightly differently from iOS 5, and this is causing my existing code to misbehave when the app runs on iOS 6, even though it is compiled against iOS 5. m. On Thu, 04 Oct 2012 09:59:10 -0700, Matt Neuburg said: >On Sun, 30 Sep 2012 10:03:33 -0

Re: iOS 6 changes in CATextLayer text drawing

2012-10-29 Thread Matt Neuburg
kward compatibility has never been a priority. m. On Fri, 12 Oct 2012 09:46:21 -0700, Matt Neuburg said: >What about the above part of my original question? This is a serious issue, >because it basically means that the text appears in a different place under >iOS 5 vs. iOS 6. You can easi

Re: UITextField adjustsFontSizeToFitWidth doesn't work?

2012-10-29 Thread Matt Neuburg
een fixed in iOS >6. Or am I the problem? You're probably just misunderstanding this property. It has meaning only if numberOfLines is 1. I'm betting it isn't. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease po

Re: iOS 6 changes in CATextLayer text drawing

2012-10-30 Thread Matt Neuburg
012 08:43:14 -0700 > From: Matt Neuburg > > I've filed a bug on this, clearly demonstrating the problem (the very same > code compiled against the very same SDK draws the text in a very different > location); but it is obvious that nothing will be done about it. There ar

CALayer still has no constraints on iOS

2012-10-30 Thread Matt Neuburg
#x27;t see any way out of this. I can probably pretty much do with subviews what I was doing with sublayers, and thus get all the layout constraint's yummy goodness. I'm just surprised that we still have no form of auto-resizing for sublayers, and I'm wondering if I'

is this possible in iOS with constraints?

2012-11-02 Thread Matt Neuburg
I right that this is just impossible, or is there some cool way to do it that I just haven't stumbled on yet? Thx - 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/063

Re: is this possible in iOS with constraints?

2012-11-02 Thread Matt Neuburg
of thing I've tried. m. > > On Nov 2, 2012, at 8:07 AM, Matt Neuburg wrote: > >> Okay, I have this wild and crazy idea. I've got a UITableView with cells >> that have different heights. The cells' content consists almost entirely of >> UILabels, and

Re: is this possible in iOS with constraints?

2012-11-02 Thread Matt Neuburg
sp. Can you expand a little? Thx! - m. > , so no, you won't be able to have the constraints system calculate the > height for you. > > Luke > > On Nov 2, 2012, at 10:10 AM, Matt Neuburg wrote: > >> >> On Nov 2, 2012, at 9:03 AM, Luke Hiesterman w

Re: is this possible in iOS with constraints?

2012-11-02 Thread Matt Neuburg
he interface and ask it to exercise the constraint engine to see where everything ends up. m. On Nov 2, 2012, at 10:41 AM, Luke Hiesterman wrote: > > On Nov 2, 2012, at 10:22 AM, Matt Neuburg > wrote: > >> >> On Nov 2, 2012, at 10:14 AM, Luke Hiesterman wrote: >> &

Re: is this possible in iOS with constraints?

2012-11-02 Thread Matt Neuburg
ayout, and I want the view superview to resize to meet the constraints relating the superview to the label - what's happening instead is that the label is resizing again and the superview is staying the same. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthr

Re: is this possible in iOS with constraints?

2012-11-02 Thread Matt Neuburg
er:nil options:nil]; Cell* cell = objs[0]; UILabel* lab = cell.lab; lab.text = s; [lab sizeToFit]; return [cell systemLayoutSizeFittingSize:UILayoutFittingExpandedSize].height; } Hope that helps someone some day - m. On Nov 2, 2012, at 5:24 PM, Matt Neuburg wrote: > On Nov

NSAttributedString mysteriously truncated too soon

2012-11-08 Thread Matt Neuburg
kByTruncatingTail to NSLineBreakByWordWrapping for the second paragraph. But I don't want to! Because if in fact the text is too long for the height of the actual label, I do want ellipses at the end! So how can I get tail truncation **when the label is too short**, without getting **unneces

Re: NSAttributedString mysteriously truncated too soon

2012-11-09 Thread Matt Neuburg
On Nov 8, 2012, at 4:24 PM, Quincey Morris wrote: > On Nov 8, 2012, at 13:23 , Matt Neuburg wrote: > >> The result (and this is the problem) is that the label truncates after the >> **first line** of the second paragraph ("Four score and seven years ago, our >&g

iOS 6 built-in view controller save-and-restore disappointing

2012-11-09 Thread Matt Neuburg
the new built-in state restoration. In my view, this is a huge omission on Apple's part, greatly reducing the value of this feature. What I was hoping for is for my app to come back just as before, no matter *what* may have intervened since the user backgrounded it. m. -- matt neuburg, ph

Re: Looping CAKeyframeAnimation stop in place?

2012-11-09 Thread Matt Neuburg
On Nov 9, 2012, at 11:54 AM, cocoa-dev-requ...@lists.apple.com wrote: > Date: Fri, 09 Nov 2012 14:53:57 -0500 > From: "Eric E. Dolecki" > //This is resetting the rotation to 0 - a visible jump Think of animation as a kind of movie projected on a screen in front of your actual static drawing.

Re: iOS 6 built-in view controller save-and-restore disappointing

2012-11-09 Thread Matt Neuburg
On Nov 9, 2012, at 1:29 PM, David Duncan wrote: > On Nov 9, 2012, at 11:30 AM, Matt Neuburg wrote: > >> It turns out that the new iOS 6 UIViewController/UIView state restoration >> does not work through a restart of the device! > > > How was the device restarted?

Re: iOS 6 built-in view controller save-and-restore disappointing

2012-11-09 Thread Matt Neuburg
On Nov 9, 2012, at 1:54 PM, David Duncan wrote: > On Nov 9, 2012, at 1:45 PM, Matt Neuburg wrote: > >> >> On Nov 9, 2012, at 1:29 PM, David Duncan wrote: >> >>> On Nov 9, 2012, at 11:30 AM, Matt Neuburg wrote: >>> >>>> It turn

Re: iOS 6 built-in view controller save-and-restore disappointing

2012-11-09 Thread Matt Neuburg
By the way, while I'm complaining, another annoying thing is that the WWDC video on this topic shows a bogus method of testing. The video pretends that killing the app by double-clicking the Home button and clicking the app's "x" to kill it is a way of testing. It is *not*. That will in fact wi

Re: iOS 6 built-in view controller save-and-restore disappointing

2012-11-09 Thread Matt Neuburg
On Nov 9, 2012, at 4:21 PM, David Duncan wrote: > On Nov 9, 2012, at 3:48 PM, Matt Neuburg wrote: > >>>> Why - are you suggesting it *is* supposed to work through a restart??? m. >>> >>> Yes it is. >> >> Well, it doesn't for *any* app t

Re: iOS 6 built-in view controller save-and-restore disappointing

2012-11-09 Thread Matt Neuburg
On Nov 9, 2012, at 5:25 PM, Roland King wrote: > Well that's a bit odd as it did work for the dude in the video and I can't > believe he was faking it somehow He *is* faking it, in the sense that it's not a demo: it's just a Keynote slide. m. -- matt neuburg, ph

Re: Bugs with parentViewController?

2012-11-17 Thread Matt Neuburg
reak as a consequence. This reasoning has a somewhat Kantian a priori ring to it, but it is certainly suggestive that one would do better to doubt oneself rather than the framework in so vital and elementary a matter. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/

auto layout slow on iOS

2012-11-18 Thread Matt Neuburg
ject: @(sz.height)]; }]; self.heights = marr; } return [self.heights[indexPath.row] floatValue]; } 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/06369200

what happens when layout constraint height and frame height conflict (iOS)?

2012-11-26 Thread Matt Neuburg
ater because of this conflict? Thx - 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 TidBIT

Re: what happens when layout constraint height and frame height conflict (iOS)?

2012-11-26 Thread Matt Neuburg
; On Mon, Nov 26, 2012, at 10:46 AM, Matt Neuburg wrote: >> I have noticed by experimentation that if I have a layout constraint on a >> view that sets its height at (say) 36, I can later change the view's >> frame in code to set its height at (say) 50. The view's height

Re: what happens when layout constraint height and frame height conflict (iOS)?

2012-11-26 Thread Matt Neuburg
idea. On Nov 26, 2012, at 3:25 PM, Kyle Sluder wrote: > On Mon, Nov 26, 2012, at 12:57 PM, Matt Neuburg wrote: >> It would help me if you could suggest a method call that would exercise >> the constraint system, e.g. perhaps causing the frame to snap back to >> height 36, t

Re: what happens when layout constraint height and frame height conflict (iOS)?

2012-11-28 Thread Matt Neuburg
On Nov 26, 2012, at 6:30 PM, Kyle Sluder wrote: > On Nov 26, 2012, at 6:04 PM, Matt Neuburg wrote: > >> PS Is there any merit to my suggestion that the runtime should warn if you >> set the frame of a constrained interface object? I really think such a >> war

Re: Help Indexer error - what does it MEAN?

2012-11-28 Thread Matt Neuburg
ror messages in the log, though. It's fine for hiutil to crap out, but it should say *why* it's crapping out. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 5!

Re: dispatch queues are objects now .. right?

2012-11-28 Thread Matt Neuburg
r the rules described here because if you're using ARC (and you'd be crazy not to) you *cannot* dispatch_release. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Progra

NSPointerArray on iOS - truly __weak?

2012-11-30 Thread Matt Neuburg
n test this directly, and I've also been using NSPointerArray successfully to break retain cycles. So are the docs just lying (in a big bold box right at the top), or is this some other kind of weak reference (i.e. somehow weak, but not ARC-__weak)? m. -- matt neuburg, phd = m...@tidbit

Re: How to implement readonly property

2012-12-10 Thread Matt Neuburg
! :) 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 list (Cocoa-dev@lists.apple.com) P

Re: NSPointerArray on iOS - truly __weak?

2012-12-10 Thread Matt Neuburg
Bump. I'd still like to hear about this. The docs have a *huge* box saying that iOS NSPointerArray is not doing __weak references, but it sure looks to me like it is. But I don't know how to test. Thanks for any help. m. On Fri, 30 Nov 2012 07:51:57 -0800, Matt Neuburg said: >

Re: Customizing UIAlert keyboard behavior

2012-12-19 Thread Matt Neuburg
) pressing > Return merely hides the keyboard. What else do I need to do? I don't know what's up with the autocapitalization, but there is no expectation or contract that just because the keyboard dismissal key says Done it will also dismiss a surrounding alert. It's a text fiel

what is the iOS 6 change in gesture recognizers the docs are hinting at?

2013-01-01 Thread Matt Neuburg
on't see how that's relevant. (I hate when the docs are coy like this. These are the docs, people, not a guessing game!) Thx - m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 5! http://shop.oreill

what is the iOS 6 change in gesture recognizers the docs are hinting at?

2013-01-02 Thread Matt Neuburg
don't see > how that's relevant. > > (I hate when the docs are coy like this. These are the docs, people, not a > guessing game!) -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 5!

Core Data and localized sort on iOS

2013-01-03 Thread Matt Neuburg
What I do in my Core Data-based Latin and Greek vocabulary list iOS apps is maintain extra fields (attributes) that contain transliterations of the Greek/Latin terms into the English alphabet in such a way that sorting normally on those fields gives me the order that is correct for Greek/Latin.

<    2   3   4   5   6   7   8   9   >