Re: Extract plain text content from a Text View

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 11:21 PM, Ian Piper wrote: That would suit me well if I could just understand how to tap into it. I can set up filterPredicates in IB for other attributes in my data model but not for the one that is displaying its content in the NSTextView. Why are you using predicat

Re: How to retrieve the font information from TrueType font file?

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 10:31 PM, Mike Wright wrote: 1. Single Fonts with the ".ttf" file extension have only a data fork, and the name of the file seems to be the name of the font. Not necessarily. The filename is not part of the font, so it can be arbitrary, and a lot of the time it's not th

Re: Extract plain text content from a Text View

2009-10-16 Thread Ian Piper
On 17 Oct 2009, at 05:18, Jens Alfke wrote: On Oct 16, 2009, at 3:42 PM, Ian Piper wrote: The Text View is simply used as a place for the user to put any rich text and or images. Is there a way either to search or to get all of the plain text out from such a Text View? It's probably a s

Re: Extract plain text content from a Text View

2009-10-16 Thread Ian Piper
On 17 Oct 2009, at 00:46, Charles Srstka wrote: On Oct 16, 2009, at 5:42 PM, Ian Piper wrote: The Text View is simply used as a place for the user to put any rich text and or images. Is there a way either to search or to get all of the plain text out from such a Text View? It's probably a

Re: How to retrieve the font information from TrueType font file?

2009-10-16 Thread Mike Wright
The third-party TrueType fonts that I own have a variety of structures. Here are the ones I've found: 1. Single Fonts with the ".ttf" file extension have only a data fork, and the name of the file seems to be the name of the font. 2. I've found two styles of font suitcase files: a. One st

Re: UITextField formatting for IP Address

2009-10-16 Thread Andrew Farmer
On 16 Oct 2009, at 17:54, Alex Kac wrote: Here is my code, btw. It works OK, but it still has the issue of moving the cursor to the end. Perhaps there is no way to do this on the iPhone - I just don't want to bang my head for hours. - (void)formatForIP:(UITextField*)textField string:(NSStrin

Re: Extract plain text content from a Text View

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 3:42 PM, Ian Piper wrote: The Text View is simply used as a place for the user to put any rich text and or images. Is there a way either to search or to get all of the plain text out from such a Text View? It's probably a simplistic question and I rather suspect that ul

Re: Sqlite and Core Data

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 7:43 PM, Thomas Hart wrote: Can I use Core Data to access the sqlite database that I've created? Are there any files I need to add, or code I need to write? Not directly. Core Data does use SQLite to store data, but it uses very specific conventions for names and relati

Re: Simulating webpage clicks

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 7:20 PM, Charles Burnstagger wrote: I need to parse the content of the default page, find specific links I am looking for, then simulate clicks on those links in the page just as if the user was clicking it normally - and I need to do all this in Objective-C without any

Re: File Encryption / Decription

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 7:05 PM, Chunk 1978 wrote: what is the best way to encrypt and then decrepit a file in Cocoa? Look at . It's a plain C API. Warning: Encryption is only useful if you know what you're doing. If you're planning to do anything serious (certainly anything you want other p

Re: Sqlite and Core Data

2009-10-16 Thread Jerry Krinock
On 2009 Oct 16, at 19:43, Thomas Hart wrote: Can I use Core Data to access the sqlite database that I've created? Anything can be done, given infinite design and product-maintenance resources. Let me re-phrase your question: Question: Is there any chance that this might be a practical a

Re: OK/Cancel buttons on NSColorPanel

2009-10-16 Thread Graham Cox
On 17/10/2009, at 3:07 AM, Kevin Barnes wrote: I'm porting an app from Carbon to Cocoa. I notice that when I use the carbon function PickColor to get a color dialog, the dialog has OK and Cancel buttons, but when using NSColorPanel the dialog does not have those buttons. Is there a way to get O

Sqlite and Core Data

2009-10-16 Thread Thomas Hart
These may have been asked before, if so just point me in the right direction. I'm trying to build what I hope is a relatively small program that will keep track of authors and books. I've got databases in Postgres and MySql, and I ported the data over to sqlite yesterday. Now I'm just foo

