Re: Problem with rangeOfString and Umlauts

2022-03-11 Thread Matt Jacobson via Cocoa-dev
the ä, and info_item uses only one. As an experiment, try running both strings through -precomposedStringWithCanonicalMapping before doing your comparisons. This method returns a new precomposed string—it doesn’t alter the receiver. Matt ___ Cocoa-

Re: Accessibility UIContentSizeCategory or current accessibility font setting

2021-10-17 Thread Matt Jacobson via Cocoa-dev
ntentSizeCategory] (Don’t forget to observe changes: UIContentSizeCategoryDidChangeNotification.) Matt ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: Accessibility - Smart Invert and images.

2021-09-29 Thread Matt Jacobson via Cocoa-dev
iew: <https://developer.apple.com/documentation/swiftui/form/accessibilityignoresinvertcolors(_:) <https://developer.apple.com/documentation/swiftui/form/accessibilityignoresinvertcolors(_:)>> Matt > On Sep 29, 2021, at 12:20 PM, Alex Zavatone via Cocoa-dev > wrote: > > Accord

Re: App can't be opened

2021-09-15 Thread Matt Jacobson via Cocoa-dev
alyst—without a thorough audit of the headers.) Matt ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/

Re: ARC and C++ structures

2021-09-15 Thread Matt Jacobson via Cocoa-dev
> On Sep 15, 2021, at 11:21 AM, Tor Arne Vestbø wrote: > > >> On 14 Sep 2021, at 16:33, Matt Jacobson via Cocoa-dev >> mailto:cocoa-dev@lists.apple.com>> wrote: >> >> By default, when an NSWindow is `-close`d (which can only happen once in its

Re: ARC and C++ structures

2021-09-14 Thread Matt Jacobson via Cocoa-dev
d backing:NSBackingStoreBuffered defer:NO]; [window makeKeyAndOrderFront:nil]; [window close]; window = nil; } } You can disable this behavior by changing the `re

Re: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme

2021-08-23 Thread Matt Jacobson via Cocoa-dev
> On Aug 23, 2021, at 2:20 PM, Gabriel Zachmann wrote: > > Hi Matt, > > thanks a lot for your quick response. It clarifies a few things .. but see > below. > >> >> That pop-up actually has two halves: first, a scheme, and second, a run >> destination

Re: "A build only device cannot be used to run this target" appearing with "Any Mac" scheme

2021-08-23 Thread Matt Jacobson via Cocoa-dev
avoid slowing down your edit-build-debug cycle by building code you’re not going to run. However, some people like to change that. HTH, Matt ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: NSExceptionHandler and "Internal Error" dialog

2021-05-28 Thread Matt Jacobson via Cocoa-dev
> On May 28, 2021, at 8:41 PM, James Walker wrote: > > On 5/28/21 4:21 PM, Matt Jacobson wrote: >> On May 28, 2021, at 6:54 PM, James Walker via Cocoa-dev >> wrote: >>> When an uncaught exception is raised, I want to log some information about >>> it

Re: NSExceptionHandler and "Internal Error" dialog

2021-05-28 Thread Matt Jacobson via Cocoa-dev
it. You’re seeing this dialog because you have the user default `NSApplicationShowExceptions` set somewhere. (Use `defaults find` to help find out where.) It’s not on by default, but you may have turned it on at some point because of the aforementioned wisdom HTH, Matt ___

Re: iOS, handling communicating to a server with a "Not Trusted" SSL cert.

2021-04-18 Thread Matt Eaton via Cocoa-dev
> But I’d also like to see what’s wrong with the cert. If this a certificate that you control then I would recommend trying to take a look at how to fix your certificate rather than adding an ATS exception or overriding trust evaluation on the client side. This would provide the best long te

Is it necessary to suspend/resume a dispatch queue/source on sleep/wake notifications?

2020-02-06 Thread Matt DeFoor via Cocoa-dev
r dispatch sources are suspended when a computer goes to sleep. When the computer wakes up, they are woken up as well. Thanks, Matt ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Crashing in NSTabView

2019-05-22 Thread Matt Jacobson
> On May 22, 2019, at 1:19 PM, Casey McDermott wrote: > > The Allocations feature in Instruments looks promising. Is there a way to > limit the display to just one class? Otherwise it is WTMI. Check out File → Recording Options… Matt __

Re: lockFocusIfCanDraw behavior in layer-backed mode

2018-12-17 Thread Matt Jacobson
Hi, > On Dec 15, 2018, at 7:07 AM, Tor Arne Vestbø wrote: > > Hey hey, > >> On 15 Dec 2018, at 01:38, Matt Jacobson wrote: >> >> You were probably calling -lockFocusIfCanDraw >> <https://developer.apple.com/documentation/appkit/nsview/1483285-lockfocus

Re: NSString drawAtPoint in Mojave

2018-12-14 Thread Matt Jacobson
omment is indeed correct. It does not and has never done anything on Mac OS X. You were probably calling -lockFocusIfCanDraw <https://developer.apple.com/documentation/appkit/nsview/1483285-lockfocusifcandraw>, which does not say that. Hope

Re: Why would a view be asked to draw after its window has been ordered out?

2018-12-13 Thread Matt Jacobson
result from your view attempting to use an object that it does not hold a strong (or weak-upgraded-to-strong) reference to. Matt > On Dec 13, 2018, at 10:44 AM, James Walker wrote: > > I was getting a crash on quit resulting from a drawRect: method being called > on a window t

Re: Layer-hosting views as superview?

2018-03-21 Thread Matt Jacobson
<https://developer.apple.com/library/content/releasenotes/AppKit/RN-AppKit/#10_13Layer-backed Views>>. And either way, the view may certainly have subviews. We'll update the incorrect documentation—thanks for pointing that out. Hope that helps, Matt

UIImagePickerController in popover broken on iOS 9

2016-05-04 Thread Matt Reagan
Hi all, I've encountered a bug when UIImagePickerController is presented in a popover on iOS 9, and have been unable to find a workaround / fix. It is easily reproducible in a brand new Xcode template (repro steps + sample project linked below), but I haven't been able to find much information

Re: Contextual menu for NSTableCellView in NSOutlineView

2016-02-10 Thread Matt Reagan
ght mouse down does. I wrote a little about this when I first hit that same issue: http://sound-of-silence.com/?article=20150923 <http://sound-of-silence.com/?article=20150923> -Matt > On Feb 10, 2016, at 2:42 PM, Ken Thomases wrote: > > On Feb 10, 2016, at 4:26 PM, Konid

Re: Panes vs. Separate Windows

2016-01-11 Thread Matt Reagan
its learning curve, but Xcode is a perfect example of when this is _not_ the case (IMO); Xcode users should generally be expected to be reasonably intelligent folks who are willing to learn a tool's nuances if that means it will improve their workflow / development efficiency. -Matt

Re: Window position updates on demand?

2015-12-17 Thread Matt Reagan
return rect; } If there's a better way of obtaining this through Cocoa/AppKit I'd like to know as well. -Matt > On Dec 17, 2015, at 4:32 PM, Cem Karan wrote: > > Hi all, I'm working on an application that has one primary window and > multiple support windows. The s

Top-level contextual menu for view hierarchy

2015-09-21 Thread Matt Reagan
, but this seems clunky and unnecessary. I also considered trying to solve this by leveraging -hitTest, but again, that seems like it shouldn't be required. Does anyone have any suggestions? Thanks, -matt ___ Cocoa-dev mailing list (Cocoa-dev@

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: [NSMutableData resetDataRangeTo:(NSRange)range];

2014-07-12 Thread Matt Gough
don’t you just want: [bigData replaceBytesInRange:NSMakeRange(0, 1024) withBytes:NULL length:0]; ?? I am sure NSMutableData is well optimized for shunting its contents around internally. Matt On 12 Jul 2014, at 20:36, Carl Hoefs wrote: > Basically what I would like is an NSMutableD

Re: Disabling screen capture

2014-02-22 Thread Matt Gough
OK, So lets assume that you can’t actually prevent the screen being captured. Maybe a solution would be to prevent that captured data from surviving very long. e.g Install an FSEvents watcher and look out for image and movie files being created on the entire disk. Then delete them while your ap

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: Preferences for network login

2013-04-20 Thread Matt DeFoor
they're operating. Based on your description, I'll assume that "Create mobile account at login" is not checked. Troubleshooting this kind of setup can be hard if you don't have AD at hand. I could probably provide some assistance in testing as I can setup AD test environme

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

NSData, NSImageView value binding, and NSUnarchiveFromData - nothing appears

2013-01-07 Thread Matt DeLuco
When I started building my app I had been using NSImageView's Data binding to display image data in an NSData object, which is apparently deprecated. I read that a data transformer has to be used when using the NSImageView's Value binding. After digging around I realized that there's an NSUnar

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

  1   2   3   4   5   6   7   8   9   10   >