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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2008-06-04 Thread Matt Neuburg
an't quite be sure from the way you describe it). Or you could just google on "executeAppleEvent" to find out more. m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tin

Re: setFirstResponder to NSTextField fails 1st time, works next

2008-07-02 Thread Matt Neuburg
ng an NSLog inside the test to see whether it is passing/failing when you think it should be. > { > [_window makeKeyWindow]; > [_window makeFirstResponder:_searchText]; > } > NSLog(@"first responder: %@", [_window firstResponder]); >} m. -- matt neuburg, phd = [EMAIL PR

Re: Method Sees Populated Array As Empty

2008-07-05 Thread Matt Neuburg
our accessors or your memory management. Use debugging or logging to check that this is really the object you think it is. Since you don't show any code, it's hard to say more. m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a tool + an au

Re: NSAppleScript - compileAndReturnError always breaks with EXC_BAD_ACCESS

2008-07-05 Thread Matt Neuburg
gt;=== CODE END === This probably won't help much, but I copied and pasted your code into Xcode and it ran fine on every machine I've got... However, I don't have the version of Xcode that you have which we're not allowed to mention. m. -- matt neuburg, phd = [EMAIL PR

Re: controlling system muting ?

2008-07-08 Thread Matt Neuburg
ting. The technique is pretty well demonstrated here: http://www.cocoabuilder.com/archive/message/cocoa/2008/3/12/201211 m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tinyurl.c

Re: controlling system muting ?

2008-07-08 Thread Matt Neuburg
fore AppleScript will work **JUST FINE**. ;-) But that isn't what the OP asked. The OP asks *how* to do it without AppleScript - not *whether* to do it without AppleScript. Furthermore, the OP is right that running an AppleScript from within Cocoa/Objective-C is noticeably slower than going thru Co

Re: Receive notifications about frontmost application change

2008-07-10 Thread Matt Neuburg
ewly-trusted >process is running. If you have an easier way to accomplish your goal, go >for it. Copy and paste is pretty easy: http://www.cocoabuilder.com/archive/message/cocoa/2006/2/4/156003 m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a t

Re: Responder Chain Patching

2008-07-13 Thread Matt Neuburg
= [[myTableView enclosingScrollView] nextResponder]; [[myTableView enclosingScrollView] setNextResponder: self]; [self setNextResponder: r]; } It might help or it might make no difference at all, but that's the kind of thing that works for me... m. -- matt neuburg, phd = [EMAIL PROTE

Re: Custom NSCells

2008-07-13 Thread Matt Neuburg
bleColumn:row: in the table view's delegate. m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf> AppleScript: the Definitive Guide -

Re: NSUserDefaultsController, when does value change?

2008-07-14 Thread Matt Neuburg
ily complicated. Just use KVO to observe the desired value within the standardUserDefaults. You get a notification contining the old value and the new value. Welcome to the world of bindings. m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a tool + an autorele

Re: NSUserDefaultsController, when does value change?

2008-07-16 Thread Matt Neuburg
On Mon, 14 Jul 2008 19:36:29 -0700, "James W. Walker" <[EMAIL PROTECTED]> said: > >On Jul 14, 2008, at 9:34 AM, Matt Neuburg wrote: > >> On Sun, 13 Jul 2008 21:29:56 -0700, "James W. Walker" <[EMAIL PROTECTED] >> > >> s

Re: [[NSDate alloc] initWithString] crashes with valid string

2008-07-16 Thread Matt Neuburg
hat given a string @"Thu, 3 Jul 2003 09:45:01 -0600 " (notice the space after the 0600), NSDate dateWithNaturalLanguageString would crash with an "internal error". Maybe there are stray spaces or nulls or some other invisibles affecting your situation here. m. -- matt neuburg,

Re: Handling key equivalents in a controller class?

2008-07-16 Thread Matt Neuburg
's usual philosophy of delegation. > >Am I missing something? Implement keyDown: in the NSWindowController? I'm not seeing a reason why you need performKeyEquivalent to catch unmodified Esc and letter keys... Actually I'm fond of sticking a singleton NSResponder into the chain aft

Re: NSButton setKeyEquivalent doesn't seem to work

2008-07-16 Thread Matt Neuburg
key equivalent for the logIn Button is now /r, the login Button highlights blue and the key equivalent for signUpButton is "" but the logIn Button's action is not invoked if the return button is pressed. > >Any help would be appreciated. One thing that instantly comes to mind is that a

Re: Problem compiling first Cocoa app

2008-07-18 Thread Matt Neuburg
e what's wrong? Here is the error message: > >*error: can't exec >'/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/c opystrings' >(No such file or directory)* http://www.cocoabuilder.com/archive/message/xcode/2008/6/11/6 ? m. -- matt n