OK/Cancel buttons on NSColorPanel

2009-10-16 Thread Kevin Barnes
I'm porting an app from Carbon to Cocoa. I notice that when I use the carbon function PickColor to get a color dialog, the dialog has OK and Cancel buttons, but when using NSColorPanel the dialog does not have those buttons. Is there a way to get OK and Cancel buttons in the Cocoa version of my cod

correctly Controlling Garbage Collection

2009-10-16 Thread WareTo Development
I saw a couple posting regarding this when Garbage Collection was originally introduced, but have not seen any discussion since. I do not believe the issue was ever resolved. Our application uses Garbage Collection under 10.5 (and now 10.6). We have several custom views with custom mouse tr

Simulating webpage clicks

2009-10-16 Thread Charles Burnstagger
I have a Cocoa app with a WebKit browser. My app navigates to a default URL on startup. I need to parse the content of the default page, find specific links I am looking for, then simulate clicks on those links in the page just as if the user was clicking it normally - and I need to do all this

Re: How to retrieve the font information from TrueType font file?

2009-10-16 Thread XiaoGang Li
Yes, it is really strange feature, this is used internal. My application is distributed with bundles of document templates. These templates should be designed by your graphic designers before being distributed, using the limited fonts installed in the bundle. Anyway, user can use other fonts from

Re: Slider with tag?

2009-10-16 Thread I. Savant
On Oct 16, 2009, at 10:33 PM, Sean McBride wrote: On 10/14/09 10:24 PM, Gabriel Zachmann said: Could someone please explain to me how I can present a little tag to the user that moves along with a slider's handle (above or below), in which I can give some feedback to the user about the current

Re: Slider with tag?

2009-10-16 Thread Sean McBride
On 10/14/09 10:24 PM, Gabriel Zachmann said: >Could someone please explain to me how I can present a little tag to >the user that moves along with a slider's handle (above or below), in >which I can give some feedback to the user about the current value of >the slider? > >I'm afraid I couldn't fin

Re: File Encryption / Decription

2009-10-16 Thread I. Savant
On Oct 16, 2009, at 10:05 PM, Chunk 1978 wrote: what is the best way to encrypt and then decrepit a file in Cocoa? I suppose you could burn the encrypted file to a disk then neglect said disk. Bit rot would make the file quite decrepit. ;-) But seriously folks*, there are a few categor

Re: Fwd: UTIs and readFromURL/writeToURL

2009-10-16 Thread Sean McBride
On 10/10/09 11:15 AM, Sander Stoks said: >Suppose I have an application which can read and write images (using >Image I/O). To make this known to the OS, I have to add stuff to my >Info.plist, and wanted to do this using UTIs as I understand that's >the new standard. However, I have a few proble

File Encryption / Decription

2009-10-16 Thread Chunk 1978
what is the best way to encrypt and then decrepit a file in Cocoa? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Re: Any way to see all AppleEvents being sent in system?

2009-10-16 Thread Rick Mann
It often starts with one, then spreads to others. There is speculation online that that 65,535th event results in a long hang/timeout. I want to get an idea of how many events are really being sent during normal use (that is, not during heavily scripted use, etc). http://db.tidbits.com/arti

Re: Any way to see all AppleEvents being sent in system?

2009-10-16 Thread Dave Keck
Are you seeing the spinner for every application or just one? If it's just one, you could use AEDebugReceives. /Developer/Applications/Performance Tools/Spin Control.app might also be of interest. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Any way to see all AppleEvents being sent in system?

2009-10-16 Thread Rick Mann
On Oct 16, 2009, at 18:33:38, Sean McBride wrote: On 10/16/09 5:57 PM, Rick Mann said: I've heard reports of a 16-bit overflow bug in AppleEvent replies that might be causing the horrible SPODs I'm seeing. However, I'd like to get an idea of how many AppleEvents are being sent on my system

Re: Any way to see all AppleEvents being sent in system?

