Re: Icon Designer?

2010-11-27 Thread Andrew McLaughlin
Thanks. But I need help with the aesthetic perspective, not on the file building. Andrew On Nov 27, 2010, at 2:17 PM, k...@highrolls.net wrote: > / Developer / Applications / Utilities / Icon Composer > > > On Nov 27, 2010, at 3:06 PM, Andrew McLaughlin wrote: > >> Hi all, >> >> Can anyone

How to approach to write such an app?

2010-11-27 Thread ico
Hi All, Suppose I have an forum powered by Discuz. I want to write an iPhone application which is like a portal can access that forum, any forum operation like browsing, reply, change profile, make it favourite post etc can be done in that iPhone application as well. I just wonder how to approach

QTKit Exception

2010-11-27 Thread Francisco Garza
I keep getting an exception from QTKit when quickly moving through a playlist of songs. Here is the console log and the portion of my code where the exception is thrown. I am using garbage collection on Snow Leopard. 2010-11-27 21:33:37.852 QTKitServer[15546:903] -[QTTrack_QuickTime originalKe

Re: OutlineView with big text editor

2010-11-27 Thread Patrick Mau
On 27.11.2010, at 15:43, gMail.com wrote: > Hi, I have set a custom cell showing icon + text on my outlineView column. > It works well, but whenever I double click on the row to edit the text, I > get a text field editor bigger than the cell itself and covering the left > icon. How can I make thi

Organize a file

2010-11-27 Thread Leonardo
...and now it comes the hardest part of my app. I have to decide about the structure of my document file so I ask here to get some hint. A) My app should download the doc file from internet and show its content. B) The file always contains a dict.plist NSDictionary. C) The file could contains some

Re: Core data binding "first" of to-many relationship

2010-11-27 Thread Sean McBride
On Nov 27, 2010, at 17:44, Jerry Krinock wrote: >> I have an NSArrayController that holds a set of persons. These persons have >> a to-many relationship of name objects. Usually they will only have one >> name, but there may be multiple (or even no name). >> >> In my interface, I have an NSTabl

Re: Core data binding "first" of to-many relationship

2010-11-27 Thread Jerry Krinock
On 2010 Nov 27, at 08:20, Mikkel Eide Eriksen wrote: > I have an NSArrayController that holds a set of persons. These persons have a > to-many relationship of name objects. Usually they will only have one name, > but there may be multiple (or even no name). > > In my interface, I have an NSTab

Re: Icon Designer?

2010-11-27 Thread Eric Dolecki
You can hit me up on Monday if you'd like, i develop and design all of the time and perhaps i can help you out. Sent from my iPad of doom. On Nov 27, 2010, at 5:06 PM, Andrew McLaughlin wrote: > Hi all, > > Can anyone recommend a good icon designer/illustrator? I have a good > illustration

Re: Icon Designer?

2010-11-27 Thread koko
/ Developer / Applications / Utilities / Icon Composer On Nov 27, 2010, at 3:06 PM, Andrew McLaughlin wrote: Hi all, Can anyone recommend a good icon designer/illustrator? I have a good illustration designed for the splash screen of my app, but need help getting an icon built. My illustra

CG: linking two views at different zoom levels

2010-11-27 Thread Reaves, Timothy
I have two views: one displays an image created with CG calls, and in the second one I would like to show a zoomed in version of the same image, centered around where the user has tapped. I am using UIGestureRecognizerDelegate to get the pan gesture, and draw into the second view with the new zoom

Icon Designer?

2010-11-27 Thread Andrew McLaughlin
Hi all, Can anyone recommend a good icon designer/illustrator? I have a good illustration designed for the splash screen of my app, but need help getting an icon built. My illustrator doesn't know how to do that, and I'm all thumbs when it comes to artwork. TiA Andrew _

Re: NSTask with unzip

