Re: how do you suppose targetViewControllerForAction:sender: works?

2014-10-09 Thread Matt Neuburg
> superclass - i.e., it has overridden it > } > Yes, I think that's about right. (It isn't the superclass; it looks right at UIViewController, which must also implement the method somehow. But that's minor.) Thanks! Tricky-wicky... m. -- matt neuburg, phd = http:/

how do you suppose targetViewControllerForAction:sender: works?

2014-10-09 Thread Matt Neuburg
ondsToSelector:` obviously doesn't cut it: it would return YES if this class merely _inherits_ the ability to respond to this selector. How would you find out the answer to the question, "does this UIViewController subclass respond to this selector _differently_ from UIViewController?&

Re: Animation on gesturing

2014-02-03 Thread Matt Neuburg
o refresh >animation for the stretched little do dad. See the section in my book on interactive custom animations. Here's some source code: https://github.com/mattneub/Programming-iOS-Book-Examples/blob/master/bk2ch06p296customAnimation2/ch19p620customAnimation1/AppDelegate.m m. -- matt

Re: Mismatched viewWillAppear/viewDidDisapper calls possible?

2014-02-03 Thread Matt Neuburg
ms impervious to any understanding of the fact that we need coherent reliable order and sequence for these events. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do iOS 7 Fundamentals! http://shop.oreilly.com/p

Re: Delays in awaking iOS app

2014-02-03 Thread Matt Neuburg
be replaced by the real interface, and meanwhile the app is not responsive because you're not _in_ the app: you're tapping on the snapshot. I wonder if that's what you're experiencing. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ Programming iO

Re: System fonts on iOS 7

2014-01-19 Thread Matt Neuburg
cidentally saw. Of course that doesn't solve the problem you're having; I'm just saying what Apple says in the 2013 WWDC videos. I suppose you could say something like System - Caption (or whatever it is) by running thru the various role names and trying to match against the hidde

Re: UIButton over sliding UIImageView disappears until slide complete

2014-01-19 Thread Matt Neuburg
button remain in view at all times? Can you post on github a small project that will allow the issue to be reproduced? Thx - m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do iOS 7 Fundamentals! http:/

Re: UILabel's sizeToFit - only on re-used cells

2014-01-15 Thread Matt Neuburg
h:` is meaningful and correct! That is a _major_ reason for preferring it; you can do layout here. (Of course you can't do that if you are backwards-compatible to before its existence.) m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ Programming iOS 7! http://shop.oreilly.

Re: UIPopoverController and UIToolbar interactions

2014-01-14 Thread Matt Neuburg
all part of the primitive, brainless lack of real popover management. They sucked when they were introduced in iOS 3.2 and they have not been improved or changed in any way since then. I have a long-standing bug in on the whole thing, including this particular issue. m. -- matt neuburg,

Re: Mixing UIDocument's NSUndoManager and -updateChangeCount:

2014-01-14 Thread Matt Neuburg
book: - (void) forceSave: (id) n { [self.doc saveToURL:doc.fileURL forSaveOperation:UIDocumentSaveForOverwriting completionHandler:nil]; } m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do i

Re: why isn't id an id?

2013-10-04 Thread Matt Neuburg
learned a lot. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.co

why isn't id an id?

2013-10-04 Thread Matt Neuburg
ke casting to id. It is as if id is not an id, which makes no sense to me. Is this a Clang bug? Or am I just missing some fundamental truth? m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 7! http://shop

Re: Subclassing a View Controller in a Storyboard

2013-09-04 Thread Matt Neuburg
bitrary variable in the resulting instance, using the user-defined runtime attributes. * If all else fails, implement loadView. Now finding the view is up to you. You can keep the view in a .xib file even if you are getting the view controller from a storyboard (delete the view controller'

Re: when __bridge isn't required

2013-07-27 Thread Matt Neuburg
roduced an error or a warning. > > The answer to your question probably depends on: > > -- the version of Clang you're using > -- the particular SDK you're using > -- the compiler options you're using -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.n

when __bridge isn't required

2013-07-27 Thread Matt Neuburg
mit the cast entirely in the first example, the compiler claims that you need a bridged cast. But you don't; you just need a cast. That feels like a bug; if a mere cast is sufficient, the compiler should say so (and Fix-It should offer it as a possible fix). m. -- matt neuburg, phd = m...@tidbit

Re: storage for context: value

2013-07-25 Thread Matt Neuburg
stance of that class). If an informative data structure is to be used on an instance-by-instance basis, and if this data structure is to persist, then it seems to me that it *must* be an instance variable. m. On Jul 25, 2013, at 9:19 AM, Quincey Morris wrote: > On Jul 25, 2013, at 07:2

Re: storage for context: value

2013-07-25 Thread Matt Neuburg
he call once but you can get called back many times - or am I misunderstanding? m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do RubyFrontier! http://www.ap

storage for context: value

2013-07-25 Thread Matt Neuburg
it be stored as an ivar? Thx as always - m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html Ti

Re: type of NSNotFound

2013-07-20 Thread Matt Neuburg
behind the habit of comparing to NSNotFound, but it doesn't sound as if there are.) m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do RubyFrontier! http

type of NSNotFound

2013-07-20 Thread Matt Neuburg
e NSIntegerMax (which is only halfway through the available unsigned indexes), it will seem to be NSNotFound when in fact it is an actual index. I must be wrong about this, since Apple wouldn't make such a basic mistake. So what's *my* mistake? Thx - m. -- matt neuburg, phd = m...@tidbits.

Re: static acting like __block in GCD singleton pattern

2013-07-01 Thread Matt Neuburg
Very nice, thanks! m. On Jul 1, 2013, at 10:42 AM, John McCall wrote: > On Jun 30, 2013, at 9:47 AM, Alex Zavatone wrote: >> On Jun 29, 2013, at 12:20 PM, Matt Neuburg wrote: >>> Yes, I looked at the spec and searched on the word "static" but I can't >&

Re: private redeclaration of an instance variable

2013-07-01 Thread Matt Neuburg
On Jun 29, 2013, at 7:48 PM, David Duncan wrote: > On Jun 29, 2013, at 11:18 AM, Matt Neuburg wrote: > >> >> On Jun 29, 2013, at 10:55 AM, Jens Alfke wrote: >> >>> This is just a parsing issue. If an ivar is declared in a class’s public >>> inte

Re: private redeclaration of an instance variable

2013-06-29 Thread Matt Neuburg
Of course it's possible that I've just confused the heck out of myself and my experiment doesn't show what I think it shows. But try it; I think you'll find that what I'm saying is true. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes ant

private redeclaration of an instance variable

2013-06-29 Thread Matt Neuburg
It's permitted to override an inherited instance variable, but only if you do so privately? m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do RubyFrontier! http:

Re: static acting like __block in GCD singleton pattern

2013-06-29 Thread Matt Neuburg
That is *extremely* clear - thanks! m. On Jun 29, 2013, at 9:42 AM, Jens Alfke wrote: > > On Jun 29, 2013, at 9:20 AM, Matt Neuburg wrote: > >> I'm trying to come up with a pithy explanation, suitable for beginners, of >> why a "static" variable doesn&#

Re: static acting like __block in GCD singleton pattern

2013-06-29 Thread Matt Neuburg
f code. I like the verbal distinction between capturing the value and pointing at the storage; I think that's where I need to go. It shows why __block both lets you modify the value and keeps the value live in the block; they are really just the same thing. Thx! m. -- matt neubur

Re: static acting like __block in GCD singleton pattern

2013-06-29 Thread Matt Neuburg
On Jun 28, 2013, at 5:26 PM, Kyle Sluder wrote: > On Fri, Jun 28, 2013, at 05:17 PM, Matt Neuburg wrote: >> Why is the block permitted to assign to the variable sharedInstance >> outside the block? Evidently it is because "static" has an effect like >> "__b

static acting like __block in GCD singleton pattern

2013-06-28 Thread Matt Neuburg
a local static? Thx - m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: UIGestureRecognizers for 2-6?

2013-05-08 Thread Matt Neuburg
n get some (without doing the >JSON thing). Not sure what "the JSON thing" is. I tried "the Google thing" and found this promising-looking little tidbit: https://github.com/chrismiles/CMUnistrokeGestureRecognizer Haven't tried it, but its heart seems to be in the rig

Re: Double tap inside a UICollectionViewCell

2013-05-02 Thread Matt Neuburg
tapGesture]; > Well obviously if you want to detect double taps on a collection view *cell*, it might be simplest to attach the gesture recognizer to the collection view *cell* (not the collection view itself). m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A

