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

change in launch services binding behavior?

2009-09-03 Thread Matt Neuburg
d. But in Snow Leopard, it doesn't. Yet the documentation has not been changed; indeed, there are no Snow Leopard release notes for Launch Services. So what's going on exactly? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an a

Re: change in launch services binding behavior?

2009-09-05 Thread Matt Neuburg
On Thu, 03 Sep 2009 18:57:07 -0400, Gregory Weston said: >Matt Neuburg wrote: > >> I wonder whether someone (preferably from Apple) could provide >> details on >> how Snow Leopard has changed its algorithm for how a document is >> bound to an >> application,

Re: Input Managers in Snow Leopard

2009-09-05 Thread Matt Neuburg
On Fri, 4 Sep 2009 11:54:17 +0700, "Gerriet M. Denkmann" said: >I would like to modifiy apps (e.g. >TextEdit) to put miniaturized windows NOT into the dock, but on the >bottom of the screen (the way it was done in NeXTstep). I would like you not to. m. -- matt neuburg, phd

Re: help book and appleicon meta tag

2009-09-06 Thread Matt Neuburg
ut using the new .help style books? for the record my tag is like this: > > >the help displays fine it's just the icon. thanks for the help, What if you change the URL to "../mypic.png"? m. PS This is really the wrong list for this stuff, you know. -- matt neuburg, phd

adding a page curl transition

2009-09-13 Thread Matt Neuburg
this is probably such a common thing to want to do that someone has already been down this road. Thx - m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf AppleS

Re: adding a page curl transition

2009-09-14 Thread Matt Neuburg
On Mon, 14 Sep 2009 13:57:32 +1000, Graham Cox said: > >On 14/09/2009, at 1:31 PM, Matt Neuburg wrote: > >> My question is simply this: what's the best strategy for >> implementing this? >> Unlike the Reducer tab view example, I don't have a view in advance &g

Re: Help book content

2009-09-14 Thread Matt Neuburg
;editor and that don't seem to be used in other applications' >info.plist files. Am I missing something obvious? This is almost always caused a failure to follow directions. You must do everything *exactly* as described by the documentation. I've made a tutorial screencast that emphasis

Re: Help book content

2009-09-14 Thread Matt Neuburg
ame level: > >Presets > >This works in Safari but not through Help Viewer. I'm surprised it *ever* works since that is not HTML. You need to say (notice the quotes). Always run your HTML thru a validator and if at all feasible use XHTML because it is even stricter and clearer

Re: adding a page curl transition

2009-09-14 Thread Matt Neuburg
On Mon, 14 Sep 2009 09:32:11 -0700, Matt Neuburg said: >For example, I can imagine something like this. Take a "screen shot" of the >window. Cover the whole window with a secondary window. Behind the secondary >window, move the primary window on to the next entity. Take a secon

Re: Help book content

2009-09-14 Thread Matt Neuburg
say it was. But it does work. :) All my help books are XHTML. 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.tid

Re: adding a page curl transition

2009-09-14 Thread Matt Neuburg
On or about 9/14/09 5:53 PM, thus spake "Graham Cox" : > I'm not sure your interface will really make much sense to an end-user > (since it's uncommon and therefore unexpected behaviour) Well, it wasn't uncommon back on System 6 and 7 using HyperCard. :

Re: Filtering a table view using NSSearchField

2009-09-15 Thread Matt Neuburg
des. It's short and sweet and comes with example source code which exemplifies exactly what you're describing. In fact, what you're describing is just about all it does. (And it's still working, unchanged, after all these years, even in Snow Leopard...; the interface behavior has

Re: Help book content

2009-09-15 Thread Matt Neuburg
On Mon, 14 Sep 2009 18:16:57 -0700, Kyle Sluder said: >On Sep 14, 2009, at 6:14 PM, Matt Neuburg wrote: > >> I didn't say it was. But it does work. :) All my help books are >> XHTML. m. > >Well if you're going to write XHTML, that makes sense. But using an >

wait until the button releases

2009-09-15 Thread Matt Neuburg
ere a better approach? I guess I'm looking for a command that means "wait for the event loop to come round again". m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Gu

settings to build for 10.5 on 10.6?