2009-10-16 Thread Sean McBride
On 10/16/09 5:57 PM, Rick Mann said: >I've heard reports of a 16-bit overflow bug in AppleEvent replies that >might be causing the horrible SPODs I'm seeing. However, I'd like to >get an idea of how many AppleEvents are being sent on my system during >normal use. Is there a utility that allows me

Any way to see all AppleEvents being sent in system?

2009-10-16 Thread Rick Mann
I've heard reports of a 16-bit overflow bug in AppleEvent replies that might be causing the horrible SPODs I'm seeing. However, I'd like to get an idea of how many AppleEvents are being sent on my system during normal use. Is there a utility that allows me to see every event as it's sent? J

Re: UITextField formatting for IP Address

2009-10-16 Thread Alex Kac
Here is my code, btw. It works OK, but it still has the issue of moving the cursor to the end. Perhaps there is no way to do this on the iPhone - I just don't want to bang my head for hours. - (void)formatForIP:(UITextField*)textField string:(NSString*)string { long long ip = [[string string

UITextField formatting for IP Address

2009-10-16 Thread Alex Kac
On desktop Cocoa I can put in a custom formatter on a textfield and get what I'm looking for. On iPhone, I can say I'm a bit confused as to the best way to handle this. Given a UITextField and my desire to have the user type in an IP address, it sounds like it could be simple, but I can't f

Re: Extract plain text content from a Text View

2009-10-16 Thread Charles Srstka
On Oct 16, 2009, at 5:42 PM, Ian Piper wrote: The Text View is simply used as a place for the user to put any rich text and or images. Is there a way either to search or to get all of the plain text out from such a Text View? It's probably a simplistic question and I rather suspect that ult

Re: Strange Core Data save behaviour ("required relationship nil"... when it is set the line before saving)

2009-10-16 Thread Luke Evans
Darn, I thought his problem had gone away, but I still get the failure to save from time to time (the probability of occurrence is pretty low though). I'm even setting the problematic relationship to nil before deleting the object, then calling "-processPendingChanges", then saving the obje

Re: Extract plain text content from a Text View

2009-10-16 Thread Ian Piper
On 16 Oct 2009, at 20:51, I. Savant wrote: On Oct 16, 2009, at 3:44 PM, I. Savant wrote: I want to figure out a way to build a search predicate that will allow me to search a Text View and I think this is likely to be the only way. Seems a bit odd. Could you elaborate? Let *me* elabor

Re: NSArrayController performance using NSManagedObject content on 10.6 [SOLVED]