2010-11-27 Thread Leonardo
Ben, thank you so much! I have successfully done it. I post the code here for anyone to use it. I love this list. - (NSData*)UnzipFile:(NSString*)sourcePath extractFileName:(NSString*)extractFileName { NSTask*unzip = [[[NSTask alloc] init] autorelease]; NSPipe*aPipe = [NSPipe p

Re: iOS - Help with nasty memory leak

2010-11-27 Thread Philip Vallone
Thank you, My viewForAnnotation was all wrong. I was trying code from this tutorial: http://trentkocurek.wordpress.com/2010/07/21/ios4-map-kit-draggable-annotation-views/ So, I went back and redid my code, which fixed the memory leak and alleviated the need for a custom Annotation View. - (MK

Re: NSTask with unzip

2010-11-27 Thread Dave DeLong
Something along the lines of: NSString * tempFilePath = [NSTemporaryDirectory() stringByAppendingPathComponent:@"myTempFile.tmp"]; if (![[NSFileManager defaultManager] fileExistsAtPath:tempFilePath]) { [[NSFileManager defaultManager] createFileAtPath:tempFilePath contents:nil attributes:nil];

Re: NSTask with unzip

2010-11-27 Thread gMail.com
How do you create the NSFileHandle ? I succeeded only creating it as NSFileHandle*theFileH = [NSFileHandle fileHandleForWritingAtPath:tempFilePath]; and the file tempFilePath must exists. But as I said, I would like to get rid of the temp file. -- Leo > Da: Dave DeLong > Data: Sat, 2

Re: respondsToSelector & "warning: may not respond"

2010-11-27 Thread Stephen J. Butler
Or I believe you can also do id< NSObject, MyProtocol > if you need something that conforms to both. Unless you actually need something that is only implemented in the NSObject class and not defined in the protocol. On Sat, Nov 27, 2010 at 11:35 AM, David Duncan wrote: > On Nov 26, 2010, at 6:22

Re: NSTask with unzip

2010-11-27 Thread Dave DeLong
What Scott said. I use NSFileManager to create a file in NSTemporaryDirectory(), then point an NSFileHandle to that file for writing. That NSFileHandle becomes the standard out of the task, and all the output of the task is written to the file, which I can then peruse and reuse later at my co

Re: respondsToSelector & "warning: may not respond"

2010-11-27 Thread David Duncan
On Nov 27, 2010, at 9:46 AM, Andy Lee wrote: > AFAIK protocols don't inherit from each other but rather conform to each > other, meaning the above should be > > @protocol SomeProtocol > > But maybe I'm just unaware of new syntax in the latest compiler? No, your probably right. Dangers of typ

Re: respondsToSelector & "warning: may not respond"

2010-11-27 Thread Andy Lee
On Nov 27, 2010, at 12:35 PM, David Duncan wrote: > fortunately you can declare that your protocol inherits from another, and > there is also an NSObject protocol that defines the core functionality of the > class, so you can do this when you declare your protocol and never need to > worry ab

Re: respondsToSelector & "warning: may not respond"

2010-11-27 Thread David Duncan
On Nov 26, 2010, at 6:22 PM, Dave Zwerdling wrote: > You can implement other methods and do a single cast to NSObject > * (or id if you don't need the NSObject > methods) It is often impossible to get away from needing at least some of NSObject's functionality, but fortunately you can declare

Re: NSTask with unzip

2010-11-27 Thread Scott Ribe
On Nov 27, 2010, at 10:12 AM, Ben Haller wrote: > > NSPipe uses NSFileHandle. Does using an NSFileHandle directly change things > somehow? If so, why? NSPipe uses pipes, which act sort of like files, except for that buffering thing, enough so that they can be accessed through the same interfa

Re: NSTask with unzip

2010-11-27 Thread Ben Haller
Here's a post that I found useful: http://dev.notoptimal.net/2007/04/nstasks-nspipes-and-deadlocks-when.html Dave, not sure what you mean here. NSPipe uses NSFileHandle. Does using an NSFileHandle directly change things somehow? If so, why? I think this is an avenue I haven't explored;

Re: iOS - Help with nasty memory leak

2010-11-27 Thread Joar Wingfors
On 27 nov 2010, at 06.33, Philip Vallone wrote: > if ((self = [[MKPinAnnotationView alloc] > initWithAnnotation:annotation reuseIdentifier:reuseIdentifier])) { > [self > performSelector:NSSelectorFromString(@"setDraggable:") withObject:[NSNumber > numberWith

Re: NSTask with unzip

2010-11-27 Thread Dave DeLong
The way I get around this is to use an NSFileHandle for standard out instead of an NSPipe. It's a bit less efficient, but slightly more convenient. Dave Sent from my iPhone On Nov 27, 2010, at 7:59 AM, Ben Haller wrote: > On 2010-11-26, at 7:33 AM, gMail.com wrote: > >> Hi, I can properly u

Core data binding "first" of to-many relationship

2010-11-27 Thread Mikkel Eide Eriksen
Hi I have an NSArrayController that holds a set of persons. These persons have a to-many relationship of name objects. Usually they will only have one name, but there may be multiple (or even no name). In my interface, I have an NSTableView that will display the persons. The attributes are eas

Re: respondsToSelector & "warning: may not respond"

2010-11-27 Thread Mikkel Eide Eriksen
Thanks all, I ended up changing around my object hierarchy and casting to a superclass that has ordinals. Mikkel On Nov 26, 2010, at 10:38 PM, Julien Jalon wrote: > Z) ignore the warning > > On Fri, Nov 26, 2010 at 9:44 PM, Ken Thomases wrote: > On Nov 26, 2010, at 12:27 PM, Mike Abdullah wr

Re: NSTask with unzip

2010-11-27 Thread Ben Haller
On 2010-11-26, at 7:33 AM, gMail.com wrote: > Hi, I can properly unzip a zip file launching a NSTask with /usr/bin/unzip > The task saves the unzipped file to the disk, then a I read the unzipped > file in a NSData. Well. My question is: > Can I do the same job without saving the unzipped file to

OutlineView with big text editor

2010-11-27 Thread gMail.com
Hi, I have set a custom cell showing icon + text on my outlineView column. It works well, but whenever I double click on the row to edit the text, I get a text field editor bigger than the cell itself and covering the left icon. How can I make this text field editor fit the cell bounds and not cove

iOS - Help with nasty memory leak

2010-11-27 Thread Philip Vallone
Hi, I have implemented a dragable annotation in my app. I am getting a 100% memory leak that has me puzzled. I was hoping that someone can provide some guidance. The leak is at: MKAnnotationView *draggablePinView = [[[AnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"PinIde

Re: How to encrypt a String to a SHA-1 Encrypted in iPhone

2010-11-27 Thread Tharindu Madushanka
Hi, It was just I need to add header. But above code didn't work. But following encoded to SHA-1 correctly.. I would like to know whether it encodes right ? or Not ? +(NSString *)stringToSha1:(NSString *)hashkey{ // Using UTF8Encoding const char *s = [hashkey cStringUsingEncoding:NSU

Re: Video player dead?

2010-11-27 Thread Andrew McLaughlin
Hmmm... Okay, so I unchecked the iTunes U and sync'd. Video player comes up and says there's nothing to watch. Now, rechecking and re syncing. Question is, how could it have gotten blown? Oh well... Andrew On Nov 26, 2010, at 11:56 PM, Andrew McLaughlin wrote: > Hey list, > > I just updated

How to encrypt a String to a SHA-1 Encrypted in iPhone

2010-11-27 Thread Tharindu Madushanka
Hi, In order to get this I found following code, but I need to import some frameworks into my code. Could somebody kindly point how can achieve SHA-1 Encrypted string in iPhone. I get few errors compiling since I do not have necessary framework to use this.. :( +(NSString *)stringToSha1:(NSString