2009-09-16 Thread Matt Neuburg
ionCommit + 229 ... I'm wondering whether I need to throw some additional switch to make my app call CoreAnimation differently here...? Thanks. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25

Re: settings to build for 10.5 on 10.6?

2009-09-16 Thread Matt Neuburg
on on 10.5, I'd like to know what your settings are that make this possible. m. On Wed, 16 Sep 2009 14:14:41 -0400, Ross Carter said: > >On Sep 16, 2009, at 1:03 PM, Matt Neuburg wrote: > >> What are the correct build settings to develop on 10.6 in such a way >> that my &g

Re: settings to build for 10.5 on 10.6?

2009-09-17 Thread Matt Neuburg
On or about 9/17/09 9:55 AM, thus spake "David Duncan" : > On Sep 16, 2009, at 7:13 PM, Matt Neuburg wrote: > >> I guess I wasn't clear. Deployment target is 10.5. Base SDK is 10.5. >> Runs >> fine on 10.6 but crashes in Core Animation on 10.5. The questio

Re: CAAnimation finished ?

2009-09-17 Thread Matt Neuburg
On Wed, 16 Sep 2009 19:50:39 -0500, Kevin Cathey said: >For more, see previous posts on the mailing list. Not so easy; searching Apple's archives doesn't retrieve anything after 2005, which sort of makes the search feature unusable. (And Cocoabuilder has issues of its own.) m. --

bitmap caching issue (was: settings to build for 10.5 on 10.6?)

2009-09-20 Thread Matt Neuburg
ion and turning *that* into a CGImage. So from that point of view the problem is solved! But is there a better way? Is there some simpler (or "correct") way to make my CGImage real - to say "Draw here, draw now?" (I tried things like retaining or copying the CGImage and that didn

Re: bitmap caching issue (was: settings to build for 10.5 on 10.6?)

2009-09-20 Thread Matt Neuburg
On or about 9/20/09 1:16 PM, thus spake "Ken Ferry" : > There was an ownership problem.  The NSBitmapImageRep owned a raw buffer of > data and the CGImage.  The CGImage didn't retain the NSBitmapImageRep since > that would cause a retain cycle.   So all I had to do was retain the NSBitmapImageRep

Re: IB does not show Outlet/Action section in inspector

2009-09-22 Thread Matt Neuburg
e you can create outlets and actions, as it did in earlier versions; instead, you create outlets and actions in Xcode (in your header, in code) and IB automatically sees them. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease

Re: Using radio buttons to set an image in an image view

2009-09-22 Thread Matt Neuburg
he value path for the image view is bound to actionImagePath. > >What I cannot do is change the image. When I click on the second radio >button, I use > >[actionImagePath setString:@"/Users/.../two.jpg"]; That change is happening "behind the back" of KVO (key-value

Re: building and running on Snow Leopard

2009-09-23 Thread Matt Neuburg
k the app's behavior as needed. Of course you *could* just say "This app is Snow Leopard / Intel / 64-bit only," and save yourself a lot of work. :) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = c

Re: app delegate +initialize

2009-09-23 Thread Matt Neuburg
e in +initialize, as awakeFromNib is not early enough. And Apple's own code examples advise and demonstrate this. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition!

Re: Animating "contents" property of CALayer via the delegate

2009-09-28 Thread Matt Neuburg
comes the current frame, via the -[CALayer drawLayer:inContext:] >delegate method. How do I do this? The delegate method seems to get >called only once. Thanks! You might find some architectural inspiration in Matt Gallagher's "Asteroids" Core Animation example: http://cocoa

Re: NSTextField, drawing the text offset to the right in the field

2009-09-28 Thread Matt Neuburg
e right of the left >boarder and still have the nicely defined frame of the field in it's >original place... What I do is have the textfield replace its cell by a custom cell that implements drawInteriorWithFrame, such as to inset its frame rect as it calls super. m. -- matt

Re: NSTextField, drawing the text offset to the right in the field

2009-09-29 Thread Matt Neuburg
, I think what I said before may cover this sufficiently: > On Sep 28, 2009, at 9:30 PM, Matt Neuburg wrote: >> What I do is have the textfield replace its cell by a custom cell that >> implements drawInteriorWithFrame, such as to inset its frame rect as it >> calls super. m. As

Re: Fast transition between two graphics

2009-09-29 Thread Matt Neuburg
he user a choice of transitions, and one of them is a push transition.) I discussed my thinking in an earlier thread here as I was developing the animation. At the time, Uli Kusterer suggested it might have been better to swap views and animate *that*. And I might still rewrite it that way. m. -- matt n

Re: NSTextField, drawing the text offset to the right in the field

2009-09-30 Thread Matt Neuburg
within IB, under >> the Identity inspector. It might be helpful to switch to the >> hierarchical view so you can get easy access to the text field's cell. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease p

Re: properties attributes misunderstanding

2009-09-30 Thread Matt Neuburg
t the docs: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Object iveC/Articles/ocProperties.html Search on "copy". It's all about the setter, not the getter. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + a

Re: odd behavior with NSError?

2009-10-02 Thread Matt Neuburg
izing your local variables at the point of declaration. And IIRC the Build and Analyze mechanism (clang?) will warn of this. Try it, you'll like it! m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a to

Re: app delegate +initialize

2009-10-07 Thread Matt Neuburg
alled, so I tend to suspect your observation mechanism (Heisenberg uncertainty principle and all that...!) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www

Re: Any way to see all AppleEvents being sent in system?

2009-10-18 Thread Matt Neuburg
, not during heavily scripted use, etc). > >http://db.tidbits.com/article/10643 It isn't speculation. :) If you think your app is hitting this bug, you don't need to *count* Apple events; you need to know the return IDs of the Apple events that you are sending. That's easy to fi

