Re: isKindOfClass:

2010-05-08 Thread Waqar Malik
Try NSClassFromString(@"NSCFString"); --Waqar Sent from my iPad On May 8, 2010, at 12:51 PM, Kevin Callahan wrote: > isKindOfClass: is an instance method and doesn't work on a class you get from > NSClassFromString(). > > Apple docs: Returns a Boolean value that indicates whether the recei

Re: [iPhone] NSKeyedArchiver with NSValue Objects

2009-12-24 Thread Waqar Malik
Also since you are crossing the boundaries of the framework to UIKit you could also use the NSStringFromCGRect/CGPoint and CGRect/CGPointFromNSString and encoding strings. Again you will have an extras step to go back and forth. --Waqar On Dec 24, 2009, at 12:47 PM, Quincey Morris wrote: > On D

Re: RGBA UIColor Information At CGPoint?

2009-11-29 Thread Waqar Malik
automatically so that calling the method over > and over will not be problematic? > > On Sun, Nov 29, 2009 at 9:03 PM, Waqar Malik wrote: >> Then you should send count as 1, then you will get number of pixels starting >> at location xx, and yy. If you want to pixels worth of data

Re: RGBA UIColor Information At CGPoint?

2009-11-29 Thread Waqar Malik
r a read-only value to output an NSLog of [UIColor > colorWithRed:green:blue:alpha], where do i get that from? *head is > swimming* > > clearly i'm missing something fundamental here. > > > > On Sun, Nov 29, 2009 at 8:26 PM, Waqar Malik wrote: >> Yes, that is t

Re: RGBA UIColor Information At CGPoint?

2009-11-29 Thread Waqar Malik
> –– > [self getRGBAsFromImage:[UIImage imageNamed:@"tree.png"] atX:49 > andY:100 count:(50*100)]; > –– > > > > On Sun, Nov 29, 2009 at 1:28 PM, Chunk 1978 wrote: >> >> precisely! thanks for this. >> >> On Sun, No

Re: RGBA UIColor Information At CGPoint?

2009-11-29 Thread Waqar Malik
I think this is what you are looking for. On Nov 29, 2009, at 10:17 AM, Chunk 1978 wrote: > what method, or combination of methods can i use to receive color > information of a C

Re: How to Convert "#FF00FF" String Specifying RGB Color to 32 bit int

2009-08-26 Thread Waqar Malik
Peter, I use NSScanner to parse the string to get individual values. NSRange range = NSMakeRange(1, 2); NSUInteger value = 0; [[NSScanner scannerWithString:[string substringWithRange:range]] scanHexInt:&value] // WARNING: code typed in email --Waqar On Aug 26, 2009, at 4:50 PM, Peter Zege

Re: Cocoa and "Reveal in Finder..."

2008-09-28 Thread Waqar Malik
[[NSWorkspace sharedWorkspace] selectFile:path inFileViewerRootedAtPath:nil]; On Sep 28, 2008, at 8:30 AM, John Cebasek wrote: Hi All: I've got a couple of functions that do a "Reveal in Finder" that are in Carbon land, and sit on top of the "More..." library. Since quite a few of the

Re: utf8 to NSString crasher

2008-09-03 Thread Waqar Malik
Thanks every body for all the help. The issued turned out to the invalid wchar_t string so NSString is returning nil. If NSString can't convert the whole string it returns nil. --Waqar ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

utf8 to NSString crasher

2008-09-02 Thread Waqar Malik
I am converting UTF8 string "Rø" to NSString using stringWithUTF8String: I get nil as a return value: (gdb) p utf8_str $1 = "R\303", '\000' (gdb) po theString Cannot access memory at address 0x0 Is there a canonical way to convert wchat_t to NSString? Thanks --Waqar__

Re: How to enumerate directory contents?

2008-08-17 Thread Waqar Malik
You should look at NSDirectoryEnumerator or dirent.h if you want to do it at unix level. --Waqar On Aug 17, 2008, at 10:39 AM, Nicolas Goles wrote: Hi, this is my first message here, but I have been following the list for a while. I have an application where I need the user to be presented

Re: [Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?

2008-07-14 Thread Waqar Malik
Still under NDA. --Waqar On Jul 14, 2008, at 3:15 PM, JongAm Park wrote: Hello, all. Because the final SDK for the iPhone came out, I started to take a look at it. Although I knew that Window/View hierarchies are different

Re: [OT] Dallas Cocoa Meetup?

2008-04-07 Thread Waqar Malik
I would be interested in a group closer to Fort Worth (Grapevine, Southlake, Keller). --Waqar On Apr 7, 2008, at 1:36 PM, Patrick Burleson wrote: I was wondering how many on this list might interested in a Cocoa type meetup in the Dallas/Fort Worth area? I've very new to Cocoa and I think it