Re: Basic HTTP program failed to compile

2010-12-02 Thread ico
Hi All, The problem is solved, solution as follow for those who is interested in this problem. My program is actually a Mac program rather than iPhone, so if you develop iPhone project, you can see CFNetwork framework is available when you want to add new framework to your project. If you develop

Re: Basic HTTP program failed to compile

2010-12-02 Thread Jerry Krinock
On 2010 Dec 02, at 17:11, John Joyce wrote: > Please be patient. If somebody on the list has an answer they will post it. > If you need an immediate answer, contact DTS. Or try a more appropriate list. For CFNetwork issues: macnetworkp...@lists.apple.com For framework and build issues:

Re: Clickable URL in NSPanel

2010-12-02 Thread Lee Ann Rucker
No, but some of the google hits discussed cursors. On Dec 2, 2010, at 10:46 AM, wrote: Hi Lee Ann ! Got a minute for a question? I used the second example (qa1487.html) and do get a hyperlink that when clicked launches the browser etc. The behavior of the link though is when mousing over the

Re: Disable toolbar items

2010-12-02 Thread koko
I went back to removing the items and then removing the object for NSToolbar key in user defaults at program terminate so the removed items will be available on next run. Works great; thanks to all contributors! -koko On Dec 2, 2010, at 9:57 PM, John Joyce wrote: On Dec 3, 2010, at 1:47

Re: Disable toolbar items