Re: Using core data binary and string attributes with NSTextView

2009-10-18 Thread Matt Neuburg
ion *not* transient. In my Diary app, for example, the text that the user sees and types in the NSTextView can have styles, but the text that the user searches is a plain-text string. So when it's time to search, we don't need to *create* the plain-text string - it's already there.

Re: Any way to see all AppleEvents being sent in system?

2009-10-18 Thread Matt Neuburg
On or about 10/18/09 11:10 AM, thus spake "Rick Mann" : > I repeat. I'm not interested in any specific app. I'm just seeing my > machine lock up periodically. Then what's this doing on the Cocoa-Dev list? m. -- matt neuburg, phd = m...@tidbits.com, http://www.tid

Re: Showing activity indicator during data download

2009-10-29 Thread Matt Neuburg
erfectly right out of the box. What was I so scared of? Apple actually hands you all the code on a silver platter: you just copy it out of the docs and into your code, tweak slightly, and presto, you are downloading asynchronously. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbi

nonsense from cellFrameAtRow:column: on Leopard

2009-10-30 Thread Matt Neuburg
t what? Do I need to do some kind of tricky conditional compilation and cast somehow? Do I need to tweak my build settings? (I tried building 32-bit only but it made things worse.) Thx. m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai

Re: nonsense from cellFrameAtRow:column: on Leopard

2009-10-31 Thread Matt Neuburg
esn't work on Leopard, but I don't really care; I have another way to get a reference to the NSMatrix, and that's all I need, so now my code works fine on both Leopard and Snow Leopard. Sorry for the misstatement of the problem. m. On Fri, 30 Oct 2009 22:06:09 -0700, Matt Neubur

Re: nonsense from cellFrameAtRow:column: on Leopard

2009-10-31 Thread matt neuburg
On Sat, October 31, 2009 12:49 pm, Jim Correia wrote: > On Oct 31, 2009, at 2:34 PM, Matt Neuburg wrote: > >> Solved my own problem, which had nothng to do with what I thought it >> had to >> do with. The source of the difficulty is actually this: On Snow >> Leopar

Re: Create an NSCharacterSet constant

2009-11-01 Thread Matt Neuburg
I'm really asking, not arguing; I don't know anything about GCD) is this better than the traditional: + (Foo*) sharedFoo { static Foo* sharedFoo = nil; if (nil == sharedFoo) sharedFoo = [[Foo alloc] init]; return sharedFoo; } m. -- matt neuburg, phd = m...@tidbits.com, <http

CAAnimation retains its delegate

