Re: Query with PDF Page display in PDFview

2008-05-15 Thread Antonio Nunes
On May 16, 2008, at 7:39 AM, Amrit Majumdar wrote: Consider a multipage Page PDF document. When the user launches the application All the pages of the document will be displayed in two rows. The pages will be resized and row one will display 5 pages,row two will display 5 pages. The user can

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Ilan Volow
The NSTableView is based on the MVC paradigm which has existed for quite some time. A method you implement gets called to return the value for each cell (more or less). So if you have a table with forty cells, then at least 40 times the method will get called. After I started looking at it

Storing PDF selection

2008-05-15 Thread Laurent Cerveau
Hi Is there a way to store serialize and store PDFselection ? If I have a PDF View , select part of it and get the currentSelection, showing it tells something like Page index = 2, Range = (0, 21] However I do not see where I could get the range of the PDFSelection and later recreate a sel

Re: Query with PDF Page display in PDFview

2008-05-15 Thread Amrit Majumdar
>What are your requirements? Consider a multipage Page PDF document. When the user launches the application All the pages of the document will be displayed in two rows. The pages will be resized and row one will display 5 pages,row two will display 5 pages. The user can select any of the displaye

Re: [MODERATOR] Re: WWDC ticket needed

2008-05-15 Thread Hal Mueller
Just for the record--not mine, no idea who the seller is. Mine ain't for sale! Hal ___ 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-adm

Re: NSDictionaryController with NSTableView and sorting of numeric data

2008-05-15 Thread Shawn Erickson
On Thu, May 15, 2008 at 10:43 PM, Kyle Sluder <[EMAIL PROTECTED]> wrote: > On Thu, May 15, 2008 at 5:30 PM, <[EMAIL PROTECTED]> wrote: >> It would seem that NSDictionaryController keys have to be strings. > > Yes. It is very common that, despite NSDictionary accepting any > object as a key, you m

[MODERATOR] Re: WWDC ticket needed

2008-05-15 Thread Scott Anguish
It is one thing to sell your ticket (when your ticket allows it) HOWEVER, posting ebay ads here for your tickets is not acceptable. On May 15, 2008, at 4:45 PM, Hal Mueller wrote: eBay item 220234875066 is at $1525 already, and not closing for another 5 days! scott moderator

Re: ButtonCell with Text in OutlineView

2008-05-15 Thread Kyle Sluder
On Thu, May 15, 2008 at 1:39 PM, David <[EMAIL PROTECTED]> wrote: > I do not understand how the column in the NSOutlineView knows how to set the > property to the cell. How are the cell and column related? How do they > interact? You bind the value of the column to a property, and then the column

Re: NSDictionaryController with NSTableView and sorting of numeric data