Re: Built-in Activity Types

2013-05-02 Thread Matt Neuburg
On Wed, 01 May 2013 12:59:48 -0600, koko said: >I should also note that I want to add my custom activities as well and >understand I need to subclass UIActivity but some details would be helpful. Same answer: http://www.apeth.com/iOSBook/ch26.html#_activity_view m. -- matt neuburg, p

Re: Unwind segues

2013-04-30 Thread Matt Neuburg
On Tue, 30 Apr 2013 13:13:47 -0700, Rick Mann said: >Where are these documented? Here! http://www.apeth.com/iOSBook/ch19.html#_unwind_segues :) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iO

Re: Conserve size of UIButton after CATrasform3DScale

2013-04-07 Thread Matt Neuburg
rong and must not be touched; you must use the bounds and center instead - and that's what autolayout should do. Every workaround is messy in one way or another. It's as if the autolayout people forgot to consult the animation people when they came slashing through the forest with

Re: unwind custom segue and uinavigationcontroller

2013-03-23 Thread Matt Neuburg
s extraordinarily convenient (a button that does exactly the right thing with no code); why would anyone reject it? If you insist on an different animation, then I can only repeat my suggestion that in that case you not use the built-in back button, since what it does is what it does. m. -- m

Re: ARC Help

2013-03-23 Thread Matt Neuburg
nagement, ARC, properties) and putting them together at the end: http://www.apeth.com/iOSBook/ch12.html m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do