2009-11-02 Thread Matt Neuburg
ycle quite easily, thanks to the wonderful Instruments app. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#a

NSMatrix -renewRows:columns: doesn't change cell count

2009-11-02 Thread Matt Neuburg
eport the cells that are part of the actual matrix (i.e. rows * columns), not the whole bag of extra cells that the matrix is keeping on hand just in case. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript:

priming the NSBeep pump?

2009-11-03 Thread Matt Neuburg
, neither the thing that was requested nor the beep). Is there a way to "prime the pump" to eliminate this NSBeep() delay? 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.

Re: NSMatrix -renewRows:columns: doesn't change cell count

2009-11-03 Thread Matt Neuburg
On Mon, 02 Nov 2009 19:28:28 -0800, Matt Neuburg said: >If I say: > >[myMatrix renewRows:5 columns:5]; > >and then later: > >[myMatrix renewRows:3 columns:3]; >int i = [[myMatrix cells] count]; // i is 25 > >Is this a bug? Well, I have submitted it as one to Apple.

Re: Programming hot key

2009-11-04 Thread Matt Neuburg
eed it, users need it. The system must *know* this, since it responds to the global hot keys; so why won't it reveal this info? m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive

Re: UIView animation docs question

2009-11-04 Thread Matt Neuburg
s strings (selector names, key-value coding, etc.); there are so many places to go wrong, and when you do, it can be hard to debug. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Defin

Re: NSPopUpButton, Bindings & separator items

2009-11-04 Thread Matt Neuburg
v]; } Now use that NSMenu subclass where needed. The bound object uses addItemWithTitle to construct the menu, so our overridden method will be called and a separator item will appear wherever MYMENUSEPARATORSTRING occurs as the title in the bound content. m. -- matt neuburg, phd

Re: How to retrieve document type?

2009-11-05 Thread Matt Neuburg
crosoft Word document". > >How can I do that? Aren't you just asking for its kMDItemKind? So presumably you could get that with MDItemCopyAttribute (assuming I'm not misunderstanding the question). m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/&

Re: AHGoToPage function

2009-11-08 Thread Matt Neuburg
s nicer). Second, I hadn't >added the Carbon Framework. Now that I have done both, it works fine. Although it might not do to get too confident, since in Snow Leopard there is an acknowledged bug where use of AHGotoPage can cause Help Viewer to crash. Apple recommends use of AHLookupAnchor a

Re: Cocoa Sounds

2009-11-09 Thread Matt Neuburg
;Altogether quite annoying. > >And this won't help fix the same problem with NSBeep. Correct. I'm already doing various dances to try to "prime the pump" for my own NSSounds, but I have not found a way to "prime the pump" for an ordinary NSBeep. m. -- matt ne

Re: View swap using "push" animation

2009-11-10 Thread Matt Neuburg
"before" and "after" appearance of the window - so now I've got two images - and temporarily interpose a second window in which I perform the push transition from one image to the other. You might have to resort to something like that. m. -- matt neuburg, phd = m...@tidbi

Re: questions on memory issues

2009-11-10 Thread Matt Neuburg
The next time the view is referred to, an attempt will be made to load it again, but as you've discovered, we're now pointing at garbage. Also, note that if you're loading your view from a nib (via initWithNibName:), you're not supposed to override loadView at all. m. -- mat

Re: boundingRectWithSize:Option: and height constraint