2008-05-15 Thread Kyle Sluder
On Thu, May 15, 2008 at 5:30 PM, <[EMAIL PROTECTED]> wrote: > It would seem that NSDictionaryController keys have to be strings. Yes. It is very common that, despite NSDictionary accepting any object as a key, you must use NSString keys. > So the sorting of numeric string keys is always going t

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread John Terranova
On May 15, 2008, at 6:33 PM, Joseph Ayers wrote: Imagine growing up on Excel and then dealing with NSTableView. How did this Cocoa NSTableView architecture evolve. Where is the history? When I first started with Cocoa I spent (and I still spend) a lot of time in code for NSTableView (and

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Kyle Sluder
On Fri, May 16, 2008 at 1:26 AM, Apparao Mulpuri <[EMAIL PROTECTED]> wrote: > Actually my application is primarily targeted for Leopard OS, which is > not working due to this Exception. I am creating a new window and > setting window frame, where exception occurs. What bothers me is that it looks

Re: Assertion failure in -[NSNextStepFrame lockFocus]

2008-05-15 Thread Apparao Mulpuri
Thanks Jens and Kyle Sluder. Actually my application is primarily targeted for Leopard OS, which is not working due to this Exception. I am creating a new window and setting window frame, where exception occurs. Is there any other way for setting the Window frame? - Apparao. On 5/15/08, Kyle Sl

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread James Merkel
Regarding the question on how NSTableView works -- there are examples of Table Views in the Aaron Hillegass book "Cocoa programming for Mac OS X". Also, there are literally hundreds of questions and answers on Table Views in the archives of this mailing list. When I get stuck on how to do s

Re: Problem with NSFileManger directoryContentsAtPath

2008-05-15 Thread JanakiRam
When i perform ls command it shows file name as "Icon?". When i perform cp command & tab it shows the file name as "Icon^M". Why Terminal does show different names for the same file. When i see it in Finder it does show as "Icon". Please advise. Thanks in Advance. JanakiRam On Thu, May 15, 2008

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

2008-05-15 Thread Andrew Farmer
On 15 May 08, at 09:42, Dennis Munsie wrote: 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. On a standard UNIX fil

Re: Using NSThreads in command-line apps

2008-05-15 Thread ben syverson
On May 15, 2008, at 8:02 PM, Jens Alfke wrote: I don't think the difference will be noticeable, if indeed there is any, unless you're trying to write The World's Fastest Web Server. Usually the important factor is how many hours it takes you to write and debug the code, not how many micros

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread mmalc crawford
On May 15, 2008, at 6:33 PM, Joseph Ayers wrote: The documentation absolutely sucks. How does one map table rows and columns on NSMutableArrays and NSMutableDictionaries. How does one map the Rows and Columns of a "dataSource" on a NSTable view? And here's another increasingly prevalent pr

Re: WWDC ticket needed

2008-05-15 Thread ainxow
On May 15, 2008, at 6:42 PM, Hal Mueller <[EMAIL PROTECTED]> wrote: eBay item 220234875066 is at $1525 already, and not closing for another 5 days! Well, it'll be interesting to see what effect this newfound popularity has on the Cocoa community. One suspects a certain amount of iPhone-f

Re: basic bindings question

2008-05-15 Thread Ken Thomases
You misunderstood what I was saying. On May 15, 2008, at 9:47 PM, Daniel Child wrote: You were right, it accidentally switched to user defaults. Removing that and setting it back to controller still leads to a runtime exception. 2008-05-15 22:30:53.718 StringBinding[290:10b] An uncaught ex

Re: setting target and action for a NSSlider programmatically in a class that is not "file's owner" - how?

2008-05-15 Thread Rua Haszard Morris
Aha!! Exactly, the self is not what I thought it was ... I understood the + was a class method, and kinda ignored the strange use of self. (I have only recently become aware that there is a 'self' in an instance method incidentally...) thanks for the help Rua HM. On May 16, 2008, at 2:38

Re: basic bindings question

2008-05-15 Thread Daniel Child
You were right, it accidentally switched to user defaults. Removing that and setting it back to controller still leads to a runtime exception. 2008-05-15 22:30:53.718 StringBinding[290:10b] An uncaught exception was raised 2008-05-15 22:30:53.719 StringBinding[290:10b] [0x119650> valueForUn

Re: setting target and action for a NSSlider programmatically in a class that is not "file's owner" - how?

2008-05-15 Thread Sherm Pendley
On Thu, May 15, 2008 at 10:12 PM, Rua Haszard Morris < [EMAIL PROTECTED]> wrote: > I'm trying to set the action for an NSSlider in a little helper class that > is not the "file's owner" class associated with the window in the nib. At > runtime, I get these console messages: > > *** +[SliderHelper

Re: window controller's [self window] not working

2008-05-15 Thread Daniel Child
I had already checked the outlets, but rebuilding the nib from scratch fixed the problem. It must have become corrupted somehow. Thanks. On May 15, 2008, at 12:35 AM, Ken Thomases wrote: On May 14, 2008, at 11:23 PM, Daniel Child wrote: I am just getting used to IB3 but don't see what or how

setting target and action for a NSSlider programmatically in a class that is not "file's owner" - how?

2008-05-15 Thread Rua Haszard Morris
I'm trying to set the action for an NSSlider in a little helper class that is not the "file's owner" class associated with the window in the nib. At runtime, I get these console messages: *** +[SliderHelper myAction:]: unrecognized selector sent to class 0xeb74380 HIToolbox: ignoring except

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Jens Alfke
On 15 May '08, at 6:33 PM, Joseph Ayers wrote: What is absolutely baffling is dealing with NSTableView. The documentation absolutely sucks. How does one map table rows and columns on NSMutableArrays and NSMutableDictionaries. How does one map the Rows and Columns of a "dataSource" on a NST

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Joseph Ayers
I think what is missing here is some history. I'm working on an APP to make a series of arbitrary measurements (i.e. positions, distances angles, shapes) on each of the frames of a movie. On some movies I might want to make three position measurements, on others I want to make 4 angle measuremen

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Jens Alfke
On 15 May '08, at 5:03 PM, mmalc crawford wrote: My guidance for Cocoa's alleged "steep learning curve" is, "Why are you making it steep?" It reminds me of the clichéd joke: "Doctor, it hurts when I do this." "Well, don't do that." I agree. There are so many questions on this list from pe

Re: Using NSThreads in command-line apps

2008-05-15 Thread Jens Alfke
On 15 May '08, at 3:40 PM, ben syverson wrote: I know it's kevent "style," but unless it's actually kevent (or a similar kernel-level event system) under there, I have my doubts about the performance under heavy load. I don't think the difference will be noticeable, if indeed there is an

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

2008-05-15 Thread Graham Cox
The first rule of iPhone development club is *YOU DO NOT TALK ABOUT IPHONE DEVELOPMENT CLUB* On 16 May 2008, at 4:46 am, Scott Anguish wrote: Discussion of this technology is NOT appropriate here. ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: NSURLRequest : Unable to Quit App after Syn call to Server.

2008-05-15 Thread Jens Alfke
On 15 May '08, at 2:21 PM, [EMAIL PROTECTED] wrote: The Cocoa code below "works". I get data back from the server. However, I'm unable to QUIT this application after this particular routine passes through. I checked the Activity Monitor and can see a bunch of threads still in session

Re: Maximize/Minimize other applications

2008-05-15 Thread Ken Thomases
That's not quite correct. The Hide Others item in the application menu is implemented via -[NSApplication hideOtherApplications:]. One can invoke that directly to accomplish the same thing. Similarly, - [NSApplication unhideAllApplications:] will unhide all other applications. Beyond tha

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread mmalc crawford
On May 15, 2008, at 3:39 PM, Bruno Sanz Marino wrote: The really first step with a language is allways to write code and forget the "GUI" and the "buttons and windows" .Then when you know what are you doing and you can do what you want to do (like a painter), you can think in the "GUIS

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Bruno Sanz Marino
I come from Java, and before, for web and for Windows and i am learning Cocoa for "Iphone" purposes mainly For me the biggest issue is to learn the libraries and frameworks (all these tons of objects) Cocoa is long away from the "pure c" Win32 library (of microsoft windows)...But the true is

Re: Using NSThreads in command-line apps

2008-05-15 Thread Hamish Allan
On Thu, May 15, 2008 at 11:40 PM, ben syverson <[EMAIL PROTECTED]> wrote: > I know it's kevent "style," but unless it's actually kevent (or a similar > kernel-level event system) under there, I have my doubts about the > performance under heavy load. I guess I could (should) do benchmarks of both

Re: Using NSThreads in command-line apps

2008-05-15 Thread ben syverson
On May 15, 2008, at 5:33 PM, Hamish Allan wrote: NSRunLoop is just Cocoa's implementation of a kevent()-style loop. Instead of adding your socket to the kqueue, add it to the run loop instead. (See e.g. http://cocoadevcentral.com/articles/39.php -- which uses the CFRunLoop interface, but it

Re: Using NSThreads in command-line apps

2008-05-15 Thread Hamish Allan
On Thu, May 15, 2008 at 8:16 PM, ben syverson <[EMAIL PROTECTED]> wrote: > I don't want to listen to any input, and I want the loop to execute as fast > as possible. However, NSRunLoop says I need to set a timer or an input... On Thu, May 15, 2008 at 8:53 PM, ben syverson <[EMAIL PROTECTED]> wrot

Re: Using NSThreads in command-line apps

2008-05-15 Thread Sherm Pendley
On Thu, May 15, 2008 at 6:28 PM, ben syverson <[EMAIL PROTECTED]> wrote: Besides, if I'm writing something from scratch, why not make it scream? :) > Make it work first. Then Shark it until it screams. :-) sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net

Re: Using NSThreads in command-line apps

2008-05-15 Thread ben syverson
On May 15, 2008, at 4:17 PM, Jens Alfke wrote: You can wire up kqueues to a runloop fairly easily. Instead of blocking, the kqueue will post an event to the runloop when something happens. Then instead of waiting in kevent, you just handle events in your runloop, and your callback will be i

Re: Password entry dialog

2008-05-15 Thread Jean-Daniel Dupas
Le 15 mai 08 à 23:17, Ron Aldrich a écrit : On May 15, 2008, at 9:32 AM, Jean-Daniel Dupas wrote: 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

Re: Finding my way through binding

2008-05-15 Thread Hamish Allan
On Thu, May 15, 2008 at 2:54 PM, Laurent Cerveau <[EMAIL PROTECTED]> wrote: > I then try to add an entity through the NSTreeController addObject method, > and ...nothing happens, except a message in the console that says > "Cocoa Bindings: Cannot create NSArray from object NSCFString of class > NS

Re: NSDictionaryController with NSTableView and sorting of numeric data

2008-05-15 Thread jonathan
It would seem that NSDictionaryController keys have to be strings. So the sorting of numeric string keys is always going to be alphabetic. My solution was to discard NSDictionaryController and create a proxy object containing two properties: id key; id value; I looped through my dictionary c

NSURLRequest : Unable to Quit App after Syn call to Server.

2008-05-15 Thread fclee
Greetings: The Cocoa code below "works". I get data back from the server. However, I'm unable to QUIT this application after this particular routine passes through. I checked the Activity Monitor and can see a bunch of threads still in session: Call graph: 1922 Thread_2503 1922

Re: Using NSThreads in command-line apps

2008-05-15 Thread Jens Alfke
On 15 May '08, at 12:16 PM, ben syverson wrote: I don't want to listen to any input, and I want the loop to execute as fast as possible. However, NSRunLoop says I need to set a timer or an input... If you're just running a loop of your own code (or blocking in a system call like kqueue)

Re: Anybody using Pantomime or mail-core framework?

2008-05-15 Thread Andrew Farmer
On 13 May 08, at 17:40, Matt Burnett wrote: Now your talking about hackers instead of spammers. It is hard to sniff a HTTP session, you have to penetrate your victim's network enough to be able to do so. You're assuming that the application is only ever used in a trusted environment, which

Re: Password entry dialog

2008-05-15 Thread Ron Aldrich
On May 15, 2008, at 9:32 AM, Jean-Daniel Dupas wrote: 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

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

2008-05-15 Thread Torsten Curdt
On May 15, 2008, at 19:34, Dennis Munsie wrote: 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

Re: WWDC ticket needed

2008-05-15 Thread Hal Mueller
eBay item 220234875066 is at $1525 already, and not closing for another 5 days! Hal ___ 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-admi

Re: Conditionally modifying NIBs?

2008-05-15 Thread Jonathan Hess
On May 15, 2008, at 4:25 AM, Mike Fischer wrote: 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 XI

Re: Bypassing Interface Builder

2008-05-15 Thread Johnny Lundy
One final reply and I will have cluttered up this list enough for now. I thank everyone who took the time to help me. On May 15, 2008, at 3:06 PM, [EMAIL PROTECTED] wrote: From: Uli Kusterer <[EMAIL PROTECTED]> Subject: Re: Bypassing Interface Builder To: Johnny Lundy <[EMAIL PROTECTED]> A

Re: Bypassing Interface Builder

2008-05-15 Thread Shawn Erickson
On Thu, May 15, 2008 at 1:20 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > "File's Owner. An object that owns the nib file and manages the > objects within it. The File's Owner must be external to the nib file. > You use the File's Owner object as the conduit for connections between > objects in

Re: Bypassing Interface Builder

2008-05-15 Thread Shawn Erickson
On Thu, May 15, 2008 at 1:11 PM, Johnny Lundy <[EMAIL PROTECTED]> wrote: > OK - I am getting a lot of education here. I am not a total n00b with Cocoa, > and have been studying it and coding it for six years, but I realize that a > lot of stuff I memorized how to do, I never understood what I was d

Re: WWDC ticket needed

2008-05-15 Thread John C. Randolph
I got caught procrastinating, too. Anyone who can't make it to the show and wants to sell their ticket, I'm interested. -jcr John C. Randolph, VP, Engineering Stealth Imaging, Inc. <[EMAIL PROTECTED]> ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: Bypassing Interface Builder

2008-05-15 Thread Johnny Lundy
OK - I am getting a lot of education here. I am not a total n00b with Cocoa, and have been studying it and coding it for six years, but I realize that a lot of stuff I memorized how to do, I never understood what I was doing. On May 15, 2008, at 3:06 PM, [EMAIL PROTECTED] wrote: Right.

Re: Using NSThreads in command-line apps

2008-05-15 Thread ben syverson
On May 15, 2008, at 2:25 PM, Bill Bumgarner wrote: Your main thread loop? If that is the design you want to use, then you can use NSLock -- NSConditionLock, typically -- to do the synchronization between threads. If your loop really is running flat out, then using a condition lock will

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Scott Ribe
> then there's not that much new in Objective-C/Cocoa IMHO. Exactly. Deferred-release makes reference counting easier. Looser more dynamic typing makes certain things more convenient & more concise. Delegation keeps the single-inheritance hierarchy shallow and comprehensible. The handful of powerf

Re: Using NSThreads in command-line apps

2008-05-15 Thread Bill Bumgarner
On May 15, 2008, at 12:17 PM, ben syverson wrote: 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! Un

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) { /

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: 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: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: Cocoa Programming for Mac OS X 3rd ed Shipping?

2008-05-15 Thread Jeremy Matthews
Mine is in my hands...Amazon overnight. -j On May 15, 2008, at 2:52 PM, [EMAIL PROTECTED] wrote: Re: Cocoa Programming for Mac OS X 3rd ed Shipping? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moder

Re: Guidance for Cocoa's steep learning curve

2008-05-15 Thread Jens Alfke
On 15 May '08, at 8:21 AM, colo wrote: I get messages and oop [Sender Dosomething] or in Ruby @sender.dosomething. OOP was easy for me as thats how I already thought code would be like. Of course I am still learning but I fail to see why Cocoa syntax could be any different than Ruby. Um, beca

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 n

Re: Using NSThreads in command-line apps

2008-05-15 Thread Uli Kusterer
Am 15.05.2008 um 20:42 schrieb ben syverson: 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... Check out NSRu

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 prob

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 doesn't

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: 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 wi

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

[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 1

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 [[NS

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 performSelec

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: 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 -ini

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

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

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 o

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 keyboard

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 encoded

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

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

2008-05-15 Thread allan greenier
Amazon tells me the book is shipped and on it's way to me. ___ 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 Help/Un

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, an

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 Help/U

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,

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

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: 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

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 Jason Sallis
I just got an email from Amazon this morning indicating that they're still trying to get the book (I pre-ordered in March). I did some searching, and a number of other online retailers are listing a May 16 release date. I wouldn't worry about it...copies will be mailed out soon, I'm sure. On Thu,

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 abo

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 fr

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 PR

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: 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 res

[MEET] Singapore CocoaHeads TONIGHT

2008-05-15 Thread Joe Goh
Singapore CocoaHeads will be held tonight (16 May) at iShop @ Cineleisure between 7 - 9pm. Please ask the staff about CocoaHeads and they'll guide you to where we're meeting. We gather monthly to discuss Apple's Cocoa framework for programming on Mac OS X (and soon, the iPhone / iPod Touch) as we

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 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 a

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 (Cocoa-dev@lists.apple.co

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: G

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

  1   2   >