Re: Handling key equivalents in a controller class?

2008-07-19 Thread Matt Neuburg
On Thu, 17 Jul 2008 09:31:53 -0700, Jens Alfke <[EMAIL PROTECTED]> said: > >On 16 Jul '08, at 2:53 PM, Matt Neuburg wrote: > >> Implement keyDown: in the NSWindowController? > >keyDown: only gets sent to the key view, whether or not it handles >that keyst

Re: Handling key equivalents in a controller class?

2008-07-21 Thread Matt Neuburg
On Sat, 19 Jul 2008 12:34:45 -0700, Jens Alfke <[EMAIL PROTECTED]> said: > >On 19 Jul '08, at 8:52 AM, Matt Neuburg wrote: > >> Try it and see. Let's say we want to catch Esc directed to the >> window as a >> whole (to exit full screen mode, if I recall

Re: Spotlight and NSPredicate

2008-07-23 Thread Matt Neuburg
http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/Predicates/Article s/pSpotlightComparison.html m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4

Re: NSTableview Datasource and NSPopupbuttonCell

2008-07-28 Thread Matt Neuburg
ew:setObjectValue:... datasource method? It should be one or the other; either use bindings or use the NSTableDataSource protocol. m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: &

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-08 Thread Matt Neuburg
release, like this: NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [NSApp setApplicationIconImage: whatever]; [pool release]; I think you'll find that solves the problem. m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool +

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-09 Thread Matt Neuburg
On Fri, 8 Aug 2008 23:53:08 +0100, Mark Allan <[EMAIL PROTECTED]> said: >>On Fri, Aug 8, 2008 at 9:02 AM, Matt Neuburg <[EMAIL PROTECTED]> wrote: >>> On Thu, 7 Aug 2008 20:14:04 +0100, Mark Allan <[EMAIL PROTECTED]> >>> said: >>>>Hi all, &g

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-10 Thread Matt Neuburg
ed by Shark or MallocDebug or similar - and if so, what object? - or is it merely intuition based on a high-level virtual memory measurement like Activity Monitor? m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One o

Re: Controlling line-breaking in a text view

2008-08-10 Thread Matt Neuburg
=== >Normally, you should never >delete /Applications >= > >This happens because -shouldBreakLineByWordBeforeCharacterAtIndex: >never gets called for the '/' and the next time it gets called is for >the 'd' in 'dele

Re: Does [NSApp setApplicationIconImage] leak memory?

2008-08-10 Thread Matt Neuburg
On or about 8/10/08 4:37 PM, thus spake "Kyle Sluder" <[EMAIL PROTECTED]>: > On Fri, Aug 8, 2008 at 9:02 AM, Matt Neuburg <[EMAIL PROTECTED]> wrote: >> Wrap each call to setApplicationIconImage in an autorelease pool creation >> and release, like this:

Re: Newbie Question on "self"

2008-08-11 Thread Matt Neuburg
ors; some will say that you should always implement an accessor and say [self setMyString: whatever] instead. Personally, I know when I need to pass thru the accessor for memory-management or KVC and when I don't, so there are plenty of times when I still say self->myString. m. -- matt neubur

Re: Allowing menu item selection in a modal session

2008-08-13 Thread Matt Neuburg
bclass the application class, declare your subclass as the target's primary class, and in your subclass implement validateMenuItem and worksWhenModal. See, always see: http://www.cocoabuilder.com/archive/message/cocoa/2004/10/7/119051 m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.t

mark added object in NSArrayController as "dirty"?

2008-08-27 Thread Matt Neuburg
the user has done some editing in every field, so that when the user leaves this selection for another, every field will be validated? m. -- matt neuburg, phd = [EMAIL PROTECTED], http://www.tidbits.com/matt/ pantes anthropoi tou eidenai oregontai phusei Among the 2007 MacTech Top 25, http://ti

Re: mark added object in NSArrayController as "dirty"?

2008-08-28 Thread Matt Neuburg
it would help me if I could just fool the system into thinking that the user has edited any field at all. Being *in* a field is not enough to do this; you have to *change* the field. But I need to do this in a way that makes the system think the *user* changed the field... m. -- matt neub

Re: mark added object in NSArrayController as "dirty"?

2008-08-29 Thread Matt Neuburg
gt; >Feel free to ignore this if I'm off base here. Not at all, I think your view is very sensible - thanks! m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tinyurl.c

Re: Preference panes and Apple Help

2008-09-04 Thread Matt Neuburg
me (legacy), an FSRef is not a pointer; it's just a struct. Objective-C is C. Therefore this is an ordinary local variable; the 80 bytes on the stack are cleaned up when the variable goes out of scope. m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a

Re: Using control:didFailToFormatString:errorDescription:

2008-09-08 Thread Matt Neuburg
ys return value should be: > Return Value > YES if the value in the string parameter should be accepted as is; otherwise, > NO if the value in the parameter should be rejected. If you don't like the string, you should not be returning YES. m. -- matt neuburg, phd = [EMAIL PROTECTED], &

Re: Using control:didFailToFormatString:errorDescription:

2008-09-09 Thread Matt Neuburg
On Tue, 9 Sep 2008 12:10:10 +1000, Rohan Lloyd <[EMAIL PROTECTED]> said: > >On 9 Sep 2008, at 12:48 AM, Matt Neuburg wrote: > >> On Mon, 8 Sep 2008 11:23:30 +1000, Rohan Lloyd > [EMAIL PROTECTED]> said: >>> I don't like the vague "Format Error&qu

Re: determining system idle time in leopard

2008-09-18 Thread Matt Neuburg
sage/cocoa/2004/10/27/120354 > >is this still the best way to do it on leopard? > Is this the sort of thing you're after? http://ryanhomer.com/blog/2007/05/31/detecting-when-your-cocoa-application-i s-idle/ m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com

Re: How to interrupt a long loop with command-period?

2008-03-30 Thread Matt Neuburg
me yet) is do the hard work in a thread. This leaves the main event loop open. So, the user does whatever (press the Stop button, type Esc or Command-period, etc.) and I hear about it immediately. I then raise a flag (i.e. set a boolean). Meanwhile my hard-working code is periodically checking th