Re: UIViewController question

2013-03-23 Thread Matt Neuburg
ws. I haven't looked at the Apple Stocks app, but what you've described so far sounds like no more than a view containing a paging scroll view. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming

Re: unwind custom segue and uinavigationcontroller

2013-03-21 Thread Matt Neuburg
stion. The back button is the back button; it goes back. That's what it does. It only does one thing, because it belongs to the back item (the UIViewController *under* the top view controller in the stack). If you want a button in the UINavigationBar to do something other than "go back

Re: How to get all the path of an application present on the disk

2013-03-20 Thread Matt Neuburg
t all the paths. >> >> I'm able to find it using: >> >> - (NSString*)fullPathForApplication:(NSString*)appName; >> or >> LSFindApplicationForInfo() >> >> Both methods return the single path. I want all the path of my app which are >&g

Re: Adding toolbar items only works in viewWillAppear: (?)

2013-03-20 Thread Matt Neuburg
t; >> If I put it in viewDidLoad, the toolbar never shows up. In the book by >> Conway and Hillegass (3rd ed), they put similar code in init, but that also >> doesn't work in my case. Interestingly, I am adding a UISearchBar in init, >> and that works just fine

Re: KeyboardType for an iOS searchBar.

2013-03-20 Thread Matt Neuburg
ot;? I wonder if it would help to locate the UISearchBar's internal UITextField and set its keyboardType directly. I've found various circumstances where this is necessary... Just an idea - m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A foo

Re: Problem with using a Navigation Controller in Xcode

2013-03-12 Thread Matt Neuburg
ntroller. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: Tracking object references

2013-02-25 Thread Matt Neuburg
do *something* to help me, even if were just a better GUI. And when there's a memory management bug in the framework (yes, this *can* still happen, even under ARC), my pencil-and-paper method can fail to track down the issue. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/ma

