On May 15, 2011, at 11:50 PM, Leon Qiao wrote:
> Have you ever used the NSCache?
Yes.
> I'm a little confused on how to use it. I
> want to make a list to hold some images in memory.
> And the memory overload is a big problem. So I wish I could use the NSCache
> to
> manage the memory.
NSCache
Dear all,
Have you ever used the NSCache? I'm a little confused on how to use it. I
want to make a list to hold some images in memory.
And the memory overload is a big problem. So I wish I could use the NSCache
to
manage the memory.
Please send me a demo or code fragment if you have.
Thanks a lot
On Sun, May 15, 2011 at 6:01 PM, William Squires wrote:
> Is it possible to map two different objects (the ivars are the same, just
> some validation methods are different) to the same entity?
You mean "same managed object," not "same entity." Which, when you use
the correct terminology, makes i
Seems odd to me that setting and getting properties of an NSURLRequest involve
an NSURLProtocol class method:
+[NSURLProtocol setProperty:forKey:inRequest:]
rather than what seems to me the much more straightforward:
-[NSMutableURLRequest setProperty:forKey:]
Is there a reason for this
Is it possible to map two different objects (the ivars are the same, just some
validation methods are different) to the same entity?
Here's what I have:
I want to make a view in which the player 'rolls up' a new player-character.
This object has certain ivars (and @property declarations) that m
On May 15, 2011, at 5:31 PM, Bing Li wrote:
> An object, WorkingApp, prints a line and posts a notification as follows.
>
>import "WorkingApp.h"
>
>@implementation WorkingApp
>
>- (void) Print
>{
>NSLog(@"I am doing a tough job!");
>[[NSNotificationCenter default
Dear all,
I am learning how to use delegate & notification.
An object, WorkingApp, prints a line and posts a notification as follows.
import "WorkingApp.h"
@implementation WorkingApp
- (void) Print
{
NSLog(@"I am doing a tough job!");
[[NSNotificationCenter defa
On 14 May 2011, at 8:48 PM, koko wrote:
> Given a Tab Bar Application with n Tab Bar Items what is the recommended
> pattern for the Views associated with each Tab Bar Item to communicate
> between themselves?
Views don't communicate with each other under the MVC pattern. They communicate
only
Hello Evadne
I tried this one out it worked...
Will try yours also
NSInteger vNumber = 1;
NSSet * versions = [self valueForKey:@"toVersions"];
if(!versions || [versions count] == 0)
return vNumber;
else{
NSDate * d = [versions valueFor
Hi Gustavo,
How about setting the sort descriptor’s ascending to NO, and limit the number
of fetched objects to one? Something like this…?
[request setSortDescriptors:[NSArray arrayWithObject:[NSSortDescriptor
sortDescriptorWithKey:@"date" ascending:NO]]]; // descending = arranged from
Hello all.
I have a Entity Athat has a to-many relationship. to B
Now I need to get the latest B of A.
I was reading NSFetchRequest, and NSPredicate, for NSPredictate I could use
something like
predicate = [NSPredicate predicateWithFormat:@"birthday > %@", referenceDate];
filteredArra
11 matches
Mail list logo