Send Cocoa-dev mailing list submissions to
email@hidden
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/mailman/listinfo/cocoa-dev
or, via email, send a message with subject or body 'help' to
email@hidden
You can reach the person managing the list at
email@hidden
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cocoa-dev digest..."
Today's Topics:
1. Strategy for handling RTFD on iOS (Martin Hewitson)
2. Re: HTTP Pipe lining communication in iPhone application
(SridharRao M)
3. Re: Initializing unichar variable with a human readable
letter (Alastair Houghton)
4. Re: NSInteger compare - Help Needed (Steve Wetzel)
5. Re: NSInteger compare - Help Needed (Dave Carrigan)
6. Re: HTTP Pipe lining communication in iPhone application
(Mike Abdullah)
7. Re: NSInteger compare - Help Needed (Sherm Pendley)
8. Removing sorting from NSTableView (Gideon King)
9. Re: Encrypting data in a Core Data SQL store for a Mac
desktop app (Jerry Krinock)
----------------------------------------------------------------------
Message: 1
Date: Sun, 18 Jul 2010 17:02:39 +0100
From: Martin Hewitson <email@hidden>
Subject: Strategy for handling RTFD on iOS
To: cocoa-dev Dev <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=us-ascii
Dear list,
I have a core-data app which stores some of the application content
as an NSData field containing RTFD data. I would like to create a
corresponding iphone/ipad app which would ideally allow this data to
be displayed and edited. I realise that the 'editing' part might be
somewhat challenging due to the lack of built-in rich-text editor
control on UIKit. For the reading part, I guess I can use UIWebView.
So at the moment I'm planning just a reader companion app for the
desktop app (with the data synced over mobileme), and I'll await a
rich-text control on UIKit for the editing.
Does anyone have any advice or good ideas about this plan in
general, and about how to handle RTFD data on iOS?
Best wishes,
Martin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------
Message: 2
Date: Sun, 18 Jul 2010 21:38:04 +0530
From: SridharRao M <email@hidden>
Subject: Re: HTTP Pipe lining communication in iPhone application
To: Cocoa Developers <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1
Any one have idea of implementing this.
If any please share with me.
Thanks,
Sridhar.
On Sat, Jul 17, 2010 at 10:00 PM, Dave DeLong <email@hidden>
wrote:
On iOS 4 there's a method on NSMutableURLConnection to do this
(something
like setHTTPShouldUsePipelining:). If you need a solution for iOS
3.x, I'm
afraid I've been trying to find one for a long time, and short of
writing
pipelining yourself, I don't think there is one.
Dave
Sent from my iPhone
On Jul 17, 2010, at 10:14 AM, SridharRao M <email@hidden>
wrote:
Hi Group,
I want to implement HTTP Pipe lining communication in my iphone
application
for web images downloading into my application.
If any one implemented this already please suggest me how to
implement
this
in iPhone.
Thanks in advance.
Regards,
Sridhar.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
------------------------------
Message: 3
Date: Sun, 18 Jul 2010 17:34:24 +0100
From: Alastair Houghton <email@hidden>
Subject: Re: Initializing unichar variable with a human readable
letter
To: vincent habchi <email@hidden>
Cc: Cocoa-Dev List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=iso-8859-1
On 18 Jul 2010, at 09:38, vincent habchi wrote:
Since I use the unichar to make comparisons, I could also have
initialized a custom NSCharacterSet with "é", but, as we say here
in France: "it's like using a bulldozer to break a nut shell".
It's worth perhaps pointing out that comparing with the unichar
'é' (U+00E9) won't pick up the equivalent sequence ('e', U+0301).
i.e. unless you know that all 'é' characters in your input are
precomposed, you will miss some of them.
You might, therefore, be better using NSString...
Kind regards,
Alastair.
--
http://alastairs-place.net
------------------------------
Message: 4
Date: Sun, 18 Jul 2010 12:21:35 -0500
From: Steve Wetzel <email@hidden>
Subject: Re: NSInteger compare - Help Needed
To: Carter Allen <email@hidden>
Cc: Cocoa-Dev List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=windows-1252
Thanks guys, that was the problem, There are so many little things
to learn with Objective C.
Steve
Steve‚s daily photo blog
On Jul 17, 2010, at Jul 17:3:04 PM, Carter Allen wrote:
Steve,
Have you tried changing "<<" in your code to simply "<"? That may
work.
- Carter Allen
On Jul 17, 2010, at 1:58 PM, Steve Wetzel wrote:
Hi all,
I am new to Cocoa programming and am trying to do something that I
thought was straightforward but not working. I am using the tag
field of a button to tell me what button is pushed. This code
does not work
- (IBAction) numberPressed:(id)sender {
NSLog(@"Sender tag is:%d", [sender tag]);
if ([sender tag] << 10) {
displayValues.rawNumber = [displayValues.rawNumber
stringByAppendingString:[NSString stringWithFormat:@"%d", [sender
tag]]];
}
buttons with tags 1-9 work great but the button with tag 0 does
not. When I pass tag 0 the if statement is evaluated as false.
When I press button with tag 1 I get "Sender tag is:1" and the if
statement is evaluated as true.
When I press button with tag 0 I get "Sender tag is:0" and the if
statement is evaluated as false.
What is going wrong here?
Steve
Steve‚s daily photo blog
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
------------------------------
Message: 5
Date: Sun, 18 Jul 2010 10:35:56 -0700
From: Dave Carrigan <email@hidden>
Subject: Re: NSInteger compare - Help Needed
To: Steve Wetzel <email@hidden>
Cc: Cocoa-Dev List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=us-ascii
On Jul 18, 2010, at 10:21 AM, Steve Wetzel wrote:
Thanks guys, that was the problem, There are so many little things
to learn with Objective C.
The difference between the < operator and the << operator is not
confined to Objective-C; it's part of the C language. You should
probably find a good book on C that goes into that; it will save you
many, many days of debugging headaches.
--
Dave Carrigan
email@hidden
Seattle, WA, USA
------------------------------
Message: 6
Date: Sun, 18 Jul 2010 19:00:00 +0100
From: Mike Abdullah <email@hidden>
Subject: Re: HTTP Pipe lining communication in iPhone application
To: SridharRao M <email@hidden>
Cc: Cocoa Developers <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=us-ascii
Er, he just told you how. Or are you asking how to do pipelining on
iOS 3? (which was also pretty much answered)
On 18 Jul 2010, at 17:08, SridharRao M wrote:
Any one have idea of implementing this.
If any please share with me.
Thanks,
Sridhar.
On Sat, Jul 17, 2010 at 10:00 PM, Dave DeLong <email@hidden>
wrote:
On iOS 4 there's a method on NSMutableURLConnection to do this
(something
like setHTTPShouldUsePipelining:). If you need a solution for iOS
3.x, I'm
afraid I've been trying to find one for a long time, and short of
writing
pipelining yourself, I don't think there is one.
Dave
Sent from my iPhone
On Jul 17, 2010, at 10:14 AM, SridharRao M <email@hidden>
wrote:
Hi Group,
I want to implement HTTP Pipe lining communication in my iphone
application
for web images downloading into my application.
If any one implemented this already please suggest me how to
implement
this
in iPhone.
Thanks in advance.
Regards,
Sridhar.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the
list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
@me.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
------------------------------
Message: 7
Date: Sun, 18 Jul 2010 14:10:24 -0400
From: Sherm Pendley <email@hidden>
Subject: Re: NSInteger compare - Help Needed
To: Steve Wetzel <email@hidden>
Cc: Cocoa-Dev List <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset=ISO-8859-1
On Sun, Jul 18, 2010 at 1:21 PM, Steve Wetzel <email@hidden>
wrote:
Thanks guys, that was the problem, There are so many little things
to learn with Objective C.
Out of curiosity, what programming language are you comparing it to?
I've used *many* of them over the past twenty years, and I can't think
of a single one that uses << as a "less than" operator.
sherm--
--
Cocoa programming in Perl:
http://www.camelbones.org
------------------------------
Message: 8
Date: Mon, 19 Jul 2010 04:10:50 +1000
From: Gideon King <email@hidden>
Subject: Removing sorting from NSTableView
To: cocoa-dev List <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=us-ascii
Sorry if this is a dumb question, but when someone has clicked a
column header to sort a table on that column, how do they get it
back to its natural, unsorted order?
In a certain other operating system, the standard behaviour seems to
be that the sorting is three state: ascending/descending/unsorted,
but I can't seem to do that with NSTableView - once sorted, always
sorted. I'd rather not have a separate button to unsort the data
back to its original order, and the natural order of my data does
not match any of the data rows, but is the view that most people
will want to use most of the time.
I guess if there isn't already something built in, I may have to
either subclass something in the table header and make it three
state, or maybe override somewhere in the tableview or array
controller where it sets the sort descriptors or perhaps turn off
the automatically hidden scrollers and put a button in the
cornerView... any suggestions or examples would be appreciated.
Thanks
Gideon
------------------------------
Message: 9
Date: Sun, 18 Jul 2010 11:25:55 -0700
From: Jerry Krinock <email@hidden>
Subject: Re: Encrypting data in a Core Data SQL store for a Mac
desktop app
To: Cocoa Developers <email@hidden>
Message-ID: <email@hidden>
Content-Type: text/plain; charset=us-ascii
On 2010 Jul 18, at 03:42, Darren Wheatley wrote:
Can anyone give me a pointer on how to encrypt (and use) the data
in the Core Data sql store of my Mac desktop app?
I've Googled for this, and while I find lots of information on
encrypting Core Data stores for iPhone apps, I can't find a
solution for Mac applications.
Why does the iPhone information you found not apply to Mac apps?
------------------------------
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins (at) lists.apple.com
http://lists.apple.com/mailman/listinfo/cocoa-dev
End of Cocoa-dev Digest, Vol 7, Issue 749
*****************************************