Re: any help with [NSThread initWithTarget:selector:object]???

2008-05-15 Thread Alex Esplin
On Wed, May 14, 2008 at 11:26 PM, Ken Thomases [EMAIL PROTECTED] wrote: On May 15, 2008, at 12:15 AM, Alex Esplin wrote: Everything compiles, and when I run it, the Console tells me that debugging completed normally. However, I'm getting nothing in the way of output from any of the threads:

Re: Bypassing Interface Builder

2008-05-15 Thread Uli Kusterer
Am 15.05.2008 um 02:15 schrieb Johnny Lundy: And if I want to refer by name to that instance in my code, what is the name of the instance? You don't. What you're doing is the approach taken by other frameworks, like Carbon: 1) Every object in a GUI description file has a unique

Setting NSObjectController's to file's owner

2008-05-15 Thread André Pang
Hi all, I have a nib file containing an NSObjectController. The NSObjectController's content is set to the File's Owner proxy object, and this creates a retain cycle. (The file's owner never gets deallocated because the object controller retains it, and the object controller never gets

Re: any help with [NSThread initWithTarget:selector:object]???

2008-05-15 Thread Michael Vannorsdel
You might try using pthreads, they're easy to use but not NSThread easy. They have several more options and make the base NSThread is built upon. There's a join option with pthreads where one can wait for another to finish which might be what you're looking for. Look at pthread_join.

Re: Efficient XML loading [continuation of NSString from mapped NSData thread]

2008-05-15 Thread Matt Gough
On 15 May 2008, at 00:20, Jens Alfke wrote: Because it would be orders of magnitude slower. Even the property list parser can read the iTunes library in a few seconds. Extracting all that information via AppleEvents would certainly take minutes. Taking that amount of time, it would be

Re: any help with [NSThread initWithTarget:selector:object]???

2008-05-15 Thread Ken Thomases
On May 15, 2008, at 1:02 AM, Alex Esplin wrote: When you start a thread with [threadname start] how do you wait for it? I can't seem to find anything on that... There doesn't seem to be any join-type functionality in NSThread. You have to use thread synchronization primitives, I suppose.

Re: Setting NSObjectController's to file's owner

2008-05-15 Thread Ken Thomases
On May 15, 2008, at 2:21 AM, André Pang wrote: I have a nib file containing an NSObjectController. The NSObjectController's content is set to the File's Owner proxy object, and this creates a retain cycle. (The file's owner never gets deallocated because the object controller retains it,

Re: Efficient XML loading [continuation of NSString from mapped NSData thread]

2008-05-15 Thread Jean-Daniel Dupas
Le 15 mai 08 à 10:11, Matt Gough a écrit : On 15 May 2008, at 00:20, Jens Alfke wrote: Because it would be orders of magnitude slower. Even the property list parser can read the iTunes library in a few seconds. Extracting all that information via AppleEvents would certainly take

Re: glass effect - CG call to do this?

2008-05-15 Thread Michael Vannorsdel
You're probably thinking CoreImage. Checkout the CIFilter docs, there's a few builtin glass filters available. On May 15, 2008, at 3:01 AM, John Clayton wrote: A few months ago, while browsing code headers at random (lets just call this a little passtime of mine), I noticed a method call

Query with PDF Page display in PDFview

2008-05-15 Thread Amrit Majumdar
Hi All, Been working with the PDFKit for a couple of weeks now. With the PDFView we can display upto two pages in a row. I need to display more than two PDF pages in a row. An earlier post pointed me to the fact that the PDFThumbnailView can be used for the same. But the catch is

Problem with NSFileManger directoryContentsAtPath

2008-05-15 Thread JanakiRam
Hi All, I'm facing an issue with NSFileManger directoryContentsAtPath API. This seems to be an wried issue. But its very important for me to fix. Please help me. My application is trying to enumerate the folders in inside a Mac using NSFileManager API. But for some files its failing. It looks

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Apparao Mulpuri
Here is the Stacktrace: 2008-05-15 14:45:33.469 MyCocoaApp[554:10b] NSExceptionHandler has recorded the following exception: NSInternalInconsistencyException -- -[NSNextStepFrame(0x12e0d0) lockFocus] failed with window=0x145b30, windowNumber=340, [self isHiddenOrHasHiddenAncestor]=0 Stack trace:

[NSImageView setImage:nil] clarification

2008-05-15 Thread matt . gough
It isn't explicitly mentioning anywhere, but is: [someImageView setImage:nil]; the correct way to have an empty image view. Often the Appkit documentation calls out the validity of nil parameters (e.g [NSActionCell setImage:] and [NSLevelIndicator setImage:]), so the lack of such a

html

2008-05-15 Thread vinitha
Hi, I'm using xcode3.0 and objective c.Is there any way to generate html from the plain test or images?Actualy i've to send mail in both the way in normal way and its html view also.So cocoa provide any features to this?Anybody can help me? Thanks ___

glass effect - CG call to do this?

2008-05-15 Thread John Clayton
Hi A few months ago, while browsing code headers at random (lets just call this a little passtime of mine), I noticed a method call that took an image and then added a glass effect to it. I believe this was in the Core Graphics headers somewhere, but for the life of me can't find it now.

Maximize/Minimize other applications

2008-05-15 Thread Adil Saleem
Hi, Is there any method in Cocoa (other than Apple Script) to Maximiz/Minimize other applications ? Thanx ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Problem with NSFileManger directoryContentsAtPath

2008-05-15 Thread Jean-Daniel Dupas
Icon\r is an invisible file that contains a custom directory icon. What make you think this file is handle in different way ? The terminal displays '\r' as ^M but it's not a problem. Isn't it? Le 15 mai 08 à 12:17, JanakiRam a écrit : Hi All, I'm facing an issue with NSFileManger

Re: Maximize/Minimize other applications

2008-05-15 Thread Jean-Daniel Dupas
You cannot minimize an Application. You can hide it, or you can minimize an application's window. As it's said at least 4 times a week on this list, this is not possible to interact directly with other applications windows. The two most common way to interact with an other application is

Re: Core data model, bindings advice.

2008-05-15 Thread Steven Hamilton
Hmm, now I've done a bit more research (my heads puggled with it all ;) ) I believe none of those options are appropriate. Taking a more basic look at the issue the solution appears quite simple. I have an entity that contains data. I have a table that needs to display that data in a

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Apparao Mulpuri
Here is the complete stacktrace: 2008-05-15 15:58:53.730 MyCocoaApp[618:10b] *** Assertion failure in -[NSNextStepFrame lockFocus], /SourceCache/AppKit/AppKit-949.27/AppKit.subproj/NSView.m:4751 2008-05-15 15:58:53.737 MyCocoaApp[618:10b] NSExceptionHandler has recorded the following exception:

Re: Problem with NSFileManger directoryContentsAtPath

2008-05-15 Thread Graham Cox
How do the two outputs differ from your expectations? G. On 15 May 2008, at 8:17 pm, JanakiRam wrote: But its very important for me to fix. Please help me. My application is trying to enumerate the folders in inside a Mac using NSFileManager API. But for some files its failing. It looks

Re: Problem with NSFileManger directoryContentsAtPath

2008-05-15 Thread Michael Vannorsdel
This has to do with non-printable characters in pathnames. Each application can different how they visually represent these characters. The terminal just replaces them with '?', the Finder might use a space. When you have a path from NSFileManager, leave it as is in the NSString if

Re: Conditionally modifying NIBs?

2008-05-15 Thread Mike Fischer
Am 15.05.2008 um 02:20 schrieb Jonathan Hess: As for the original question, you can modify an IB file, to some extent, using ibtool --import and ibtool --export. For example, you might consider placing all of your views and objects in the XIB/ NIB, and then using these options to control

Re: Conditionally modifying NIBs?

2008-05-15 Thread Mike Fischer
Am 15.05.2008 um 01:10 schrieb Hamish Allan: On Wed, May 14, 2008 at 11:25 PM, Mike Fischer [EMAIL PROTECTED] wrote: (I know this can be hacked, and that while verbose it's only xml. But I'd want my apps building in the next Xcode (sub-)release as well.) Sure, well, you can't eat your

Basic info about outlets

2008-05-15 Thread John Love
I *think* I understand about outlets and actions .. but now I am not so sure. Specifically, if I set (NSWindow *)documentWindow as an Outlet in my main nib and I declare in MyDocument.h file: interface MyDocument:NSDocument { IBOutlet NSWindow *documentWindow; } ... - (void)

iPhone SDK List?

2008-05-15 Thread Rich Curtis
Been lurking on the list for a couple of days. Is there another list for iPhone SDK programmers? Doesn't seem to be much of that in this list. Am I in the wrong place for that sort of stuff? Thanks, RC ___ Cocoa-dev mailing list

Re: Dynamic message typing problem

2008-05-15 Thread Michael Vannorsdel
This block is probably causing some corruption. You're assigning 123 to a uchar pointer and not the uchar, then passing the address of a pointer to a method that tries to printout the pointer as an int rather than the intended uchar value. On May 14, 2008, at 7:19 PM, Julius Guzy wrote:

Re: iPhone SDK List?

2008-05-15 Thread Don Arnel
Unfortunately, no. The iPhone SDK is under NDA so it cannot be discussed at this time. On May 15, 2008, at 7:39 AM, Rich Curtis wrote: Been lurking on the list for a couple of days. Is there another list for iPhone SDK programmers? Doesn't seem to be much of that in this list. Am I in the

Re: iPhone SDK List?

2008-05-15 Thread Michael Vannorsdel
Currently NDA software from Apple is intended for you to quietly play with. No public or private forum exists for discussion on this SDK. On May 15, 2008, at 5:39 AM, Rich Curtis wrote: Been lurking on the list for a couple of days. Is there another list for iPhone SDK programmers?

Re: Basic info about outlets

2008-05-15 Thread Graham Cox
Yep, you're basically correct, sounds right to me. When the nib is loaded, documentWindow will point to (refer to) the window object. someMethod is able to simply use the variable documentWindow because that is an instance variable of the MyDocument object, and all methods of MyDocument

Re: Flash'In'App – Free Cocoa Framework

2008-05-15 Thread Julia Rixon
That's correct, all these things can be done with Flash'in'App. You can perform the following: - disable contextual menu and replace it with your own menu - send messages in Flash and receive return value, process functions invoked by flash movie and return result - intercept all attempts of

Re: Setting NSObjectController's to file's owner

2008-05-15 Thread Chris Suter
On 15/05/2008, at 5:21 PM, André Pang wrote: I have a nib file containing an NSObjectController. The NSObjectController's content is set to the File's Owner proxy object, and this creates a retain cycle. (The file's owner never gets deallocated because the object controller retains it,

Re: iPhone SDK List?

2008-05-15 Thread Matt Gough
When the SDK comes out of NDA it would be nice if there were a separate list for iPhone related issues, otherwise I can imagine this list being swamped with postings that a lot of us here have no interest in (since we aren't developing iPhone apps). General questions about common APIs

Re: Basic info about outlets

2008-05-15 Thread Torsten Curdt
Hm ...I would have though the runtime would just do dependency/ reference injection. And the procedural code has a (hidden) reference/parameter to the object instance - that would be self. cheers -- Torsten On May 15, 2008, at 13:53, Graham Cox wrote: Yep, you're basically correct, sounds

Re: Basic info about outlets

2008-05-15 Thread Graham Cox
I did say I was simplifying. Write for the audience. The procedural code doesn't have a hidden 'self', it's completely explicit: id objc_msgSend(id theReceiver, SEL theSelector, ...); G. On 15 May 2008, at 11:21 pm, Torsten Curdt wrote: Hm ...I would have though the runtime would just do

Re: Basic info about outlets

2008-05-15 Thread Mike Abdullah
Furthermore, if you want to see it in action a little more: If you create an object with an outlet like so: IBOutlet NSWindow *window and also give it methods like so: - (NSWindow *)window; - (void)setWindow:(NSWindow *)aWindow; When loading the nib, rather than

cocoa mentoring (was Re: Bypassing Interface Builder)

2008-05-15 Thread Torsten Curdt
On May 15, 2008, at 07:55, Uli Kusterer wrote: Am 15.05.2008 um 00:53 schrieb colo: Well. Huh. After reading all of that. I wish there was sorta mentor program. Ah but where would be the fun in that. Any way thats off topic. There is a mentor program. It is called: 'Pay Scott Stevenson of

Re: Basic info about outlets

2008-05-15 Thread Torsten Curdt
On May 15, 2008, at 15:32, Graham Cox wrote: I did say I was simplifying. Write for the audience. I know, I know ...just think of me as one of the guys asking a question after a presentation ;) cheers -- Torsten ___ Cocoa-dev mailing list

Re: cocoa mentoring (was Re: Bypassing Interface Builder)

2008-05-15 Thread Paul Bruneau
On May 15, 2008, at 9:36 AM, Torsten Curdt wrote: I have been thinking about BigNerdRanch. It would have been a great start ...but I guess now I would be more interested in advanced topics. Although Big Nerd Ranch's Cocoa Bootcamp is great for people just starting in Cocoa, it does

Re: Basic info about outlets

2008-05-15 Thread Erik Buck
But, just exactly HOW does the actual documentWindow object get passed so that someMethod can look at one of its properties? This question is oriented to behind the scenes For the current version of Interface Builder, see - (void)connectOutlet:(NSString

Re: cocoa mentoring (was Re: Bypassing Interface Builder)

2008-05-15 Thread Uli Kusterer
Am 15.05.2008 um 15:36 schrieb Torsten Curdt: On May 15, 2008, at 07:55, Uli Kusterer wrote: Am 15.05.2008 um 00:53 schrieb colo: Well. Huh. After reading all of that. I wish there was sorta mentor program. Ah but where would be the fun in that. Any way thats off topic. There is a

Re: Basic info about outlets

2008-05-15 Thread Graham Cox
That's interesting :) And I think I answered the completely wrong question. duh. G. On 16 May 2008, at 12:08 am, Erik Buck wrote: But, just exactly HOW does the actual documentWindow object get passed so that someMethod can look at one of its properties? This question is oriented to

cocoaheads frankfurt (was Re: cocoa mentoring)

2008-05-15 Thread Torsten Curdt
People interested in such an event please drop me a comment here. http://vafer.org/blog/20080515154119 cheers -- Torsten ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: cocoa mentoring (was Re: Bypassing Interface Builder)

2008-05-15 Thread Torsten Curdt
On May 15, 2008, at 15:47, Paul Bruneau wrote: On May 15, 2008, at 9:36 AM, Torsten Curdt wrote: I have been thinking about BigNerdRanch. It would have been a great start ...but I guess now I would be more interested in advanced topics. Although Big Nerd Ranch's Cocoa Bootcamp is

Re: Setting NSObjectController's to file's owner

2008-05-15 Thread André Pang
On 15/05/2008, at 5:21 PM, André Pang wrote: I have a nib file containing an NSObjectController. The NSObjectController's content is set to the File's Owner proxy object, and this creates a retain cycle. (The file's owner never gets deallocated because the object controller retains it,

Getting help...

2008-05-15 Thread john darnell
Okay, okay, this probably is off-topic, but I just spent fifteen minutes at the Apple site trying to figure out how to get the needed help without success, so at the risk of fiery flames shooting my way and verbal attacks the likes of which would make H.L. Mencken proud, I am going to ask my

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Jens Alfke
On 14 May '08, at 10:16 PM, David Wilson wrote: 3) Instance methods (with the -) are virtual functions. Class methods (with the +) are static functions. Class methods aren't exactly like static functions, because they're still dynamically dispatched and can be overridden by subclasses.

Re: Getting help...

2008-05-15 Thread I. Savant
- (void) beginSheetModalForWindow:(NSWindow *) ykpfqy //the gibberish is italicized This is constant throughout the help files. Most times I can figure out what the gibberish should represent, but not always. Does anyone know why my Help articles are appearing like this, and more

Re: Efficient XML loading [continuation of NSString from mapped NSData thread]

2008-05-15 Thread Jens Alfke
On 15 May '08, at 1:36 AM, Jean-Daniel Dupas wrote: I'm using AE to query large info set from iTunes and don't get any performance issues. But you have to learn how to use AE. Agreed. (Disclosure: I worked on AppleScript 1.0 and 1.1, and on some of the underlying AppleEvent

Re: [NSImageView setImage:nil] clarification

2008-05-15 Thread Jens Alfke
On 15 May '08, at 3:37 AM, [EMAIL PROTECTED] wrote: It isn't explicitly mentioning anywhere, but is: [someImageView setImage:nil]; the correct way to have an empty image view. Yes. Basically, all content-displaying views let the content object be nil. —Jens smime.p7s Description:

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Jens Alfke
On 15 May '08, at 2:24 AM, Apparao Mulpuri wrote: Here is the Stacktrace: The binary backtrace is hard to decipher (and it has to be deciphered on the same computer, or at least one with the exact same system version and frameworks.) Instead follow my directions about setting a

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Jens Alfke
On 15 May '08, at 3:41 AM, Apparao Mulpuri wrote: Here is the complete stacktrace: Thanks. This looks like a pretty normal backtrace (up until the exception), with only minimal involvement of your code, so it does seem like an AppKit bug. You should file a bug report, definitely

Re: Bypassing Interface Builder

2008-05-15 Thread Andy Lee
On May 14, 2008, at 10:33 PM, Johnny Lundy wrote: So it's the application instance. I don't understand what the application instance is. I can recite the documentation, which says it is a shared instance of NSApplication, also known as NSApp which is a global variable, none of which help

Re: Getting help...

2008-05-15 Thread Chris Woods
john darnell wrote: - (void) beginSheetModalForWindow:(NSWindow *) ykpfqy //the gibberish is italicized For what it's worth, I experienced this yesterday when I was looking at the docs in Firefox on a Windows machine. Looking now with Firefox and Safari on my Mac, the docs all look

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Scott Ribe
if you've spent a lot of time abusing void * to hack runtime dynamism into C++ Or if you've done it the right way, with templates--was more what I was thinking... 1-5 are all very good points. Much of what's been said here belongs in an intro document somewhere... -- Scott Ribe [EMAIL

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread colo
Lets add to this fun madness. Nice simple clean tutorials like this http://cocoadevcentral.com/d/learn_objectivec/ Could cocoa parts in the frame work be summed up like that as well? How many examples or paragraphs and or pages of text does it take to finally drill down the Cocoa method into your

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Kyle Sluder
On Thu, May 15, 2008 at 11:10 AM, Jens Alfke [EMAIL PROTECTED] wrote: Thanks. This looks like a pretty normal backtrace (up until the exception), with only minimal involvement of your code, so it does seem like an AppKit bug. You should file a bug report, definitely including the backtrace,

Re: Anybody using Pantomime or mail-core framework?

2008-05-15 Thread Matt Burnett
Its not hard to enable HTTP authentication. On May 13, 2008, at 1:07 AM, Jens Alfke wrote: On 12 May '08, at 10:57 PM, Omar Qazi wrote: I have an app that sends emails, and what I did is have it post the message parameters to my server. Then, a PHP page processes the parameters and sends

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Uli Kusterer
Am 15.05.2008 um 03:19 schrieb Erik Buck: 2) Learn C and at least learn to recognize low level operations like bit manipulation, pointers, intrinsic types, pointers to pointers, pointers to functions, etc. Without this, you will be lost and dangerous when writing Cocoa programs in

Password entry dialog

2008-05-15 Thread Ron Aldrich
Hello Folks, I'm trying to figure out where the API for the system's password entry dialog is defined. In particular, I'm interested in using the dialog which is used by Disk Utility (i.e. diskimages-helper) to enter passwords. Is there a public API for password entry dialogs? Or should

Re: Setting NSObjectController's to file's owner

2008-05-15 Thread Michael Babin
On May 15, 2008, at 9:53 AM, André Pang wrote: Hmm, I just created a small test application to try to reproduce this problem and couldn't get the retain cycle to happen. It's a dead-simple document-based Cocoa application with a single NSObjectController in the nib file, with a single

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread colo
Let me take this opportunity to once again shamelessly plug my C tutorial: http://masters-of-the-void.com which covers most of this (it doesn't cover pointers to functions and bitwise operations), especially memory management and pointers. Shameless plug but oh so nice of a Tut.

Re: Password entry dialog

2008-05-15 Thread Michael Vannorsdel
Look at the Security framework and functions like AuthorizationExecuteWithPrivileges. On May 14, 2008, at 6:12 PM, Ron Aldrich wrote: Hello Folks, I'm trying to figure out where the API for the system's password entry dialog is defined. In particular, I'm interested in using the dialog

RE: Getting help...

2008-05-15 Thread john darnell
I have a feeling that it may tie into Unicode interpretation of characters, but that's just a guess on my part... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Woods Sent: Thursday, May 15, 2008 10:12 AM To: cocoa-dev@lists.apple.com Subject: Re:

Cocoa Programming for Mac OS X 3rd ed Shipping?

2008-05-15 Thread colo
Oh look at that. http://theocacao.com/document.page/571 Says amazon is shipping, but a call to Borders tells me it will be first of June. Sooo Should I order from Amazon? Is it really out? Or a sanfoo? ___ Cocoa-dev mailing list

Re: Password entry dialog

2008-05-15 Thread glenn andreas
On May 14, 2008, at 7:12 PM, Ron Aldrich wrote: Hello Folks, I'm trying to figure out where the API for the system's password entry dialog is defined. In particular, I'm interested in using the dialog which is used by Disk Utility (i.e. diskimages-helper) to enter passwords. Is there

Re: Password entry dialog

2008-05-15 Thread Jean-Daniel Dupas
All security related API are in the Security Framework(s). You do not have control of what to user enter in this dialog, its main purpose is to create some rights and return them to you if the user is allow to use them. Usually this dialog is automatically displayed when you query some

Re: Password entry dialog

2008-05-15 Thread Jack Repenning
On May 14, 2008, at 5:12 PM, Ron Aldrich wrote: Is there a public API for password entry dialogs? Or should I just roll my own? Perhaps NSSecureTextField would be what you want. -==- Jack Repenning [EMAIL PROTECTED] Project Owner SCPlugin http://scplugin.tigris.org Subversion for the

Re: Bypassing Interface Builder

2008-05-15 Thread Johnny Lundy
On May 15, 2008, at 5:26 AM, [EMAIL PROTECTED] wrote: Message: 6 Date: Thu, 15 May 2008 08:15:41 +0200 From: Uli Kusterer [EMAIL PROTECTED] Subject: Re: Bypassing Interface Builder To: Johnny Lundy [EMAIL PROTECTED] Cc: cocoa-dev@lists.apple.com Message-ID: [EMAIL PROTECTED] Content-Type:

Re: Create NSStrings from a mapped NSData object - safe?

2008-05-15 Thread Dennis Munsie
It doesn't move the file -- it removes the entry for it in the directory. Once the reference count for it go to 0, then it gets removed from the filesystem -- i.e, it's space on the filesystem gets marked as being available. dennis On Wed, May 14, 2008 at 11:05 AM, Jean-Daniel Dupas [EMAIL

Re: Launching Cocoa Application externally

2008-05-15 Thread Yann Disser
Thank you all for your help. I managed to fix the problem by going over your suggestions. The problem was that I access a file (without proper error-handling; I will add that now :-)). The default working directory is the main- bundle path when run from within XCode and it is / when run

Re: Cocoa Programming for Mac OS X 3rd ed Shipping?

2008-05-15 Thread colo
I have my finger on the one day shipping button. The Orileys Safari is painful on the eyes due to crapy jpg scan. On Thu, May 15, 2008 at 12:35 PM, Joseph Heck [EMAIL PROTECTED] wrote: My copy just shipped from Amazon - I should have it in about 6 days. What's a week worth to you? Seems about

Re: Launching Cocoa Application externally

2008-05-15 Thread Jean-Daniel Dupas
Le 15 mai 08 à 18:42, Yann Disser a écrit : Thank you all for your help. I managed to fix the problem by going over your suggestions. The problem was that I access a file (without proper error-handling; I will add that now :-)). The default working directory is the main- bundle path when

Re: Cocoa Programming for Mac OS X 3rd ed Shipping?

2008-05-15 Thread Brad Carter
Mine shipped two days ago from the Amazon.com preorder. -Brad On Thursday, May 15, 2008, at 10:30AM, colo [EMAIL PROTECTED] wrote: Oh look at that. http://theocacao.com/document.page/571 Says amazon is shipping, but a call to Borders tells me it will be first of June. Sooo Should I order from

iPhone: Question about keyboard / drawing

2008-05-15 Thread Stuart Carnie
If I want to implement my own keyboard, I'd like it to behave similarly to the built-in iPhone keyboard. Specifically, when a key receives a 'touch' it pops out above the key, so the user can see it. As I understand, the UIKeyboard class is derived from UIView. When you touch one of the keys on

Re: Launching Cocoa Application externally

2008-05-15 Thread Sherm Pendley
On Thu, May 15, 2008 at 12:42 PM, Yann Disser [EMAIL PROTECTED] wrote: Thank you all for your help. I managed to fix the problem by going over your suggestions. The problem was that I access a file (without proper error-handling; I will add that now :-)). The default working directory is the

Re: iPhone: Question about keyboard / drawing

2008-05-15 Thread I. Savant
On Thu, May 15, 2008 at 12:52 PM, Stuart Carnie [EMAIL PROTECTED] wrote: If I want to implement my own keyboard, I'd like it to behave similarly to the built-in iPhone keyboard. Specifically, when a key receives a 'touch' it pops out above the key, so the user can see it. As I understand, the

Re: Cocoa Programming for Mac OS X 3rd ed Shipping?

2008-05-15 Thread colo
heh. I caved, I might see it tomorrow if it does not lie. ___ 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

Subject: Re: Bypassing Interface Builder

2008-05-15 Thread Erik Buck
OK - I really don't need the name then, but I am puzzled as to how my new class got instantiated. Here's what I did: 1. Create the class, the .h and .m files. Great. This is how Objective-C classes are generally created. Good job. 2. Code the ivars, their @property directives, and

Re: cocoa mentoring (was Re: Bypassing Interface Builder)

2008-05-15 Thread Dennis Munsie
I really don't understand why you wouldn't pay for it out of your pocket, as long as it would further a goal of yours -- i.e, if you want to work somewhere doing Cocoa or you want to finally write that great shareware app in Cocoa, you should look at it as an investment. Now, I understand that if

ButtonCell with Text in OutlineView

2008-05-15 Thread David
I'm trying to have a hierarchical set of choices with a checkbox next to each one. How can I best set this up? My current thinking was to try and create a NSButtonCell subclass which would act like a NSTextCell in that setting its value would set its title, but I'd parse the string which is

Re: iPhone: Question about keyboard / drawing

2008-05-15 Thread Hank Heijink (Mailinglists)
I don't know how many times this has already come up: until the NDA is lifted, you can't ask questions about the iPhone SDK on this list. On May 15, 2008, at 12:52 PM, Stuart Carnie wrote: If I want to implement my own keyboard, I'd like it to behave similarly to the built-in iPhone

Re: Subject: Re: Bypassing Interface Builder

2008-05-15 Thread Jeff LaMarche
On May 15, 2008, at 1:23 PM, Erik Buck wrote: Dragging any object from a palette (what does IB call palettes these days?) i It's called the Library... ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: cocoa mentoring - Berlin, Germany

2008-05-15 Thread Carsten
While we are on the topic, is anyone aware of anything related in Berlin, Germany? If not, is there anyone around who would be interested in occasional meetings? Carsten Whimster 2008/5/15 Torsten Curdt [EMAIL PROTECTED]: On May 15, 2008, at 07:55, Uli Kusterer wrote: Am 15.05.2008 um 00:53

Re: Bypassing Interface Builder

2008-05-15 Thread Paul Sargent
On 15 May 2008, at 17:40, Johnny Lundy wrote: but I am puzzled as to how my new class got instantiated. Here's what I did: 1. Create the class, the .h and .m files. 2. Code the ivars, their @property directives, and their @synthesize directives. 3. Write 2 instance methods plus the

Re: html

2008-05-15 Thread Douglas Davidson
On May 15, 2008, at 3:56 AM, [EMAIL PROTECTED] wrote: I'm using xcode3.0 and objective c.Is there any way to generate html from the plain test or images?Actualy i've to send mail in both the way in normal way and its html view also.So cocoa provide any features to this?Anybody can help me?

Re: cocoa mentoring - Berlin, Germany

2008-05-15 Thread Carsten
While we are on the topic, is anyone aware of anything related in Berlin, Germany? If not, is there anyone around who would be interested in occasional meetings? Carsten Whimster 2008/5/15 Torsten Curdt [EMAIL PROTECTED]: On May 15, 2008, at 07:55, Uli Kusterer wrote: Am 15.05.2008 um 00:53

Using NSThreads in command-line apps

2008-05-15 Thread ben syverson
Hi all, I have a bit of a dilemma. I'm working on a Foundation-based command- line utility that needs to manage a few threads. The obvious choice is NSThread, since it's nice and clean. Actually, I'm able to spawn new threads perfectly well. The problem is that I can't (?) use

Re: Launching Cocoa Application externally

2008-05-15 Thread Jens Alfke
On 15 May '08, at 9:42 AM, Yann Disser wrote: The problem was that I access a file (without proper error-handling; I will add that now :-)). The default working directory is the main- bundle path when run from within XCode and it is / when run from Finder. I repaired this by adding

[MODERATOR] Re: iPhone: Question about keyboard / drawing

2008-05-15 Thread Scott Anguish
ONCE AGAIN. Discussion of this technology is NOT appropriate here. Doing so can cause you to be moderated, banned from the list entirely, or other actions taken. Please respect the policy that NO NDA discussion of any sort should take place here. Scott Moderator On May 15, 2008, at

Re: Using NSThreads in command-line apps

2008-05-15 Thread Bill Bumgarner
On May 15, 2008, at 11:42 AM, ben syverson wrote: Actually, I'm able to spawn new threads perfectly well. The problem is that I can't (?) use performSelectorOnMainThread: because I'm not an NSApplication, and so I don't get the default main thread that loops for user input... Am I busted?

Re: Bypassing Interface Builder

2008-05-15 Thread Uli Kusterer
Am 15.05.2008 um 18:40 schrieb Johnny Lundy: 1. Create the class, the .h and .m files. 2. Code the ivars, their @property directives, and their @synthesize directives. 3. Write 2 instance methods plus the -init method. There are no class methods, and no IBOutlets. Just like you'd do

Re: Launching Cocoa Application externally

2008-05-15 Thread Douglas Davidson
On May 15, 2008, at 11:45 AM, Jens Alfke wrote: The problem was that I access a file (without proper error- handling; I will add that now :-)). The default working directory is the main-bundle path when run from within XCode and it is / when run from Finder. I repaired this by adding

Re: Query with PDF Page display in PDFview

2008-05-15 Thread John Calhoun
On May 15, 2008, at 3:07 AM, Amrit Majumdar wrote: With the PDFView we can display upto two pages in a row. I need to display more than two PDF pages in a row. An earlier post pointed me to the fact that the PDFThumbnailView can be used for the same. But the catch is PDFThumbnailView

Re: Using NSThreads in command-line apps

2008-05-15 Thread Randall Meadows
On May 15, 2008, at 12:42 PM, ben syverson wrote: I have a bit of a dilemma. I'm working on a Foundation-based command- line utility that needs to manage a few threads. The obvious choice is NSThread, since it's nice and clean. Actually, I'm able to spawn new threads perfectly well. The

Re: Using NSThreads in command-line apps

2008-05-15 Thread Jens Alfke
On 15 May '08, at 11:42 AM, ben syverson wrote: Actually, I'm able to spawn new threads perfectly well. The problem is that I can't (?) use performSelectorOnMainThread: because I'm not an NSApplication, and so I don't get the default main thread that loops for user input... You don't

Re: Using NSThreads in command-line apps

2008-05-15 Thread ben syverson
On May 15, 2008, at 1:47 PM, Bill Bumgarner wrote: Run an NSRunLoop on your main thread. That'll support - performSelectorOnMainThread:. Okay -- interesting. One follow-up question... my core loop is basically: while(_running) { // do stuff } I don't want to listen to any input,

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Stefan Werner
On May 14, 2008, at 8:33 PM, Scott Ribe wrote: === If you are primarily an experienced C++ programmer (In my experience you will have the hardest time) (2) I will have to personally disagree with this. I wonder, seriously, if it doesn't depend somewhat on whether or not you're a really

Re: Using NSThreads in command-line apps

2008-05-15 Thread ben syverson
On May 15, 2008, at 1:49 PM, Randall Meadows wrote: Can't you cache the main thread [NSThread +currentThread] when you start up, and then use NSObject's - performSelector:onThread:withObject:waitUntilDone: method? Yes, that would be ideal! Unfortunately that method is 10.5 only... - ben

Re: Using NSThreads in command-line apps

2008-05-15 Thread Bill Bumgarner
On May 15, 2008, at 12:16 PM, ben syverson wrote: On May 15, 2008, at 1:47 PM, Bill Bumgarner wrote: Run an NSRunLoop on your main thread. That'll support - performSelectorOnMainThread:. Okay -- interesting. One follow-up question... my core loop is basically: while(_running) {

  1   2   >