2010-12-02 Thread John Joyce
On Dec 3, 2010, at 1:47 PM, k...@highrolls.net wrote: > rather that deal with the remove of toolbar items I thought I would just > disable the items with this code: > > NSArray *items = [m_toolbar items]; > NSEnumerator *e = [items objectEnumerator]; > NSToolbarItem *item; > while(item = [e nex

Re: Disable toolbar items

2010-12-02 Thread Dave DeLong
I believe you have to implement the < NSUserInterfaceValidations > protocol. There's a single method, and I've generally found the following to be satisfactory: - (BOOL)validateUserInterfaceItem:(id < NSValidatedUserInterfaceItem>)anItem return [anItem isEnabled]; } (Be sure to check if resp

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread BareFeetWare
On 01/12/2010, at 5:02 PM, Donald Hall wrote: > the root view controllers for each navigation controller are custom > UITableViewControllers. > > What is the best way to set the style of the table views? I want at least one > of my table views to have a grouped style, but I can see no easy way

Re: IB xib and toolbar not building properly

2010-12-02 Thread John Joyce
On Dec 3, 2010, at 1:43 PM, k...@highrolls.net wrote: > from observation ... > > when items are removed the toolbar state is written to user defaults and this > state determines the toolbar configuration on the next program run. > > so, should I remove the NSToolbar entry from user defaults at

Disable toolbar items

2010-12-02 Thread koko
rather that deal with the remove of toolbar items I thought I would just disable the items with this code: NSArray *items = [m_toolbar items]; NSEnumerator *e = [items objectEnumerator]; NSToolbarItem *item; while(item = [e nextObject]) { NSString *label = [item label]; if(NSOrderedSam

Re: Using MAPM with Cocoa/ObjectiveC

2010-12-02 Thread Stephen J. Butler
Not at all familiar with this library but... On Thu, Dec 2, 2010 at 10:36 PM, Martin Stanley wrote: >        int digits3 = m_apm_significant_digits(mapm3); >        char  out3[digits3 + 2]; // add 1 for the sign and 1 for the decimal > point What about space for the '\0' terminator? >        m

Re: IB xib and toolbar not building properly

2010-12-02 Thread koko
from observation ... when items are removed the toolbar state is written to user defaults and this state determines the toolbar configuration on the next program run. so, should I remove the NSToolbar entry from user defaults at terminate time so the items will appear on next run? is th

Using MAPM with Cocoa/ObjectiveC

2010-12-02 Thread Martin Stanley
I am in need of an arbitrary precision library for use in an iPhone app. I downloaded MAPM (http://www.tc.umn.edu/~ringx004/mapm-main.html) and compiled it successfully, but am now running into some very strange errors. Things like commenting out a line of debugging code cause an "EXC_BAD_ACCES

Re: IB xib and toolbar not building properly

2010-12-02 Thread John Joyce
On Dec 3, 2010, at 1:15 PM, k...@highrolls.net wrote: > I programatically removed some toolbar items based on a state of the program. > > I quit the program. > > I ran the program again with the state set to not remove the toolbar items. > > The items remained removed ! > > They are in the to

IB xib and toolbar not building properly

2010-12-02 Thread koko
I programatically removed some toolbar items based on a state of the program. I quit the program. I ran the program again with the state set to not remove the toolbar items. The items remained removed ! They are in the toolbar in the xib. I have cleaned the project and rebuilt and remove

Re: Showing a NSPanel

2010-12-02 Thread koko
Thanks for your reply. The reason it was exploding was an error in a class assigned to a control in the panel. It all works fine now as: About *about = [[[About alloc] init] autorelease]; BOOL ok = [NSBundle loadNibNamed:@"About" owner:about]; if(ok) {

NSToolbar removeItemAtIndex

2010-12-02 Thread koko
In the app delegate applicationDidFinishLaunching I call [m_toolbar removeItemAtIndex:15]; [m_toolbar removeItemAtIndex:17]; The items remain displayed. The documentation says: While under most circumstances the user will add and remove items from a toolbar using the customization sheet or t

Re: Cocoa-dev Digest, Vol 7, Issue 1076

2010-12-02 Thread George Nachman
> > Message: 9 > Date: Tue, 23 Nov 2010 05:16:58 -0500 > From: Bill Cheeseman > Subject: Re: Odd problem with event taps when job is killed > To: Cocoa-Dev Mail Cocoa-Dev > Message-ID: <80e43f4f-a032-4452-bb1f-80f7b7bf7...@gmail.com> > Content-Type: text/plain; charset=us-ascii > > > On Nov

Re: Obscuring an NSString

2010-12-02 Thread Fritz Anderson
On 2 Dec 2010, at 7:30 AM, Adam Gerson wrote: > I am writing an NSString to a file and I would like to obscure it in a > two way reversible fashion. It doesn't have to be major hacker proof, > just not understandable by an average person. I need to be able to > read the value back in from the file

navigation bar tint color issue on iOS 4.2

2010-12-02 Thread Kin Mak
I have just upgraded my XCode to 3.2.5 and built and linked my iPad app using iOS 4.2. However, there seems to be a bug regarding navigation's bar tint color and popover: I am having an iPad app using split view controller. The pop over controller contains a navigation controller with a table

Re: Basic HTTP program failed to compile

2010-12-02 Thread John Joyce
Please be patient. If somebody on the list has an answer they will post it. If you need an immediate answer, contact DTS. On Dec 3, 2010, at 10:09 AM, ico wrote: > Any suggestion? Sure I can delete this project and recreate one, but I don't > think this is the way to fix problem. > Also I want to

Re: Basic HTTP program failed to compile

2010-12-02 Thread ico
Any suggestion? Sure I can delete this project and recreate one, but I don't think this is the way to fix problem. Also I want to learn something from this case and not to learn how to avoid it. Even though I recreate a new project, I still need to figure out how to compile it without errors for CF

Re: Obscuring an NSString

2010-12-02 Thread Graham Cox
On 03/12/2010, at 12:30 AM, Adam Gerson wrote: > I am writing an NSString to a file and I would like to obscure it in a > two way reversible fashion. It doesn't have to be major hacker proof, > just not understandable by an average person. I need to be able to > read the value back in from the fi

Re: Obscuring an NSString (Adam Gerson)

2010-12-02 Thread jonat...@mugginsoft.com
On 2 Dec 2010, at 20:37, Kyle Sluder wrote: > On Thu, Dec 2, 2010 at 9:49 AM, jonat...@mugginsoft.com > wrote: >> Converting the string to an NSData rep and dumping out as a property list >> will encode the NSData as base-64 > > This is an implementation detail. You shouldn't rely on it. > >

Re: Obscuring an NSString (Adam Gerson)

2010-12-02 Thread Kyle Sluder
On Thu, Dec 2, 2010 at 9:49 AM, jonat...@mugginsoft.com wrote: > Converting the string to an NSData rep and dumping out as a property list > will encode the NSData as base-64 This is an implementation detail. You shouldn't rely on it. --Kyle Sluder __

Re: Obscuring an NSString

2010-12-02 Thread Kyle Sluder
On Thu, Dec 2, 2010 at 5:30 AM, Adam Gerson wrote: > I am writing an NSString to a file and I would like to obscure it in a > two way reversible fashion. It doesn't have to be major hacker proof, > just not understandable by an average person. I need to be able to > read the value back in from the

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread Matt Neuburg
On Dec 2, 2010, at 11:33 AM, glenn andreas wrote: > Actually, it does a number of things for you: I didn't say it didn't do anything. I said it didn't do anything you couldn't easily do yourself. > 1) It flashes the scroll bar correctly when the view appears Which you can easily do by impleme

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread glenn andreas
On Dec 2, 2010, at 11:47 AM, Matt Neuburg wrote: > > On Dec 1, 2010, at 6:58 PM, Donald Hall wrote: > >> I have come to the conclusion that what I wanted to do is not easily done >> unless the table view controller has its own nib file. In IB if you don't >> specify that the table view contro

Re: drawing thread-safety in iOS

2010-12-02 Thread David Duncan
UIKit graphics drawing methods are thread safe on iOS 4.0 or greater. If you are referring to the QA on using a CATiledLayer with UIView, that probably does indeed need to be updated, but the methods it warns against should all be safe to use from secondary threads on iOS 4.0 or later. On Dec 2

Re: Obscuring an NSString

2010-12-02 Thread Richard Somers
Try the open source SSCrypto.framework. It is a Cocoa wrapper around OpenSSL encryption and decryption. It works well. http://septicus.com/products/opensource/ --Richard Somers On Dec 2, 2010, at 6:30 AM, Adam Gerson wrote: I am writing an NSString to a file and I would like to obscure it in

Key Equivalents enhancement request

2010-12-02 Thread Eric Gorr
Don't know if anyone else would find this useful, but if so, I would encourage you to file your own enhancement request. Mine is rdar://8721395. The request is as follows: One is allowed to assign a key equivalent to controls, but there is no standard way for the user to see what key equivalen

Re: Clickable URL in NSPanel

2010-12-02 Thread koko
Hi Lee Ann ! Got a minute for a question? I used the second example (qa1487.html) and do get a hyperlink that when clicked launches the browser etc. The behavior of the link though is when mousing over the first time the cursor is an text I-beam, then after clicking, the hyperlink 'shrin

drawing thread-safety in iOS

2010-12-02 Thread Matt Neuburg
I'm having trouble getting a handle on what's thread-safe in iOS drawing and what's not. The trouble is that the docs are so coy (and out-of-date, as far as I can tell). To the extent that the docs do say anything clear, it's all negative: "You cannot use any UIKit's drawing methods when drawin

Re: Works in 4.1 but not 4.2 ...

2010-12-02 Thread Matt Neuburg
On Thu, 2 Dec 2010 06:38:31 -0600, James Cicenia said: >Yes .. but why did it like it prior to my upgrade? > Don't confuse the compiler with the runtime. You can put anything past the compiler. What matters is what's true at runtime. The crash log suggests that you are not sending the message s

iOS: Rolodex Example?

2010-12-02 Thread Frederick C. Lee
Greetings: What would be the best way to emulate a rolodex of cards: each page (UIViewController) has its own tab that could be dimmed if not selected. Examples: 1) AquaMinds' Notetaker, 2) "Epicurious" iPad app that is currently in the iStore. I'm assuming I would have to customize th

Re: Obscuring an NSString (Adam Gerson)

2010-12-02 Thread jonat...@mugginsoft.com
On 2 Dec 2010, at 17:32, Kirk Kerekes wrote: > If you convert the NSString into an NSData,(dataUsingEncoding:) and then > Base64 encode it into an NSString, doesn't that get you what you want? > Converting the string to an NSData rep and dumping out as a property list will encode the NSData

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread Matt Neuburg
On Dec 1, 2010, at 6:58 PM, Donald Hall wrote: > I have come to the conclusion that what I wanted to do is not easily done > unless the table view controller has its own nib file. In IB if you don't > specify that the table view controller that is the root view controller of a > navigation con

RE: Obscuring an NSString (Adam Gerson)

2010-12-02 Thread Kirk Kerekes
If you convert the NSString into an NSData,(dataUsingEncoding:) and then Base64 encode it into an NSString, doesn't that get you what you want? > I am writing an NSString to a file and I would like to obscure it in a > two way reversible fashion. It doesn't have to be major hacker proof, > just

Re: bindings via file's owner don't update

2010-12-02 Thread Mikkel Eide Eriksen
On Dec 2, 2010, at 1:47 AM, Quincey Morris wrote: > On Dec 1, 2010, at 11:08, Mikkel Eide Eriksen wrote: > >> See line 48 & onwards below: >> >> http://code.google.com/p/cocoa-gedcom/source/browse/trunk/GCCoreData/src/GCDocument.m >> >> (there are probably lots of terribly ugly non-Cocoa things

Basic HTTP program failed to compile

2010-12-02 Thread ico
Hi all, I am studying CFNetwork Programming Guide document these days, and I wrote a little program with basic HTTP request and response for testing. However, I can't get this program to compile, the error message something like: Undefined symbols: "_CFHTTPMessageCreateRequest", referenced from:

Re: Calculating Scale Factor touchesMoved event.

2010-12-02 Thread Gustavo Adolfo Pizano
Ok I got something similar to what I want.. @ glenn I see the "180 rotation when first move" still happens any idea? her eis the code now CGPoint Location = [[touches anyObject] locationInView:self]; CGPoint p = [self convertPoint:self.center fromView:self.s

rotate UIImage based on rotation of UIView

2010-12-02 Thread Allyn Bauer
Hello, I am creating an iPad application for my employer targeted to 3.2 and above. In it, the user has the ability to move, rotate and resize an image which then gets sent to our server. The image is displayed with a UIImageView which is wrapped with a UIView. This outer UIView is the one whic

Re: Calculating Scale Factor touchesMoved event.

2010-12-02 Thread Gustavo Adolfo Pizano
glenn thanks... thats solves one preoblem I had no idea why was that.. Now im trying for the second problem the following: CGFloat currentDistance = distanceBetweenPoints(firstTouchPoint,p); CGFloat previousDistance = distanceBetweenPoints(p,[aTouch previousLocationI

Re: Calculating Scale Factor touchesMoved event.

2010-12-02 Thread glenn andreas
On Dec 2, 2010, at 9:37 AM, Gustavo Adolfo Pizano wrote: > now in my touches moved I do the following, the first part applies a > rotation, which is working properly, except that after the first move > the angle is 180 from what the view has, so you see that the view > turns 180 degrees!!, >

Calculating Scale Factor touchesMoved event.

2010-12-02 Thread Gustavo Adolfo Pizano
Hello. Im trying to make a scale up or down of a view with one finger only, by moving outwards and inwards a control view, which represent a virtual circled pad.. I have the following code in the control pad -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch * aTouc

Re: Problem Binding to UserDefaults

2010-12-02 Thread Jerry Krinock
On 2010 Dec 01, at 21:10, Peter Zegelin wrote: > However, if I change the displayType of the selected row via the control, > then the results are *not* saved. The new value is correct while the app is > running but never saved. Make sure that, when testing this, you are quitting your app norma

WebView w/ Java Plugin in NSTabView

2010-12-02 Thread Chris Backas
Hello all, I have an application which needs to run multiple instances of WebView, each will be running a Java applet embedded in the page that it loads. For the sake of a sane UI, each WebView is contained in its own tab item in an NSTabView. This is mostly working, but I'm having two prob

Re: [iOS] setting table style for root view controller of a navigation controller

2010-12-02 Thread Jack Carbaugh
The controller won't have a way to specify the style of the uitableview, but the actual instantiated uitableview in the XIB will however ... select the uitableview from the list view of the xib contents and you can select it's style in the inspector. <> On Dec 1, 2010, at 9:58 PM, Donald Hall

Obscuring an NSString

2010-12-02 Thread Adam Gerson
I am writing an NSString to a file and I would like to obscure it in a two way reversible fashion. It doesn't have to be major hacker proof, just not understandable by an average person. I need to be able to read the value back in from the file and convert it back to "clear text". In php I would ju

Re: Works in 4.1 but not 4.2 ...

2010-12-02 Thread James Cicenia
Yes .. but why did it like it prior to my upgrade? Hmmm, let me check the NIB. I realized that was what was wrong.. somewhere it is not getting PersonaDetailView. Thanks James On Dec 2, 2010, at 6:26 AM, Roland King wrote: > ok. so UIView doesn't have a setController method (according to my de

Re: Works in 4.1 but not 4.2 ...

2010-12-02 Thread Roland King
ok. so UIView doesn't have a setController method (according to my developer docs) and you're sending it that message so it doesn't like it. Can I assume that setController is a method you defined on PersonaDetailView? If so it seems the thing you're sending it to isn't actually a PersonaDetail

Re: Works in 4.1 but not 4.2 ...

2010-12-02 Thread James Cicenia
hmm, yes... but still it works with my XCode3.2.4 with 4.1 vs now with 3.3.5 and 4.2 2010-12-02 06:11:40.705 CoinStar[31673:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setController:]: unrecognized selector sent to instance 0x9814950' ***

Re: Works in 4.1 but not 4.2 ...

2010-12-02 Thread Roland King
Runtime doesn't care about casts, you have what you have, it is what it is, that cast only shuts up the compiler. What's the real error and real code. On 02-Dec-2010, at 7:56 PM, James Cicenia wrote: > ((PersonaDetailView*)self.view).controller = self; > > This fails at runtime but only in 4

Works in 4.1 but not 4.2 ...

2010-12-02 Thread James Cicenia
((PersonaDetailView*)self.view).controller = self; This fails at runtime but only in 4.2. Why ? It doesn't sense the typecast and thinks it is only a UIView. Thanks James ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: Getting current mouse position after scroll

2010-12-02 Thread Rick Mann
On Dec 1, 2010, at 23:53:39, Kyle Sluder wrote: > Listen for bounds change notifications on the clip view (aka the > scroll view's -contentView) instead. That's how scrolling actually > works: the clip view changes its bounds origin and the regular view > drawing machinery takes care of the rest