class-cluster Questions
7
Solved
This is a relatively common design pattern:
https://stackoverflow.com/a/17015041/743957
It allows you to return a subclass from your init calls.
I'm trying to figure out the best method of achie...
Quechua asked 3/6, 2014 at 11:33
4
Solved
I am trying to subclass NSNotification.
Apple's docs for NSNotificationstate the following:
NSNotification is a class cluster with no instance variables. As such,
you must subclass NSNotificat...
Quartis asked 27/9, 2011 at 15:53
5
Solved
I was reading that NSArray is just such a thing. Sounds heavy. I have 7 really fat books here on my desk about Objective-C, Cocoa and C. None of them mention Class Cluster at all, at least I can't ...
Bibliolatry asked 4/12, 2009 at 0:48
2
Solved
Parsing through this document on class clusters, NSNumber implements initWithChar: in roughly the following manner:
- (id)initWithChar:(char)c
{
[self release];
return [[__NSCharNumber alloc] in...
Seabolt asked 23/9, 2013 at 17:18
5
Solved
So I just got asked this at an interview today and after some googling am still unable to figure out the answer (in fact I couldn't even find any code at all which used the [NSString string] method...
Chaeta asked 26/10, 2011 at 8:42
5
Solved
I am trying to subclass NSArray, but it crashes the app when trying to access the count method. I know that NSArray is a class cluster.
But what does this mean?
Is there a work around to be able ...
Oneal asked 4/12, 2010 at 1:35
2
Solved
My objective here is really simple -- I'm trying to set an NSString to some test data, then return the class, which should be NSString. Here's my code:
NSString* stringer = [NSString stringWithFor...
Standee asked 26/12, 2008 at 15:12
1
© 2022 - 2024 — McMap. All rights reserved.