Re: Need for a creator code?

2008-04-04 Thread Matt Neuburg
double-clicked with Xcode or Coda, behavior that drives me insane. I wish TextMate *would* mark files it creates as belonging to itself. Some apps (e.g. Script Debugger, which deals in .scpt files that might also be opened by Script Editor) make this a pref; that seems reasonable behavior. m. --

automatic table scrolling when nsarraycontroller selection changes

2008-12-17 Thread Matt Neuburg
doesn't. Is there some new setting I can use to get the Tiger behavior to happen on Leopard? Thx - m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf>

Re: automatic table scrolling when nsarraycontroller selection changes

2008-12-17 Thread Matt Neuburg
chaimurthy=mcafee@lists.apple. > com] On Behalf Of Matt Neuburg > Sent: Thursday, December 18, 2008 1:00 AM > To: cocoa-dev@lists.apple.com > Subject: automatic table scrolling when nsarraycontroller selection > changes > > My app is very simple and involves an NSTableView

Re: automatic table scrolling when nsarraycontroller selection changes

2008-12-23 Thread Matt Neuburg
On or about 12/17/08 1:11 PM, thus spake "Matt Neuburg" : >> My app is very simple and involves an NSTableView of one column bound to >> an array controller. The app runs both on Tiger and Leopard. On Tiger, >> when my code changes the array controller selection (e.g.

Re: Cocoa Apple Script Problem

2008-12-25 Thread Matt Neuburg
of your code it's hard to guess what other important pieces of the puzzle you may be omitting. :) m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4p

Re: Making an object release itself?

2008-12-31 Thread Matt Neuburg
'; There is certainly nothing wrong, on the face of it, with an object telling itself to release. This is quite common for singleton and temporary objects (just what you're dealing with). m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an au

Re: Initial Prefs Setting Of Checkbox?

2008-12-31 Thread Matt Neuburg
at is, the "initial" value for user defaults before the user has had any chance to express an opinion) before the app even finishes loading for the first time. That is exactly what "registerDefaults" is for. In some cases, finding a sufficiently early entry point can be a chall

Re: Initial Prefs Setting Of Checkbox?

2008-12-31 Thread Matt Neuburg
Yes - the problems that you were experiencing that you described in your original post. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf> AppleScript

Re: Enable Scripting Failing - Missing something? Based on SimpleScripingVerbs sample

2009-01-14 Thread Matt Neuburg
criptability. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf> AppleScript: the Definitive Guide - Second Edition! <http://www.a

Re: Report writer for Cocoa?

2009-01-14 Thread Matt Neuburg
can have your own special NSView subclasses that know how to draw themselves, and combine them within superviews, and now everything becomes very tight and simple and object-oriented and easily maintained. If you want to design certain aspects of a view in IB, of course you can, and you c

Re: NSUserDefaultsController not updating defaults via binding

2009-01-22 Thread Matt Neuburg
efaults, neither of which knows how to do that, so you didn't get bidirectionality. A simple solution is to add a second binding between the class property and the user defaults running the other way. m. -- matt neuburg, phd = m...@tidbits.com, <http://www.tidbits.com/matt/> A fool +

<    3   4   5   6   7   8   9   >