Re: iOS books, etc for experienced OSX programmers

2013-02-22 Thread Matt Neuburg
On Fri, 22 Feb 2013 22:16:11 +0800, Roland King said: >I like the stuff Matt Neuburg publishes, I admit to reading that which he's >made publicly available without purchasing the book (sorry Matt) No apologies needed. I posted it so you could read it. (Of course I'd *like* to b

Re: IOS iPad PopOver Nav bar color

2013-02-22 Thread Matt Neuburg
>the frame has. Starting in iOS 5 you can draw the frame and you can draw the navigation bar background. So to say you can't get the navigation bar to match the frame has is just false. Of course you can. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fo

Re: Tracking object references

2013-02-22 Thread Matt Neuburg
On Sun, 17 Feb 2013 12:16:47 -0600, Ken Thomases said: >On Feb 17, 2013, at 11:50 AM, Matt Neuburg wrote: > >> On Sat, 12 Jan 2013 11:13:13 +, Mike Abdullah >> said: >>> >>> The allocations instrument can show you all presently allocated objects. >

Re: iOS 6.0 SDK UIApplicationInvalidInterfaceOrientation

2013-02-17 Thread Matt Neuburg
be happy. More work, but you are in control. MPMoviePlayerViewController sucks; I have a wonderful proof of this, but the margin is too small to hold it. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Programming iOS 5! h

Re: Tracking object references

2013-02-17 Thread Matt Neuburg
nternal retain count. But it sure would be nice if Instruments did give more info about this, so that one could try to track down which retains are balanced by which releases (and which retains, therefore, are unbalanced). A mere retain count over time, along with a call stack, just doesn&#x

Re: Core Foundation Objects and Properties when using ARC

2013-02-17 Thread Matt Neuburg
e I should be testing first to make sure that _bitmapContext and bitmap aren't the same object): if (self->_bitmapContext) CGContextRelease(self->_bitmapContext); self->_bitmapContext = bitmap; Example of dealloc: - (void) dealloc { if (_bitmapContext

Re: what does the return value for textFieldShouldReturn actually do???

2013-02-17 Thread Matt Neuburg
ldReturn: or don't implement it at all. You can get automatic keyboard dismissal with *no code* this way. http://www.apeth.com/iOSBook/ch23.html#_uitextfield m. -- matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/> A fool + a tool + an autorelease pool = cool! Progr

am I being called on the correct GCD queue?

2013-02-09 Thread Matt Neuburg
s that a wrong thing to want to do? 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 T

more about NSAttributedString and truncation in iOS 6

2013-01-26 Thread Matt Neuburg
ent in the first instance with how an attributed string draws itself, but in the second instance UILabel is inconsistent with itself. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 5! http://shop.oreilly.c

more about NSAttributedString and truncation in iOS 6

2013-01-26 Thread Matt Neuburg
tring drawing option `NSStringDrawingTruncatesLastVisibleLine`.) Just wanted to make that perfectly clear for generations to come... :) 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.d

Re: Coordinate conversions in CALayer

2013-01-24 Thread Matt Neuburg
- just bang on the black box until the right thing comes out the other end, then stop. :) 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! h

Re: NSAttributedString boundingRectWithSize vs. paragraph margins

2013-01-24 Thread Matt Neuburg
51.8027, 465}, it won't fit. That's because the 20pt > margins will be applied within those bounds, so my text will be trying to fit > in an 11pt space, and will be much longer than 465pt high. > > Therefore I believe this is a bug. I asked for the bounding rect of my >

Re: NSAttributedString boundingRectWithSize vs. paragraph margins

2013-01-24 Thread Matt Neuburg
ill be much longer than 465pt high. Therefore I believe this is a bug. I asked for the bounding rect of my string, but the system gave me the bounding rect of a *different* string, a string that has no margins. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes a

Re: Coordinate conversions in CALayer

2013-01-24 Thread Matt Neuburg
AffineTransformMakeTranslation. In other words, the first one begins by translating the current transform. The second one begins with a plain vanilla translation. The affine transform equivalent of CGContextTranslateCTM is CGAffineTransformTranslate. You might want to say this: CGAffineTransform tfm =

