Re: STAssertEquals and type-checking

2011-08-16 Thread Eeyore
elp/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/eeyore%40monsterworks.com > > This email sent to eey...@monsterworks.com > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Retain/Release and Properties clarification

2011-10-03 Thread Eeyore
Not enough morning coffee for you, On Oct 3, 2011, at 7:29 AM, Steve Sisak wrote: > You do, indeed want: > > self.audioPlayer = [self getSoundFile:"soundfile.wav"]; > > or > > [self setAudioPlayer = [self getSoundFile:"soundfile.wav"]]; I think you meant [self setAudioPlayer:[self getSoundFil

IBOutlet getter/setter pattern question

2011-10-16 Thread Eeyore
I noticed that I many of my IBOutlets were only being used to modify the view from the viewDidLoad methods but which were not accessed later in my code. These outlets exist so that I can keep consistent appearance settings in a large number of nibs without actually editing each nib. As a simplif

Re: IBOutlet getter/setter pattern question

2011-10-17 Thread Eeyore
t; Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/optio

Re: IBOutlet getter/setter pattern question

2011-10-18 Thread Eeyore
Thanks Matt, was kind of hoping you would provide some insight (your responses to others have been helpful). > Very ingenious, but doesn't it leave a lot of stuff lying around that is just > an accident waiting to happen? You are assuming that setLabel: will be called > only by the nib-loading

Re: NSDateFormatter -initWithDateFormat:: vs. -init

2011-11-11 Thread Eeyore
I think there was a similar discussion on this list earlier this year (maybe late last year). IIRC, the conclusion was that "init" was removed from the documentation since it is inherited from its superclass' superclass (NSObject) and doesn't do anything exceptional in NSDateFormatter, however i

Re: Block Confusion...

2012-01-31 Thread Eeyore
On Jan 31, 2012, at 3:49 PM, R wrote: > David, > Class B is a parser. It is passed NSData to parse (weak reference) > and the Array (weak reference) from Class A. The results of the Data > parse are placed into the Array. Class A will be around for the life > of the application. Class B will

Re: [Obj-C] if (self) vs. if (self != nil)

2012-02-26 Thread Eeyore
_ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription:

Re: Proper way to create a singleton without @synchronized ?

2011-04-17 Thread Eeyore
On Apr 17, 2011, at 12:58 PM, Quincey Morris wrote: > On Apr 17, 2011, at 12:04, WT wrote: > >> On Apr 17, 2011, at 3:52 PM, Joanna Carter wrote: >> >>> > >>> Tell me; maybe it's my background in other languages, but I would tend to >>> use a "static class" as a singleton; or, at least, desi

Re: iOS Best Practice Question

2011-04-26 Thread Eeyore
On Apr 26, 2011, at 2:51 PM, glenn andreas wrote: > > On Apr 26, 2011, at 4:36 PM, koko wrote: > >> So we have one vote for: >> >> 3. Use a view in a layer of the current view >> >> Any other views (no pun intended) ... going once going twice >> >> Any comments against : >> >> 1. Use

Re: iOS: multiple view controllers, one nib?

2011-05-18 Thread Eeyore
cocoa-dev/luketheh%40apple.com >>>> >>>> This email sent to luket...@apple.com >>> >> >> ___ >> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.

Re: Seeding random() randomly

2011-05-26 Thread Eeyore
%40gmail.com >> >> This email sent to chasela...@gmail.com >> > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact th

Re: Synthesised properties and additional actions

2011-06-19 Thread Eeyore
> > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > htt

Re: Properties, Attributes and Retain+Autorelease

2011-06-29 Thread Eeyore
Still learning Cocoa myself, so hoping to be corrected if I'm wrong. On Jun 29, 2011, at 10:39 AM, Markus Hanauska wrote: > "Cocoa’s ownership policy specifies that received objects should typically > remain valid throughout the scope of the calling method. It should also be > possible to retur

Re: Calling getter on const object

2010-11-09 Thread Eeyore
pe >>> 'objc_object* const' >> >> -- >> David Duncan >> > > _______ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to th

Re: What is Mac's "custom" for an agent to display its GUI?

2010-11-16 Thread Eeyore
oa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/eeyore%40monsterworks.com > > This email sent to eey...@monsterworks.com > ___ Cocoa-dev mailing

Re: NIB Object instantiation of missing class

2010-12-01 Thread Eeyore
erator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/eeyore%40monsterworks.com > > This email sent to eey...@monsterworks.com > __

Re: iOS Pass NSManagedObjectContext from my app delegate

2011-01-20 Thread Eeyore
On Jan 20, 2011, at 4:46 PM, Nick Zitzmann wrote: > > On Jan 20, 2011, at 5:25 PM, Philip Vallone wrote: > >> Currently, my NSManagedObjectContext is retained like this in my app >> delegate: >> >> @property (nonatomic, retain, readonly) NSManagedObjectContext >> *managedObjectContext; > >

Re: String Constants the solution

2012-03-08 Thread Eeyore
On Mar 8, 2012, at 4:29 PM, Prime Coderama wrote: > I have references to 'ground' and 'air' in multiple files. It is usually used > in this context, but not always. >> if ([transport.type isEqualToString:@"ground"]) { >>// do something for automobiles >> } >> else if ([transport.type isEq

Re: Newbie Q: how print NSArray element from Xcode's debugger?

2012-03-15 Thread Eeyore
Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/eeyore%40monsterworks.com > > This email sent to eey...@monsterworks.com > __

Re: Why so many public properties all up in my grizzle?

2012-03-16 Thread Eeyore
David Duncan indicates that some of this can be alleviated with newer runtimes, but Objective C's messaging system allows you to send messages to objects even if those messages are not declared in the object's interface. So simply hiding the actions in the implementation doesn't protect you from

Re: There's obviously something I don't understand about NSDate.

2012-03-17 Thread Eeyore
t the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/eeyore%40monsterworks.com > > This email sent to eey...@monsterworks.com > ___

Re: There's obviously something I don't understand about autorelease.

2012-03-17 Thread Eeyore
On Mar 17, 2012, at 6:10 PM, Richard Somers wrote: > On Mar 17, 2012, at 6:12 PM, Roland King wrote: > >> So often I find I start with >> >> @synthesize foo=_foo; >> >> and by the time I get to the end of the project I've written custom foo: and >> setFoo: methods which do something else too.

Re: How is this an "incorrect decrement of a reference count"?

2012-03-19 Thread Eeyore
e times that it doesn't. >> >> Thanks for any insight. >> ___ >> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> >> Please do not post admin requests or moderator comments to the list. >> Con

Re: How is this an "incorrect decrement of a reference count"?

2012-03-19 Thread Eeyore
On Mar 19, 2012, at 4:27 PM, G S wrote: > That reminds me of another question, though: Someone earlier mentioned the > need to release elements loaded from the nib, in dealloc. I didn't think > this was necessary, so I don't do it. And there are no apparent leaks as a > result. What's the stor

Re: How is this an "incorrect decrement of a reference count"?

2012-03-20 Thread Eeyore
rators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/eeyore%40monsterworks.com > > This email sent to eey...@monsterworks.com > ___ Cocoa-dev mai

Re: How is this an "incorrect decrement of a reference count"?

2012-03-20 Thread Eeyore
On Mar 20, 2012, at 12:19 PM, Eeyore wrote: > I think the link was to the "Resource Programming Guide" which covers both > Mac OS X and iOS. You will want to look at page 17 in the PDF "Legacy > Patterns." Sorry, I meant: You will want to look at the section &q

Re: further confusion regarding the release of controls loaded from a nib

2012-03-20 Thread Eeyore
The material quoted is post-ARC usage (not the use of "weak" and not "assign"). In the legacy paradigm material, you will see that pre-ARC. You can choose "retain" or "assign" (or "copy", but I'll leave that out here). iOS outlets should be held as "retain", and therefore need to be nil-ed in vi

Re: monitoring changes in a local property

2012-05-07 Thread Eeyore
-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.

Re: self.myTextField.stringValue = @"" fails

2012-05-08 Thread Eeyore
Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/eeyore%40monsterworks.com > > This email sent to eey...@monsterworks.com >

Re: False positive on writeToURL:atomically:encoding:error: ?

2012-06-23 Thread Eeyore
; ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubsc

Re: Is it 'normal' that scrolling in a UIScrollView leaks some bytes?

2012-07-24 Thread Eeyore
c] initWithName:@"Richard Altenburg"] saysBestRegards]; > > ___ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-d