2009-11-11 Thread Matt Neuburg
? It really is not at all difficult. The text system will lay out text for you in a container of a given size (if you don't want to use a view that already does this for you). See "Text System Overview," "Text Layout Programming Guide," etc. m. -- matt neuburg, phd = m...@

Re: Garbage collection and about windows

2009-11-11 Thread Matt Neuburg
n if you're not using garbage collection). Like chicken soup, it can't hurt; and declared properties (with a "retain" policy) make it easy to do correctly. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease poo

Re: NSXMLParser choking on single quotes

2009-11-12 Thread Matt Neuburg
iven the following string: > > >"The topic of Jim's discussion was on the yeti crab" But that isn't XML. Can you give an example using XML? That would make it possible for others to reproduce and consider the actual problem. m. -- matt neuburg, phd = m...@tidbits.com,

Re: boundingRectWithSize:Option: and height constraint

2009-11-12 Thread Matt Neuburg
sting examples - in other words, no coding at all. You have not said anything in this thread about what your *actual* needs are (i.e. what you're trying to print), but the text system already knows how to print lengthy styled text without worrying about lines being "cut off" by the pa

Re: CALayer Transitions

2009-11-15 Thread Matt Neuburg
From would raise a flag and actionForLayer could check that flag (in addition to checking the key). That's why I like this approach: it's so flexible. However, there are other ways to do it. By the way, there is an example almost *exactly* like this in the Actions section of the Core Anim

Re: Performance

2009-11-16 Thread Matt Neuburg
y Mgmt/Articles/mmAutoreleasePools.html "If you write a loop that creates many temporary objects, you may create an autorelease pool inside the loop to dispose of those objects before the next iteration. This can help reduce the maximum memory footprint of the application." m. -- matt neu

Re: CALayer Transitions

2009-11-16 Thread Matt Neuburg
ion Programming Guide. The animation is performed right now (and in the case of a BasicAnimation, *what* it animates is a property, designated by its keypath). The "key" is just an arbitrary name to help you refer to this animation later, if needed (as in removeAnimation:forKey:). m. &

Re: CALayer Transitions

2009-11-16 Thread Matt Neuburg
On Mon, 16 Nov 2009 10:25:07 -0800, Kyle Sluder said: >On Mon, Nov 16, 2009 at 9:23 AM, Matt Neuburg wrote: >> On Sun, 15 Nov 2009 22:38:04 -0600, Gordon Apple said: >>>    What I don't understand, is that, according to the core animation guide, >>>kCATransiti

Re: SB won't create an element on 10.5

2009-11-20 Thread Matt Neuburg
appscript is far more savvy and flexible about how it structures the Apple events that it translates your code into. Consult my online appscript "book" for further discussion of the vagaries of the "make" command, and how appscript deals with them (geared to

Re: Problems understanding CALayer geometry

2009-11-21 Thread Matt Neuburg
;s an encapsulation of the drawing done for that view. So if you want to cover a view with a *smaller* layer, it needs to be a sublayer of the view's layer. (Or, it could be the layer of a smaller subview of the view.) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/ma

Re: CATransition for whole windows?

2009-11-23 Thread Matt Neuburg
x27;s contentView). If you mean make the window dance around the screen somehow, please don't. ) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! htt

Re: death in dealloc

2010-03-14 Thread Matt Neuburg
clearly called out by use of NSZombies? Use of the "look around in your code" technique would then be unnecessary. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edit

Re: Properly using setNeedDisplayInRect

2010-03-17 Thread Matt Neuburg
the whole > view? drawRect hands you a parameter - the rect. So you write your code in such a way that you only draw material that is within (or, usually easier, material that intersects) that rect. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a too

Re: Directory to save file in NSSavePanel

2010-03-17 Thread Matt Neuburg
ts way in that case. That info is kept in your user defaults so you might be able to examine it. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Defini

Re: Cocoa sometimes raises "minor" exceptions without logging them

2010-03-17 Thread Matt Neuburg
g before the exception is handled so you're seeing the sausage being made. That's just a guess, but it explains why nothing gets logged - the exception never trickles up to the top level, for logging, because it's handled immediately after the point at which you are breaking. m.

Re: Threads Question

2010-03-18 Thread Matt Neuburg
dle (in response to the user cancelling, for example). m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescr

Re: How to Instantiate a Table View in existing View?

2010-03-21 Thread Matt Neuburg
hat you did, because the template looked like a simple solution, but then I realized I had merely bolluxed myself and limited my options, so I scrapped that and started over.) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease po

Re: UITable Views and display lags

2010-03-21 Thread Matt Neuburg
NSOperation should invoke a -performSelectorInMainThread method, rather than access the UI directly. I'm just curious: Why is it better to have a fetching NSOperation and a cleanup NSOperation dependent on it, rather than a single NSOperation that fetches and then tells the main thread to show the image? m. -- mat

Re: Automating Photoshop CS4?

2010-03-24 Thread Matt Neuburg
d that a lot of what it says transfers very easily to Objective-C and Photoshop. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://ww

Re: How to add a DOCTYPE declaration to an NSXMLDocument?

2010-03-30 Thread Matt Neuburg
r NSXMLNode. (2) You might be failing to check the archives. Doing either of these would have led you to the setName: method, which I suspect is what you're after here. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autore

Re: How to add a DOCTYPE declaration to an NSXMLDocument?

2010-03-31 Thread Matt Neuburg
ifferent class? Perhaps harmless, but again, not worth the risk. * Test rigorously. For example, in your previous note, you got the "right" answer in NSLog but the "wrong" answer when outputting to a file. That might mean something about what you did after the NSLog call - coul

Re: Adding Rows to a Table View

2010-03-31 Thread Matt Neuburg
>> [myFactTextString release]; And one other thought - you say you're gathering this data in a "secondary thread", so be sure to jump out to the main thread before calling something like insertRowsAtIndexPaths:withRowAnimation or reloadData. m. -- matt neuburg, phd =

Re: Adding Rows to a Table View

2010-04-01 Thread Matt Neuburg
l thing is to make it a property using retain (and you must then of course synthesize its accessors, and explicitly release it in your dealloc). When the nib is loaded, the ivar will be set (because of the outlet) using retain (because of the property). m. -- matt neuburg, phd = m...@tidbits.com

Re: [iPhone]Is it possible for apps to use the file sharing directory?

2010-04-06 Thread Matt Neuburg
the go-ahead before discussion >of anything new is allowed on this list. This applies to desktop OS >releases as well as iPhone OS releases. Anyone can read the iPad docs at Apple's site, without logging in. This is public information, so it's open to discussion anywhere.

where is the basic NSString literal escape documentation?

2010-04-19 Thread Matt Neuburg
(though it was not always). What documentation would tell the user about this? Thx - m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/defau

Re: where is the basic NSString literal escape documentation?

2010-04-19 Thread Matt Neuburg
On Apr 19, 2010, at 6:02 PM, Kyle Sluder wrote: > On Mon, Apr 19, 2010 at 5:44 PM, Matt Neuburg wrote: >> Supposing you were a complete C / Objective-C beginner. How would you find >> out what escape sequences are permitted in an NSString literal (that is, >> with @&qu

Re: [ANN]: RegexKitLite 4.0

2010-04-21 Thread Matt Neuburg
On Tue, 20 Apr 2010 15:45:13 -0400, John Engelhart said: >There are an awful lot of "Top 10" applications that use RegexKitLite >that don't acknowledge their use "An awful lot"? Ex hypothesi and by definition, there must be 10 such applications or fewer...

why doesn't the compiler complain?

2010-04-26 Thread Matt Neuburg
) I must be missing something unbelievably fundamental. What is it? Thx - m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Editio

Re: why doesn't the compiler complain?

2010-04-26 Thread Matt Neuburg
On or about 4/26/10 1:22 PM, thus spake "Greg Parker" : > On Apr 26, 2010, at 1:01 PM, Matt Neuburg wrote: >> Here's my test: >> MyClass: >> - (void) tryme: (NSString*) s; >> MyClass2: >> - (void) tryme: (NSArray*) s; >>MyClass* thing

Re: why doesn't the compiler complain?

2010-04-27 Thread Matt Neuburg
e compiler is silent: it's because it weren't, it would be too chatty. I turned on -Wselector and got 114 warnings... :) 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://tinyu