Re: NSAttributedString boundingRectWithSize vs. paragraph margins

2013-01-23 Thread Matt Neuburg
Suska wrote: > On Jan 23, 2013, at 7:29 PM, Matt Neuburg wrote: > >> The docs on boundingRectWithSize:options:context: say: >> >> "Typically, the renderer preserves the width constraint and adjusts the >> height constraint as needed." >> >>

NSAttributedString boundingRectWithSize vs. paragraph margins

2013-01-23 Thread Matt Neuburg
drawn within the width I supplied (100) using the paragraph margins I supplied. Is there some other way to find that out? Or is this a bug with regard to how margins are interpreted? m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phus

Re: object.struct.element as lvalue

2013-01-22 Thread Matt Neuburg
ruct is a special kind of l-value that's limited in > how it can be used. You can use it as the l-value operand of a simple > assignment, compound assignment, increment, or decrement operator, but any > other use causes it to be converted to an r-value. Okay, I'll think

Re: object.struct.element as lvalue

2013-01-22 Thread Matt Neuburg
On Jan 22, 2013, at 11:25 AM, John McCall wrote: > On Jan 22, 2013, at 11:03 AM, Matt Neuburg wrote: >> We have dot-syntax for accessors, and we have dot-syntax for struct >> elements, and we can chain them, but not as an lvalue. It is legal to say >> >> x = objec

object.struct.element as lvalue

2013-01-22 Thread Matt Neuburg
all out by hand? There's no ambiguity as far as I can tell. The ARC compiler is supplying plenty of code behind the scenes, including temporary variables, so surely it wouldn't be onerous to do the same sort of thing here. m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/m

Re: NSPointerArray on iOS - truly __weak?

2013-01-22 Thread Matt Neuburg
On Jan 22, 2013, at 7:08 AM, Mike Abdullah wrote: > > On 10 Dec 2012, at 20:26, Matt Neuburg wrote: > >> 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 >> m

Re: How can I get rid of this warning message?

2013-01-22 Thread Matt Neuburg
[self invalidate]; >> } > > where sel is defined as @property(nonatomic) SEL sel; > > The line containing the performSelector:withObject: method generates > "PerformSelector may cause a leak because its selector is unknown". -- matt neuburg, phd = m...@tidbits.co

making the most of a symbolic breakpoint

2013-01-09 Thread Matt Neuburg
When I've set a symbolic breakpoint for an Objective-C method and we pause at that breakpoint in assembler, how can I find out things like what object this message was sent to and what argument values were passed? (This is in iOS if that makes a difference.) Thx - m. -- matt neuburg, ph

Re: Full-time position for experienced Mac app developer in San Diego, CA

2013-01-07 Thread Matt Neuburg
San Diego, CA > Message-ID: > Content-Type: text/plain; charset=iso-8859-1 > > I'm interested but I'm based in France. Can you tell me more about the job ? > Feed those trolls! m. -- matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/ pantes anthropoi

Re: Core Data and localized sort on iOS

2013-01-03 Thread Matt Neuburg
Yes, actually I do both. m. On Jan 3, 2013, at 3:42 PM, Kyle Sluder wrote: > On Thu, Jan 3, 2013, at 02:54 PM, Matt Neuburg wrote: >> I didn't say the transliteration was simple. I had to devise a code >> (properly called a "beta code") that would yield the corre

Re: Core Data and localized sort on iOS

2013-01-03 Thread Matt Neuburg
On Jan 3, 2013, at 12:49 PM, Fritz Anderson wrote: > A simple transliteration I didn't say the transliteration was simple. I had to devise a code (properly called a "beta code") that would yield the correct result. To give a simple example, if you want a-accent-aigu to sort before a-accent-gra

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.

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!

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

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

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

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

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

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

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

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/

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

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

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

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

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

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'

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

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

  1   2   3   4   5   6   7   8   9   >