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

2010-11-28 Thread Keith Duncan
> @implementation NSData (NSDataDigestCategory) > - (NSString *)sha1 { > uint8_t digest[CC_SHA1_DIGEST_LENGTH]; > > CC_SHA1([self bytes], [self length], digest); > > // use an uppercase X to get an uppercase hash > NSString *hash = [NSString > stringWithFormat:@"%02

Re: How to approach to write such an app?

2010-11-28 Thread ico
Hi Jeff, I am not going to store threads and messages into the iPhone. The app merely get data from the forum(web server). And store the data into the forum(web server) as well. I know it uses MySQL database. So if the user post a new thread to the forum through my App, I should store those data i

Re: NSTask with unzip

2010-11-28 Thread Scott Ribe
On Nov 28, 2010, at 3:51 PM, Leonardo wrote: > > Great! Thanks for the advises. > Now I have to zip and unzip a NSData (not a zip file) to a NSData. > In other words, I have to zip and unzip "data to data", without using any > file. Some idea? Use zlib directly. It's not too hard to compress buff

Re: How to approach to write such an app?

2010-11-28 Thread John Joyce
You really don't need so much. These ideas are not totally wrong, they're possible, but a bit unnecessary. (reinventing wheels) You may want to consider starting with basic iOS app development. Also consider that many web apps (blogs, forums, etc...) have APIs made of SOAP or REST calls. URLs al

Re: NSTask with unzip

2010-11-28 Thread Kyle Sluder
On Sun, Nov 28, 2010 at 3:12 PM, glenn andreas wrote: > A quick google search turns up several Cocoa zip frameworks out there that > will avoid having to use NSTask, etc... all together.  While the zip file > format is ugly, it is documented and you can always write your own to walk > through a

Re: How to approach to write such an app?

2010-11-28 Thread Chris Williams
Maybe you got no response because every iPhone comes with an app that can do that, safari. From: ico Date: Sun, 28 Nov 2010 22:01:09 -0500 To: Subject: Re: How to approach to write such an app? Hi all, No clue for this? Probably I should rephrase my question as

Re: How to approach to write such an app?

2010-11-28 Thread ico
Hi all, No clue for this? Probably I should rephrase my question as below: Suppose I have an forum powered by Discuz. I want to write an iPhone application which can access that forum, any forum operation like browsing, reply, change profile, make it favourite post etc can be done in that iPhone ap

NSXMLParser chokes on DTD declaration

2010-11-28 Thread Ross Carter
If I use NSXMLParser (on 10.6.5) to parse xml data that looks like this: [elements omitted] and if I have sent the parser a setShouldResolveExternalEntities:YES message, I would expect the parser delegate message parser:resolveExternalEntityName:systemID: to fire, as described in

Re: NSTask with unzip

2010-11-28 Thread glenn andreas
On Nov 28, 2010, at 4:51 PM, Leonardo wrote: > Great! Thanks for the advises. > Now I have to zip and unzip a NSData (not a zip file) to a NSData. > In other words, I have to zip and unzip "data to data", without using any > file. Some idea? > > -- Leonardo A quick google search turns up sever

Re: hidden file

2010-11-28 Thread Ken Thomases
On Nov 28, 2010, at 4:21 PM, Nick Zitzmann wrote: > On Nov 28, 2010, at 3:09 PM, Ariel Feinerman wrote: > >> Hi everyone, >> >> how to check whether a file is hidden in Finder? There seems file manager >> has no any methods to change file`s visibility like lchflags(). > > There are three differ

Re: NSTask with unzip

2010-11-28 Thread Leonardo
Great! Thanks for the advises. Now I have to zip and unzip a NSData (not a zip file) to a NSData. In other words, I have to zip and unzip "data to data", without using any file. Some idea? -- Leonardo > Da: Ben Haller > Data: Sun, 28 Nov 2010 08:52:33 -0500 > A: Leonardo , Cocoa List > Oggett

Re: OutlineView with big text editor [SOLVED]

2010-11-28 Thread Leonardo
I have found a solution. I have overrided the method selectWithFrame:(NSRect)aRect inView: in my NSTextCell subclass. Here I modify the frame of the field editor It works. Thanks anyway. -- Leonardo Da: Patrick Mau Data: Sun, 28 Nov 2010 02:35:05 +0100 A: "gMail.com" Cc: Oggetto: Re: Out

Re: hidden file

2010-11-28 Thread Stephen J. Butler
On Sun, Nov 28, 2010 at 4:21 PM, Nick Zitzmann wrote: > 1. If it has a . at the beginning of its name > 2. If its hidden bit is set (you can check for this using the Carbon file > manager) > 3. If its name comes up inside the .hidden file in the same folder (if such a > file exists) LSCopyItemI

Re: hidden file

2010-11-28 Thread Nick Zitzmann
On Nov 28, 2010, at 3:09 PM, Ariel Feinerman wrote: > Hi everyone, > > how to check whether a file is hidden in Finder? There seems file manager > has no any methods to change file`s visibility like lchflags(). There are three different things that can cause a file to be hidden in the Finder:

hidden file

2010-11-28 Thread Ariel Feinerman
Hi everyone, how to check whether a file is hidden in Finder? There seems file manager has no any methods to change file`s visibility like lchflags(). -- best regards Ariel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post adm

Re: OutlineView with big text editor

2010-11-28 Thread Leonardo
Patrick, I tried that method but it never gets invoked. I added it to my NSTextFieldCell subclass. I double click on the outline row, edit the text, press return, the text changes, the cell closes, but the method editWithFrame never gets called. I even tried to add [self setWantsNotificationFor

Re: view doesn't respond to very first mouse event

2010-11-28 Thread Artemiy Pavlov
Fixed by adding this to @implementation: - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent { return YES; } :-) On 28 Nov 2010, at 18:51, Artemiy Pavlov wrote: Hi all! I have an AudioUnit plugin with a Cocoa View. The view itself is a subclass of NSControl. It works well, however, it do

Re: Codesign failure

2010-11-28 Thread Thorsten Lemke
Hi, I did redownload and reinstall the certificates. I get now: /Volumes/Spare/GraphicConverter.app: CSSMERR_TP_NOT_TRUSTED Not much better. Thorsten > Did you just download them in the last day or has it been a week or two? You > do have Xcode 3.2.5 right? For the first week or so after 3

view doesn't respond to very first mouse event

2010-11-28 Thread Artemiy Pavlov
Hi all! I have an AudioUnit plugin with a Cocoa View. The view itself is a subclass of NSControl. It works well, however, it doesn't respond to the very first mouse down or mouse dragged event. This very first click or drag only makes the view active, only starting from the second click o

Re: Icon Designer?

2010-11-28 Thread Joar Wingfors
On 27 nov 2010, at 23.22, Andrew McLaughlin wrote: > Thanks. But I need help with the aesthetic perspective, not on the file > building. Something like this perhaps: ...but we're now off-topic for this mailing list. j o a r _

Re: NSTask with unzip

2010-11-28 Thread Ben Haller
Yes, this looks good. I like your category on NSFileHandle (not a subclass!); it's cleaner than the code at the link I sent you, since it doesn't just eat the error, and it's better as a category. Four things I would mention: 1) Checking that the pipe could be created and actually has a fi

Problem with custom NSTextFieldCell

2010-11-28 Thread Hrishikesh Murukkathampoondi
I am trying to use a custom NSTextFieldCell (MyCell) in my NSTableView. The custom MyCell displays two text values instead of one. When ever the row is clicked or double clicked the dealloc method of the NSTextFieldCell is called. Why is the NSTextFieldCell being dealloced when the entry is se

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

2010-11-28 Thread Aaron Burghardt
Hi, Your implementation should work, but I have a few suggestions for you. * Unless you need HMAC specifically, the function you are using is in . * In general, I think Apple discourages relying on the output of the "description", although I see that the documentation for NSData states that d

Re: protocol and properties

2010-11-28 Thread Martin Hewitson
On 28, Nov, 2010, at 10:22 AM, Mario Kušnjer wrote: > >> Then I implement a class which implements this protocol. To do that > I make a property: > >> @property (nonatomic, readwrite, retain) NSArray * objects; > >> and put the appropriate synthesize statement in the implementat

Re: protocol and properties

2010-11-28 Thread Martin Hewitson
OK, then it seems I didn't do something fundamentally wrong. Probably a stupid mistake somewhere. Thanks again! Martin On 28, Nov, 2010, at 10:26 AM, Stephen J. Butler wrote: > On Sun, Nov 28, 2010 at 3:15 AM, Martin Hewitson > wrote: >> It 'works' for me too, I just warnings from Xcode. Anyw

Re: protocol and properties

2010-11-28 Thread Stephen J. Butler
On Sun, Nov 28, 2010 at 3:15 AM, Martin Hewitson wrote: > It 'works' for me too, I just warnings from Xcode. Anyway, I'll check in case > I made a typo or something. I don't get any warnings. > On 28, Nov, 2010, at 9:50 AM, Stephen J. Butler wrote: > >> On Sun, Nov 28, 2010 at 2:15 AM, Martin

RE: protocol and properties

2010-11-28 Thread Mario Kušnjer
> Then I implement a class which implements this protocol. To do that I make a property: > @property (nonatomic, readwrite, retain) NSArray * objects; > and put the appropriate synthesize statement in the implementation. > I get compiler warnings that this class doesn't

Re: protocol and properties

2010-11-28 Thread Martin Hewitson
It 'works' for me too, I just warnings from Xcode. Anyway, I'll check in case I made a typo or something. Thanks! Martin On 28, Nov, 2010, at 9:50 AM, Stephen J. Butler wrote: > On Sun, Nov 28, 2010 at 2:15 AM, Martin Hewitson > wrote: >> Suppose I have a formal protocol which defines a metho

Re: protocol and properties

2010-11-28 Thread Stephen J. Butler
On Sun, Nov 28, 2010 at 2:15 AM, Martin Hewitson wrote: > Suppose I have a formal protocol which defines a method: > > - (NSArray*)objects; > > Then I implement a class which implements this protocol. To do that I make a > property: > > @property (nonatomic, readwrite, retain) NSArray * objects;

protocol and properties

2010-11-28 Thread Martin Hewitson
Dear list, Suppose I have a formal protocol which defines a method: - (NSArray*)objects; Then I implement a class which implements this protocol. To do that I make a property: @property (nonatomic, readwrite, retain) NSArray * objects; and put the appropriate synthesize statement in the imple