Re: Help! (Help Book does not register)

2010-05-03 Thread Matt Neuburg
k, so one suggestion is likely to be Don't Do That. Also the fact that you're getting the wrong help book (a frequent problem) suggests you need to hide the earlier version from the Finder and do a flush of the help caches. These are all common topics at apple-help-authoring... m. -- matt n

how would a beginner know about built-in outlets?

2010-05-10 Thread Matt Neuburg
ct an object that's a UIViewController (or a subclass thereof). But the UIViewController class documentation never mentions this fact; and neither does the header, if it comes to that. Doesn't this strike you as kind of odd? m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.c

Re: how would a beginner know about built-in outlets?

2010-05-10 Thread Matt Neuburg
of those, only view and searchDisplayController are outlets (in Interface Builder). Nothing in the UIViewController class documentation distinguishes these two; they are all just described as @property (not as @property IBOutlet, the way you'd do it in code). That's my point. m. -- mat

Re: scriptability of button in interface?

2010-05-23 Thread Matt Neuburg
do GUI scripting, but then it is not your app that is scriptable; it's System Events that is scriptable, and the Accessibility API is being used to click your app's buttons etc. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an

Re: window level

2010-05-25 Thread Matt Neuburg
hink this is not so UI-friendly What is not UI-friendly is your use of a modal window. Modal means the user can work *only* in *this* window. If that isn't you want, don't use a modal window. Or, when the user clicks the button, you should make the modal window close. m. --

nibs don't know about protocols?

2010-06-01 Thread Matt Neuburg
there seems to be no penalty: the nib doesn't complain, and the app runs fine. So... Are nibs just ignorant of protocols? Thx - m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Gu

Re: six things I wasn't able to do with Cocoa

2010-06-01 Thread Matt Neuburg
t array controllers and bindings, setting the data for a table view feels a lot more like it did with REALbasic. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! ht

Re: Help w/ first step of creating Help Book for app

2010-06-01 Thread Matt Neuburg
dn't find the correct info for how to make a Leopard-or-before Help book *anywhere* in Apple's non-legacy docs. Things are better now, but they're still not great. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorel

Re: nibs don't know about protocols?

2010-06-02 Thread Matt Neuburg
On or about 6/1/10 12:01 PM, thus spake "Kyle Sluder" : > On Tue, Jun 1, 2010 at 11:00 AM, Matt Neuburg wrote: >> So... Are nibs just ignorant of protocols? > > I don't believe the nib loading machinery checks protocol conformance > when it hooks up outlets.

The Unadopted Protocol

2010-06-02 Thread Matt Neuburg
;t bother adopting it anywhere, but send messages defined in that protocol to an id.) My question is, is this technique: (a) pointless and lazy (b) sneaky and clever (c) just a mistake all round (d) well known; you only just noticed this?? (e) all of the above (f) none of the above :) m. -- m

