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
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
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
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
[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
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
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
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
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
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
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."
>>
>>
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 =
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
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
>
- 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
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
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
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
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
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
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
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
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.
>
>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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
>&
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.
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
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
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
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
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
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
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'
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
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
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
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
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
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
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
= [[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
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 -
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
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
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,
'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
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
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
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
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
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
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: &
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 +
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
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
===
>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
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:
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
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
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
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
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
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
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], &
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
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
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
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.
--
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>
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
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.
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
';
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
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
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
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
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
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 +
701 - 800 of 856 matches
Mail list logo