2009-10-16 Thread Kyle Sluder
On Fri, Oct 16, 2009 at 2:49 PM, jonat...@mugginsoft.com wrote: > [self addObserver:self forKeyPath:@"message" options:0 context:(void > *)&MGSContextMessage]; > [self addObserver:self forKeyPath:@"date" options:0 context:(void > *)&MGSContextDate]; > [self addObserver:self forKeyPath:@"score" opt

Re: NSArrayController performance using NSManagedObject content on 10.6 [SOLVED]

2009-10-16 Thread jonat...@mugginsoft.com
To begin with I built a test core data project utilising an NSArrayController bound to an NSTableView. This showed no performance issues at all so, surprise surprise, the problem was of my own creation. Looking at the Shark traces reveals an implementation change in the way that model obser

Re: Can I make custom pasteboard type for an object reference?

2009-10-16 Thread glenn andreas
On Oct 16, 2009, at 3:51 PM, Sean McBride wrote: On 10/15/09 6:34 AM, Timothy Stafford Larkin said: I messed around with this problem for some time, before I gave up trying to be clever and cast the pointer as an unsigned long. NSNumber *p = [NSNumber numberWithUnsignedLong:(unsigned long)

Re: Serial comm in Cocoa?

2009-10-16 Thread Sean McBride
On 10/15/09 5:12 PM, Oftenwrong Soong said: >What is the Cocoa-fied way to communicate via a serial port? The newest AMSerialPort code is now on sourceforge: -- Sean McBride, B. Eng

Re: Can I make custom pasteboard type for an object reference?

2009-10-16 Thread Sean McBride
On 10/15/09 6:34 AM, Timothy Stafford Larkin said: >I messed around with this problem for some time, before I gave up >trying to be clever and cast the pointer as an unsigned long. > > NSNumber *p = [NSNumber numberWithUnsignedLong:(unsigned > long)object]; > >The number can be adde

Re: A good Obc-C framework for sending email?

2009-10-16 Thread Alastair Houghton
On 16 Oct 2009, at 20:42, Jens Alfke wrote: On Oct 16, 2009, at 12:04 PM, Alastair Houghton wrote: Or you could do what we do and ask their mail client to deliver it for us. What if they don't have a mail client configured? As Andrew said in the message you replied to: an increasing num

Re: A good Obc-C framework for sending email?

2009-10-16 Thread Ben Haller
On 16-Oct-09, at 3:04 PM, Alastair Houghton wrote: On 16 Oct 2009, at 03:54, Andrew Farmer wrote: On 15 Oct 2009, at 13:34, Ben Haller wrote: Hi all. I need a good Obj-C framework for sending email. I used to use the Message.framework associated with Apple's Mail, but they killed that a

Re: Extract plain text content from a Text View

2009-10-16 Thread I. Savant
On Oct 16, 2009, at 3:44 PM, I. Savant wrote: I want to figure out a way to build a search predicate that will allow me to search a Text View and I think this is likely to be the only way. Seems a bit odd. Could you elaborate? Let *me* elaborate on *that*. :-) You normally use predicat

Re: Extract plain text content from a Text View

2009-10-16 Thread Nick Zitzmann
On Oct 16, 2009, at 1:37 PM, Ian Piper wrote: Is there a way to get the plain text content out of an NSTextStorage object (displaying using a Text View) that contains rich text and images?

Re: Extract plain text content from a Text View

2009-10-16 Thread I. Savant
On Oct 16, 2009, at 3:37 PM, Ian Piper wrote: Is there a way to get the plain text content out of an NSTextStorage object (displaying using a Text View) that contains rich text and images? An NSTextStorage is a subclass of NSMutableAttributedString, which is a subclass of NSAttributedSt

Re: Extract plain text content from a Text View

2009-10-16 Thread Douglas Davidson
NSTextStorage is a subclass of NSMutableAttributedString. Is that enough of a hint? Douglas Davidson On Oct 16, 2009, at 12:37 PM, Ian Piper wrote: Hi all, Is there a way to get the plain text content out of an NSTextStorage object (displaying using a Text View) that contains rich text

Re: Extract plain text content from a Text View

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 12:37 PM, Ian Piper wrote: Is there a way to get the plain text content out of an NSTextStorage object (displaying using a Text View) that contains rich text and images? I want to figure out a way to build a search predicate that will allow me to search a Text View and

Re: A good Obc-C framework for sending email?

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 12:04 PM, Alastair Houghton wrote: Or you could do what we do and ask their mail client to deliver it for us. What if they don't have a mail client configured? As Andrew said in the message you replied to: an increasing number of users use webmail for everything, and

Extract plain text content from a Text View

2009-10-16 Thread Ian Piper
Hi all, Is there a way to get the plain text content out of an NSTextStorage object (displaying using a Text View) that contains rich text and images? I want to figure out a way to build a search predicate that will allow me to search a Text View and I think this is likely to be the only

Re: A good Obc-C framework for sending email?

2009-10-16 Thread Alastair Houghton
On 16 Oct 2009, at 03:54, Andrew Farmer wrote: On 15 Oct 2009, at 13:34, Ben Haller wrote: Hi all. I need a good Obj-C framework for sending email. I used to use the Message.framework associated with Apple's Mail, but they killed that a long time ago, sadly. Then I used Pantomime; but it

Re: NSURLRequest SSL Mac vs iPhone

2009-10-16 Thread Alastair Houghton
On 16 Oct 2009, at 15:52, Greg Hoover wrote: It's signed by Verisign. Where does NSURLRequest and its supporting routines find the CA root certs? Are you sure it's the root certificate that it needs and not some certificate beneath that? Some CAs sign their SSL certs with certificates a

Re: odd behavior with NSError?

2009-10-16 Thread Greg Guerin
Kevin Bracey wrote: If we get an NSError, or in the case of NSAppleScript an NSDictionary with the error description, what is the Retain count and do we release it when we're done with it? Wrong question. The retain count is not an ownership count. The right question is "Do I own it?"

Re: odd behavior with NSError?

2009-10-16 Thread Jerry Krinock
On 2009 Oct 16, at 03:44, Kevin Bracey wrote: If we get an NSError, or in the case of NSAppleScript an NSDictionary with the error description, what is the Retain count The retain count of an object is equal to 1 for alloc + the number of - retain messages - the number of -release messages t

Re: A good Obc-C framework for sending email?

2009-10-16 Thread Torsten Curdt
>> The ED code looks like interesting and I will give it a try as well. >> Does anybody know of a good primer on creating / sending  email ( possibly >> in a Cocoa / Objective-C environment ) > > I don't think there is one, given how hard it is to even find code for doing > it at all. Maybe this c

Re: NSInvocationOperations and background Threads

2009-10-16 Thread Nick Zitzmann
On Oct 16, 2009, at 7:01 AM, John Love wrote: I do not have a custom -start or a -main method, so I count on the default -start and -main methods to handle the creation of a background Thread for me. You don't need them if you're using NSInvocationOperation. The documentation was talking

Re: A good Obc-C framework for sending email?

2009-10-16 Thread Jens Alfke
On Oct 15, 2009, at 4:34 PM, Peter Hudson wrote: The ED code looks like interesting and I will give it a try as well. Does anybody know of a good primer on creating / sending email ( possibly in a Cocoa / Objective-C environment ) I don't think there is one, given how hard it is to even fi

Re: NSURLRequest SSL Mac vs iPhone

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 7:52 AM, Greg Hoover wrote: It's signed by Verisign. Where does NSURLRequest and its supporting routines find the CA root certs? In the Keychain. You can see the list of pre-installed root certs by launching Keychain Access and selecting "System Roots" from the keych

Re: How to retrieve the font information from TrueType font file?

2009-10-16 Thread Jens Alfke
On Oct 16, 2009, at 3:31 AM, XiaoGang Li wrote: other uncontained fonts which come from the system or third party application will be invalid in my application. when the users use my application to draw text, only the fonts contained in the bundle should be valid. This is the backgroud of my

Re: NSCollectionView issues

2009-10-16 Thread I. Savant
On Oct 16, 2009, at 11:42 AM, Jim Turner wrote: If you need to get the ViewItem for a specific index (available via NSCollectionView's itemAtIndex: under 10.6) Bah - I failed to notice -itemAtIndex: is also 10.6-only. I mostly agree with the train wreck sentiment. The 10.5 implementatio

Re: NSCollectionView issues

2009-10-16 Thread I. Savant
On Oct 16, 2009, at 10:32 AM, Half Activist wrote: I'm using a NSCollectionView to display a stack of items (a table) but since what's display is far too complex to be laid out programmatically I went for the NSCollectionView. And it's been all problems from the beginning. Yes, dependi

Re: NSCollectionView issues

2009-10-16 Thread Jim Turner
10.5's collection view is, safe to say, kind of a train wreck. I've had to work around quite a few things. Your problem is solvable by asking the NSCollectionViewItem created for your new table element for its view and to have that view scrollRectToVisible: for its bounds. If you need to get the

Re: NSURLRequest SSL Mac vs iPhone

2009-10-16 Thread Greg Hoover
On Oct 16, 2009, at 1:13 AM, Andrew Farmer wrote: On 16 Oct 2009, at 00:48, Greg Hoover wrote: I have the same piece of code making a secure request to a server in a Mac application and in an iPhone app. Both use an NSURLRequest with exactly the same settings, message, body, etc. On the

NSCollectionView issues

2009-10-16 Thread Half Activist
Hi, I'm using a NSCollectionView to display a stack of items (a table) but since what's display is far too complex to be laid out programmatically I went for the NSCollectionView. And it's been all problems from the beginning. First of all with setContent that never worked no matter what I

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread glenn andreas
On Oct 16, 2009, at 2:55 AM, Bill Bumgarner wrote: On Oct 16, 2009, at 12:17 AM, Sander Stoks wrote: If it's a feature, then it's definitely a new one since the original specification of Objective-C. It turned out to be surprisingly hard to find that specification, but I found a grammar

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread Andy Lee
On Oct 16, 2009, at 3:55 AM, Bill Bumgarner wrote: I haven't booted my NS 0.8 cube in about a decade, but I'm pretty sure the semi-colon was always required in the header file and always allowed in the @implementation. 'Twas many a moon ago, but, I do distinctly remember triple-clicking me

Re: NSURLConnection timeout -- what happens?

2009-10-16 Thread Stuart Malin
On Oct 15, 2009, at 3:59 PM, Jens Alfke wrote: On Oct 15, 2009, at 11:44 AM, Stuart Malin wrote: I have looked through the NSURLConnection class reference, the NSURLRequest class reference, the URL Loading System guide, queried Google, searched mailing list archives, and even looked throug

NSInvocationOperations and background Threads

2009-10-16 Thread John Love
NSOperation.pdf states: "For a non-concurrent operation, an operation queue automatically creates a thread and calls the operation object’s start method, the default implementation of which configures the thread environment and calls the operation object’s main method to run your custom cod

Re: Toolbar with capsule style items (Similiar to Mail)

2009-10-16 Thread Stamenkovic Florijan
On Oct 15, 2009, at 13:39, Mazen Abdel-Rahman wrote: Hi All, I am new at programming with Cocoa - so I had a basic question. Is it possible to create a capsule style toolbar with a search field in it (like how Mail's toolbar is) just using interface building to create the UI? And if so

Re: GC crash due to being naughty

2009-10-16 Thread Kirk Kerekes
... This led me to generate a new hypothesis: that I am an idiot. I have now proven that hypothesis to my full satisfaction. ... A remarkably universal observation. I certainly have made it many times about myself. One of my rules of thumb about Cocoa coding is "Code for your Inner Idiot

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread Sander Stoks
Woah, I'm sorry everybody... only when I saw my post in the list I realized that my copy-paste from Safari contained spacer GIFs. Here's the story again. --- If it's a feature, then it's definitely a new one since the original specification of Objective-C. It turned out to be surprisingl

Re: odd behavior with NSError?

2009-10-16 Thread Kevin Bracey
If we get an NSError, or in the case of NSAppleScript an NSDictionary with the error description, what is the Retain count and do we release it when we're done with it? I'd been not releasing them, I didn't allocate or copy it, but when I Build and Analyzed my code in 3.2 on Snow Leopard it

How to retrieve the font information from TrueType font file?

2009-10-16 Thread XiaoGang Li
Hi, In the resource directory of my application bundle, there is a directory named "Fonts", which includes all the fonts I can use. I means that the other uncontained fonts which come from the system or third party application will be invalid in my application. when the users use my applicatio

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread Graham Cox
On 16/10/2009, at 7:12 PM, Uli Kusterer wrote: But you don't have to let Xcode frustrate you like this - you can define your own templates for all of the stubs it inserts. How? Where?!!! :-D http://arstechnica.com/apple/guides/2009/04/cocoa-dev-design-your-own-xcode-project-templates.ars

Re: SelectedRowIndexes

2009-10-16 Thread gMail.com
Thanks. I will file a request. > Well, you could do it yourself with heavy subclassing of NSTableView and > overriding the -selectRow type of methods and keeping track of the order > yourself. I did it, using my own array, but I have noticed that in case of multiple selection (by clicking on t

Re: SelectedRowIndexes

2009-10-16 Thread gMail.com
Thank you I.S. This is what I am doing. Overriding the tableView APIs and keeping trace of the selection through my array. >You're going to have to track changes in selection yourself > (examine the NSTableView API - there are methods to help you with this). Since I have noticed that even

Re: debugging cursors

2009-10-16 Thread Uli Kusterer
On 08.10.2009, at 23:02, David M. Cotter wrote: sorry, yes. when the user types a number in a box and presses enter, i create a cursor based on that number and set it. So now you've told us what you are doing, you still haven't said why ... ? Please tell us, in high-level terms that a user

Re: NSURLRequest SSL Mac vs iPhone

2009-10-16 Thread Andrew Farmer
On 16 Oct 2009, at 00:48, Greg Hoover wrote: I have the same piece of code making a secure request to a server in a Mac application and in an iPhone app. Both use an NSURLRequest with exactly the same settings, message, body, etc. On the Mac, the request succeeds, returning the data expect

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread Uli Kusterer
On 16.10.2009, at 03:35, Graham Cox wrote: On 16/10/2009, at 12:30 PM, Roland King wrote: I'm ploughing it with you, I hate it too and spend 30 seconds every time I let XCode stub out a function for me moving the brace onto the correct line, andputtingspacesbackbetweenparanetheses,brack

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread Bill Bumgarner
On Oct 16, 2009, at 12:17 AM, Sander Stoks wrote: If it's a feature, then it's definitely a new one since the original specification of Objective-C. It turned out to be surprisingly hard to find that specification, but I found a grammar description here:http://www.cilinder.be/docs/next/Ne

Re: Status Bar Search Field Can't Get Focus w/ LSUIElement PList Setting

2009-10-16 Thread Dalmazio Brisinda
Oops. I spoke too soon. It *seems* to work because I send a URL off to Safari (which becomes active) and then with Safari active I try clicking on the status bar item and the search field accepts focus. But if I switch to another application first, the same problem appears as before. I have

NSURLRequest SSL Mac vs iPhone

2009-10-16 Thread Greg Hoover
I have the same piece of code making a secure request to a server in a Mac application and in an iPhone app. Both use an NSURLRequest with exactly the same settings, message, body, etc. On the Mac, the request succeeds, returning the data expected. On the iPhone however, the request fail

Re: Status Bar Search Field Can't Get Focus w/ LSUIElement PList Setting

2009-10-16 Thread Dalmazio Brisinda
In case anyone that is interested, I've solved this problem. Here's how: In the -awakeFromNib method, add the following two lines (where statusItem is an NSStatusItem *): [statusItem setAction:@selector(statusItemClicked:)]; [statusItem setTarget:self]; and make sure to comme

Re: Record and Playback immediately

2009-10-16 Thread Jean-Daniel Dupas
Yes, the coreaudio list: http://lists.apple.com/mailman/listinfo/coreaudio-api You can find the listing of available lists on http://lists.apple.com/mailman/listinfo Le 16 oct. 2009 à 04:41, Symadept a écrit : Hi Jean, Thank you very much for your response. Similarly Cocoa dev do we ha

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread Sander Stoks
Hello, If it's a feature, then it's definitely a new one since the original specification of Objective-C. It turned out to be surprisingly hard to find that specification, but I found a grammar description here: http://www.cilinder.be/docs/next/NeXTStep/3.3/nd/Concepts/ObjectiveC/B_Grammar/G

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread Kyle Sluder
On Fri, Oct 16, 2009 at 12:01 AM, Scott Anguish wrote: > I used the semi-colon until Ali at Apple said that we don’t do it that way. Heh, I didn't use the semi-colon until Tim at Omni said we do it that way. :-P The triple-clickiness is a very nice convenience (especially when you are putting t

Re: odd behavior with NSError?

2009-10-16 Thread Rob Keniger
On 16/10/2009, at 4:45 PM, Ben Trumbull wrote: > Other people have different perspectives on local variable initialization. > Wrong perspectives, but different. Fortunately now, they waste their > arguments upon the merciless Clangdor the Burninator. Exce

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-16 Thread Scott Anguish
I used the semi-colon until Ali at Apple said that we don’t do it that way. So I no longer do it that way. Personal preference only. On Oct 15, 2009, at 8:54 PM, Frederick C. Lee wrote: > 1) I've seen an alternative way of defining a method, with the semicolon > after the declaration, before