Re: The Unadopted Protocol

2010-06-02 Thread Matt Neuburg
On or about 6/2/10 11:11 AM, thus spake "Greg Parker" : > On Jun 2, 2010, at 8:57 AM, Matt Neuburg wrote: >> So this appears to be a technique for implementing a highly informal >> protocol. (The technique is: define a protocol, don't bother adopting it >> an

Re: The Unadopted Protocol

2010-06-05 Thread Matt Neuburg
On or about 6/2/10 11:11 AM, thus spake "Greg Parker" : > On Jun 2, 2010, at 8:57 AM, Matt Neuburg wrote: >> So this appears to be a technique for implementing a highly informal >> protocol. (The technique is: define a protocol, don't bother adopting it >> an

Re: Cross XIB references?

2010-06-05 Thread Matt Neuburg
NSNotification.) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! AppleScript: the Definitive Guide - Second Edition! http://www.tidbits.com/matt/default.html#applescriptthings __

Re: detecting touch and hold vs touch in UIButton

2010-06-05 Thread Matt Neuburg
On Fri, 4 Jun 2010 21:16:50 -0500, Alejandro Marcos Arag?n said: >I've been trying to detect touch and hold vs touch on a subclass of UIButton. I think you want to imitate Listing 3-3 of Event Handling in the iPhone Application Programming Guide, handling the touches yourself. m.

Re: Cross XIB references?

2010-06-06 Thread Matt Neuburg
o start with two instances that can see each other and have one load nib 1 and the other load nib 2. Another possible architecture is that nib 1 is loaded and one of the resulting instances then loads and is owner for another nib - so now that instance, which was instantiated by loading of nib 1,

Re: detecting touch and hold vs touch in UIButton

2010-06-06 Thread Matt Neuburg
On Sat, 05 Jun 2010 21:34:48 -0700, Matt Neuburg said: >On Fri, 4 Jun 2010 21:16:50 -0500, Alejandro Marcos Arag?n > said: >>I've been trying to detect touch and hold vs touch on a subclass of UIButton. > >I think you want to imitate Listing 3-3 of Event Handling in

  1   2   3   4   5   6   7   8   9   >