her I'm doing this totally wrong or the docs are
describing it incorrectly or no one in the world has actually tried this except
me! Thx - m.
--
matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, ht
but then they should say
what that situation is. I've been looking for it all day and haven't found
it... m.
--
matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
Progra
On Dec 19, 2011, at 4:05 PM, Kyle Sluder wrote:
> On Mon, Dec 19, 2011 at 3:55 PM, Matt Neuburg wrote:
>> So both self and its parent do in fact have their definesPresentationContext
>> property set to YES, and yet neither is being returned as the value of the
>> pro
On Mon, 19 Dec 2011 15:55:49 -0800, Matt Neuburg said:
>The docs say:
>
>> @property(nonatomic, readonly) UIViewController *presentingViewController
>> Discussion
>> The default implementation of this property walks up the view hierarchy,
>> starting from this v
ng else is going on here; perhaps you haven't quite gotten
to the root of your problem yet. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook__
On Mon, 19 Dec 2011 10:39:26 -0800, Matt Neuburg said:
>According to the docs:
>
>> @property(nonatomic, assign) BOOL providesPresentationContextTransitionStyle
>> Discussion
>> If the value of this property is YES and the value of the
>> definesPresentationCon
On Dec 22, 2011, at 3:58 PM, Roland King wrote:
>
> On Dec 23, 2011, at 1:19 AM, Matt Neuburg wrote:
>
>> On Thu, 22 Dec 2011 21:13:07 +0800, Roland King said:
>>> You used to get a handy message logged to the console when an object with
>>> KVO registered
On Thu, 22 Dec 2011 10:27:32 -0800, Kyle Sluder said:
>On Dec 22, 2011, at 8:59 AM, Matt Neuburg wrote:
>
>> Okay, I did eventually find the situation in which the docs are correct. It
>> only took me two days to figure it out.
>>
>> But it is up to the docs
e of; getting sneaky with
accessors is a way to trip oneself up later... I'd examine that getter if I
were you. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#i
On Sat, 19 Nov 2011 07:28:07 -0800, Matt Neuburg said:
>On Fri, 18 Nov 2011 16:22:14 -0500, David Hoerl said:
>>I have a Xcode 4.2 project with a dozen or so nibs. I'm in the process
>>of assuring that all the resizing is set up properly.
>>
>>I find that a sma
On Sat, 24 Dec 2011 10:32:49 -0800, Kyle Sluder said:
>On Dec 24, 2011, at 10:04 AM, Matt Neuburg wrote:
>I'm under the impression that the default segues consult the
>definesPresentationContext property to configure the actual animation. I could
>of course be mistaken.
On Dec 25, 2011, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote:
> I am very new to Xcode and iPad development. I am trying to do the following:
>
> I have an initial NavigationController and ViewController. I am trying to go
> from a button on the ViewController to a SplitViewController
without any communication to or from the rest of the company. It's
totally gone its own way (else the table view cells stuff would have migrated
back to the nib editor).
m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease
t;
See my examples, both in the book online and in the downloadable code examples,
for the iOS 5 revision of my book. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html
, I think we agree, there's no point throwing out the baby with the
bathwater. But I look forward to a better baby! :) m.
--
matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl
an on screen view. Trying to
>think what would be different in a popover.
>
I'll try to do some testing too - it's perfectly possible that you've
discovered a bug. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease p
t what I think are some pretty good examples on my github
repository, including a complete implementation that imitates the new iPad Mail
interface:
<https://github.com/mattneub/Programming-iOS-4-Book-Examples/blob/master/convertedToIOS5/p560p575splitViewNoPopover/p560p575splitViewNoPo
u're told to do a certain dance, just do the dance. What my example
tries to do is show you exactly what the dance is supposed to look like:
<https://github.com/mattneub/Programming-iOS-4-Book-Examples/tree/master/convertedToIOS5/p476containerController>
m.
--
matt neuburg, phd = m..
lication is for iPhone.
>
>Can anyone help me ?
>
What TidBITS News does is use NSURLConnection and Kevin Ballard's RSS-parsing
code ("FeedParser"). m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool
011 video again; you're explicitly told that this is exactly
why the weak-strong dance includes a nil test against the strong self inside
the block. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Pr
> Although I have an open bug report on this issue (and I'm reliably informed
> that Apple are looking into it) I wonder if there is a Cocoa equivalent that
> I may use instead.
>
> Thank you for any suggestions.
I suggest you ask on the applescript-implementors list. m.
--
mat
red size and aspect ratio
*before* you put it in the button. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook
e me
UIPageViewController, I scrapped my earlier architecture to use that instead;
if you can afford to run iOS 5 only, I strongly suggest you do the same, as the
earlier technique, though viable, is a heck of a lot of work. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net
http://www.cocoabuilder.com/archive/cocoa/310977-nsdateformatter-not-working-on-ios-5.html
See the explanation from Peter Edberg at Apple:
=
The change in parsing of abbreviated time zone names in iOS 5.0 is a result of
an intentional change in the open-source ICU 4.8 library (and the open
utton. One
appears as an image inside the button (to the left of the title, by default, if
there is one). Can you guess from their names which is which? m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
uoted here) like it *is* a leak. You may even have a retain
cycle. What's the basis for saying "it's not a leak"?
In any case instruments will show you who's retaining your object. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a too
rom a cross platform perspective.
Oooh, this does look helpful; thanks for posting the link! m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 5! http://shop.oreilly.co
ter which way the view was instantiated. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 5! http://shop.oreilly.com/product/0636920023562.do
___
Cocoa-dev mailing
d
call dispatch_asynch? Putting it even more generally (and this is probably my
*real* question), is there any reason why I'd ever use NSOperationQueue's
addOperationWithBlock given the existence of GCD?
Thx for your thoughts - m.
--
matt neuburg, phd = m...@tidbits.com, http://www
This might be another way of phrasing the same question: why does the new iOS 5
method +[NSURLConnection sendAsynchronousRequest:queue:completionHandler:] want
an NSOperationQueue as its queue rather than a dispatch queue? m.
--
matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt
thout writing a trampoline method, I'm avoiding the nightmare
of storing my observers in an instance variable, op and op2 are the same object
- everything about it seems to be okay. My questions are:
* Is this really an okay way to talk?
* Why was I crashing until I said __block
blocks you've got GCD. 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
TidBITS, Mac news
released, it doesn't matter what I name the method: the analyzer is
unhappy. And under ARC it isn't clear what I can do about this, since I can't
autorelease anything and I can't invite ARC to do so (and anyway I don't want
to). Only adding CF_RETURNS_RETAINED
On Wed, 15 Feb 2012 13:56:14 -0800, Kyle Sluder said:
>On Wed, Feb 15, 2012 at 11:19 AM, Matt Neuburg wrote:
>> My question is simply this: in a world that has GCD, is there any reason why
>> we wouldn't have "queue" be a GCD dispatch queue (probably the main queue
On Wed, 15 Feb 2012 16:20:50 -0800, Greg Parker said:
>On Feb 15, 2012, at 12:58 PM, Matt Neuburg wrote:
>Are you using GC or ARC? I think this is safe with GC but not safe with ARC,
>but I'm not an expert in the NSNotificationCenter machinery.
ARC, but I don't see how it
Never mind the async talk in my previous answer. You mean what I know; my point
was, I now get the idea about why it's important that the block is executed
later. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
On Feb 16, 2012, at 12:05 PM, Greg Parker wrote:
> On Feb 16, 2012, at 8:22 AM, Matt Neuburg wrote:
>> On Wed, 15 Feb 2012 16:20:50 -0800, Greg Parker said:
>>>
>>> Are you using GC or ARC? I think this is safe with GC but not safe with
>>&g
On Feb 16, 2012, at 9:34 AM, Kyle Sluder wrote:
> I must correct myself: NSOperationQueue uses GCD on iOS 4 and higher
Good; I thought so, but you made me doubt it... :) m.
--
matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phu
On Feb 16, 2012, at 12:45 PM, Greg Parker wrote:
> On Feb 16, 2012, at 12:42 PM, Matt Neuburg wrote:
>> On Feb 16, 2012, at 12:05 PM, Greg Parker wrote:
>>>
>>> The question is, who retains the observer? The __block __weak variable does
>>> not, because
On Feb 16, 2012, at 4:16 PM, Greg Parker wrote:
> On Feb 16, 2012, at 12:57 PM, Matt Neuburg wrote:
>> On Feb 16, 2012, at 12:45 PM, Greg Parker wrote:
>>> On Feb 16, 2012, at 12:42 PM, Matt Neuburg wrote:
>>>> On Feb 16, 2012, at 12:05 PM, Greg Parker wrote:
>
On Feb 18, 2012, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote:
> Date: Sat, 18 Feb 2012 18:39:55 +
> From: steven Hooley
> To: Fritz Anderson
> Cc: cocoa-dev@lists.apple.com
> Subject: Re: __block __weak - am I doing this right?
> Message-ID:
>
> Content-Type: text/plain; cha
t;id x = [Foo methodWithBlock:^{ return x; }];
Yes, the static analyzer catches that now (even in an Xcode as old as Snow
Leopard Xcode 4.2). That was a *huge* help to me in arriving at the correct
formulation. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A foo
the slot
pointed to by the variable and not letting some other string slip into it. In
other words, believe in zombies, not in your intuitions about how everything
looks okay. :) m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool =
to the run
>loop, and won't run the run loop for you.
What made this light bulb come on for me was watching the video of Quinn's
incredibly great lecture from WWDC 2010; in particular, see Session 208. Wow.
See also his MVCNetworking example, which demonstrates the architecture he
they'd insist on having those problems solved.
(2) Watch the WWDC 2012 videos *carefully* and look at how the presenters
interact with Xcode 4. They encounter bugs all the time and either skip past
them or are stymied by them. This makes me think they are not familiar with or
dependent on
ods you've implemented, so you can't play fast and loose like
this. 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/R
On Wed, 29 Feb 2012 09:28:31 -0800, Matt Neuburg said:
>>
>> On 28 feb 2012, at 22:26, Lee Ann Rucker wrote:
>>
>> > Plus there's no [...] jump to documentation.
>>
>>
>> Is too!
>>
>> Option+DoubleClick
>>
>
>*N
exturedBackgroundWindowMask
>
> I don't see what the relation between these is. Is there any?
Consider the NSPanel style mask values:
enum {
NSUtilityWindowMask = 1 << 4,
NSDocModalWindowMask = 1 << 6,
NSNonactivatingPanelMask = 1 << 7
NS
;s say that its view (self.view)
contains a UIImageView in its hierarchy (self.view.imageview). You are saying
that the runtime might summarily rip the UIImageView out of the interface, so
that self.view is *not* nil but self.view.imageview *is* nil???
m.
--
matt neuburg, phd = m...@tidbits.com, <h
so
I'd suggest filing a bug. Poke the hornet's nest and see what flies out of
it... m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edi
ame: is just the wrong time to do this. What if you implement
layoutSublayersOfLayer: in the UIView subclass?
m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Defini
g the property without the ivar
meant that I was implicitly creating the ivar. And as far as the superclass is
concerned, it does mean that. Why doesn't the subclass know about this? Thx! m.
--
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai ore
On Feb 1, 2011, at 7:23 PM, Kyle Sluder wrote:
> On Tue, Feb 1, 2011 at 7:14 PM, Matt Neuburg wrote:
>> Of course I can fix this in several ways, of which the most obvious is to
>> declare the ivar "text" explicitly in the interface for MySuperClass. But
>> I
On Feb 1, 2011, at 7:50 PM, Greg Parker wrote:
> when @synthesize does create an ivar, the ivar it creates is @private
That's what I needed to know - thanks! m.
--
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among
issue, but I can't find it, I'm explicitly
>doing everything in the one method, removing layers or removing their contents
>before they are resized etc, so the only thought I'm left with is that core
>animation is shifting the actual work to another thread, even when I'
layer.
My impulse, therefore, is to say: don't be lazy, use a thumbnail-size version
of the image, even if that "complicates the code".
m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool
;in my App Delegate.
NSUserDefaults' standardUserDefaults *is* a singleton. Just call
registerDefaults: in didFinishLaunching... and you're done. (There is no need,
in iOS, to do it any earlier, as with +initialize, because there are no
bindings in iOS.) m.
--
matt neuburg, phd = m...@tidbits.com
"Italic". Is there a better way
>to get the common style names for display?
>
I doubt anything has actually changed. Some fonts, like Courier and Helvetica,
have an oblique variant; some have an italic variant; some have neither.
Exactly what font family are you starting with? m.
saved / gained by not initializing them was
> wasted, for all of time, the first time I had to debug the segfault.
So the take-home message is: To touch "error" after this call without first
learning that "file" is nil is wrong and can lead to undefined behavior. But
n
or:(NSError **)error
> ...
> error
> An out value that returns any error encountered during initialization.
> Returns nil if the regular expression pattern is invalid.
Really? :) m.
--
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
pantes anthropoi to
y come to the front using Carbon Events.
<http://www.cocoabuilder.com/archive/cocoa/155984-detecting-frontmost-application.html>
m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definiti
On Feb 9, 2011, at 11:19 AM, Bill Bumgarner wrote:
>
> On Feb 9, 2011, at 10:51 AM, Matt Neuburg wrote:
>
>>> error
>>> An out value that returns any error encountered during initialization.
>>> Returns nil if the regular expression pattern is invalid.
>
w me down. My big
> guess is number 2.
>
> On Feb 9, 2011, at 12:55 PM, Matt Neuburg wrote:
>
>> On Wed, 9 Feb 2011 09:23:45 -0600, "Mr. Gecko" said:
>>> Hello, I am wondering how I can get the last front application
>>> ProcessSerialNumber so I can
Basically you're making a histogram, which is a well-solved problem. If order
matters, use both the dictionary *and* some other storage to keep track of the
words in the order in which they actually appear. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool
> Date: Fri, 11 Feb 2011 12:21:29 +
> From: Joanna Carter
> Subject: Performing the selector from a stored IMP
>
> I want to store a "method pointer" in a dictionary, recover it and call it
> from elsewhere in code.
>
Consider NSInvocation... m.
--
matt
ny* method call into an NSInvocation, on the spot! It isn't
doing this by magic; it's using Objective-C's wonderful runtime. And so can
you. m.
--
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007
> Message: 4
> Date: Sat, 12 Feb 2011 12:43:26 -0800
> From: Chase Latta
> Subject: Canceling NSInvocationOperation
>
> I guess the root of my question is how do I access the
> operation from within my method that I am passing to
> initWithTarget:selector:object when I create my invocation oper
pover size the same for all panels, so it avoids the
> problem.
>
>
> On 12/17/10 10:49 AM, "Matt Neuburg" wrote:
>
>> On Thu, 16 Dec 2010 14:37:00 -0600, Gordon Apple said:
>>> I've Googled this and have seen that others have had this problem,
Then in the ViewDidLoad set the saved off
> search text on UISearchBar. This actually performs the search as if the user
> typed in the text.
>
>
> On Jan 2, 2011, at 3:20 PM, Matt Neuburg wrote:
>
>> On Sat, 01 Jan 2011 10:36:01 -0600, Donald Largen said:
&
good all-around place to cover resuming from interruptions of any kind. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptt
s a serious concern, just put an assert that the current thread *is*
the main thread into your awakeFromNib implementation. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edit
ee now that
Quincey Morris has said this too.) If this is problematic, your code needed
refactoring anyway! m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.a
way, others can test, reproduce, consider. In your email
as it stands there is nothing to respond to. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
h
t allows view
unloading to take place, you have to cover your bases. A solution might be
something like this:
- (void)viewDidUnload {
[super viewDidUnload];
self.toolbarItems = self.toolbar.items; // property with retain policy
}
- (void)viewDidLoad {
[super viewDidLoad];
be unloaded and the problem won't arise. I did
sort of suggest this the last time we discussed this topic; I just didn't spell
it all the way out. m.
On Wed, 16 Feb 2011 13:42:28 -0800, Matt Neuburg said:
>>On Sun, 16 Jan 2011 18:35:45 -0500, Phillip Mills
>>said:
>&
wFromRect:CGRectMake(472.0, 633.0, 58.0, 29.0) inView:aView
> animated:YES];
>
>In this case, I get the nicer, scrollable sheet...but it will not scroll far
>enough to leave the bottom two buttons on the screen (scrolls and bounces
>back).
>
>Solutions would be nice, of course, bu
//stackoverflow.com/questions/1181637/storing-and-retrieving-unsigned-long-long-value-to-from-nsstring
m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
htt
Assets Library framework. One of the
WWDC 2010 videos is devoted to this very topic. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.n
hem with something else (another view, or even a secondary
window). You can cover the intervening time with a progress indicator of some
sort. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive G
s directly, rather than letting drawRect: call it? m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings
ld give me better results and not consume too much CPU?
Your approach 2 sounds like the way Apple's Metronome example is implemented,
so be sure to take a look at that. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
ocalization. Then when you've proved to yourself that
this works, you can build outwards. See my screencast showing how to do it:
http://www.apeth.com/writersua/implementAppleHelp.mov
m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorele
better off using concurrent operations. What is
>not clear to me is, if I provide a callback to an asynchronous API, on
>which thread is the callback called?
You might be helped by studying Apple's (really Quinn's) MVCNetworking example.
See esp. Networking/NetworkManager.m.
m.
--
mat
tap to make
the button jump to where you tapped. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth
grid of tappable icons. No
third-party code needed. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth
animatable property, and they will be animated together (and therefore you'll
get to redraw the presentation layer on every frame) when the redraw moment
arrives and the animation is actually performed. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A
o an
end, unless you retain it. You may be confusing this with that. Even in that
case you don't have ownership; you just have some extra persistence time while
your code continues to run. And this makes sense, because there is no other
owning obje
CALayer plus touches, as someone
has said). But in general my view is: don't be afraid of Core Animation. It is
not difficult and it puts the power directly into your hands.
m.
--
matt neuburg, phd = m...@tidbits.com, http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phus
read:
http://www.cocoabuilder.com/archive/cocoa/297736-why-can-a-modal-view-controller-present-another-in-viewdidload.html
Note that I suggested delayed performance in viewDidLoad and he slapped me
around for a while. :) So now I'm warning everyone else! :))
m.
--
matt neuburg, phd = m...@
On Mar 3, 2011, at 4:35 PM, Kyle Sluder wrote:
> On Thu, Mar 3, 2011 at 4:20 PM, Gerriet M. Denkmann
> wrote:
>> But, taking my original example:
>>
>> NSAttributedString * attributedString = ...
>> NSFont *aFont = [ attributedString attribute: NSFontAttributeName atIndex:
>> 0 effectiveRang
On Mar 3, 2011, at 7:32 PM, Graham Cox wrote:
> On 04/03/2011, at 11:54 AM, Matt Neuburg wrote:
>
>> because NSString is a very, very special case. Memory management for strings
>> is utterly different from memory management for a normal object
>
>
> Is it?
>
you're observing is this, and has
nothing to do with viewDidAppear: per se.
m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 4!
http://www.apeth.net/matt/default.html#iosbook__
ifferent
matter.)
What you say about viewDidLoad is perfectly true, but should not be an issue
provided you do in viewDidLoad only things that are suitable for viewDidLoad
(i.e. things that can do no harm if done more than once).
m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apet
yourself in textFieldDidEndEditing. See the section entitled "Validating
Entered Text" (along with the preceding section) in the "Managing Text Fields
and Text Views" chapter of the Text, Web, and Editing Programming Guide for iOS.
m.
--
matt neuburg, phd = m...@tidbits.co
g?
It's no use just saying "example:"; you have to have a way to tell it what
"example:" *is* - i.e. you have to bind the namespace - and you don't have a
way to do that from here. One option is to bypass the namespace altogether:
nodesForXPath:@"//*[local-nam
ration you're going to *have* to build a new object.
Your reluctance to do so (and even to accept what the docs are plainly telling
you) suggests you may just need to refactor somehow. m.
--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an au
ttp://heath-tech.blogspot.com
>
>
>
>On Sat, Mar 5, 2011 at 2:27 PM, Matt Neuburg wrote:
>> On Fri, 04 Mar 2011 14:25:06 -0600, Heath Borders
>> said:
>>>I'm trying to parse a document with a namespace declared on a non-root
>>>element:
>>>
On Mon, 07 Mar 2011 09:02:36 -0800 (PST), Jon Sigman said:
>On Sat, 05 Mar 2011 11:22:46 -0800 Matt Neuburg wrote:
>> One possible approach on iOS is to implement textFieldShouldEndEditing, and
>>return NO and put up an alert if there's a problem. Another is just to m
On Mar 7, 2011, at 9:54 AM, Jon Sigman wrote:
> On Mon, March 7, 2011 9:30:05 AM Matt Neuburg wrote:
>
> > The "Return" key invokes textFieldShouldReturn: and does *not*
> > automatically resign first responder ...
>
> Ah! That is the part I had been overloo
space:def];
NSXMLNode* xsi = [NSXMLNode predefinedNamespaceForPrefix:@"xsi"];
[e addNamespace:xsi];
NSXMLNode* loc = [NSXMLNode attributeWithName:@"xsi:schemaLocation"
stringValue:@"http://example.com/document
document.xs
201 - 300 of 856 matches
Mail list logo