Re: NSSocketPort initRemoteWithTCPPort is never valid

2009-07-14 Thread Ken Thomases
On Jul 14, 2009, at 1:40 AM, Christopher J Kemsley wrote: This is just a quick question for anyone who may know (or, at least I hope it's quick) If I declare a port: port = [ [NSSocketPort alloc] initRemoteWithTCPPort:portNumber host:hostName ] ; And use it with an NSConnection, it work

Re: GDB Running

2009-07-14 Thread Kyle Sluder
On Tue, Jul 14, 2009 at 8:44 PM, Agha Khan wrote: > How can we get rid of GDB Running message? 1) What are you talking about? 2) Shouldn't you be talking about it on the xcode-users list? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.

GDB Running

2009-07-14 Thread Agha Khan
Hi: How can we get rid of GDB Running message? Best regards -Agha ___ 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: Core Data debugging

2009-07-14 Thread Fritz Anderson
On 14 Jul 2009, at 5:14 PM, tmow...@talktalk.net wrote: BOOL result = [moc save: &err]; ... The problem is that every time I call this method the result is NO implying a failure when saving. ... The issue for this post is that when I try to examine the NSError object it is invalid. The NSE

Re: Why this program does not run without nib file?

2009-07-14 Thread Agha Khan
Got it. No error in the code. Just add one more line of code self.view = viewController.view; Thank everyone. Best regards Agha On Jul 14, 2009, at 7:23 PM, Agha Khan wrote: Hi: you may download DigiClock http://appsamuck.com/day28.html I just wanted to remove MainWindow.xib from the project

Why this program does not run without nib file?

2009-07-14 Thread Agha Khan
Hi: you may download DigiClock http://appsamuck.com/day28.html I just wanted to remove MainWindow.xib from the project. so go to the info.plist and remove MainWindow.xib go to the main.m and replace this line int retVal = UIApplicationMain(argc, argv, nil, @"DigiClockAppDelegate"); go to Dig

Re: my app needs another incoming event after closing modal panel

2009-07-14 Thread Graham Cox
On 14/07/2009, at 10:33 PM, Thomas Pesters wrote: Hi, I'm having the following problem: - I'm opening a panel with a progress indicator - I'm starting a new thread with a background function (via NSThread detachNewThreadSelector) - I do NSApp runModalForWindow: for the progress panel - when t

Re: Use Cocoa in QL Generator

2009-07-14 Thread Kiel Gillard
Read the documentation: http://devworld.apple.com/documentation/UserExperience/Conceptual/Quicklook_Programming_Guide/Introduction/Introduction.html The samples there use Cocoa as well as CoreFoundation. On 15/07/2009, at 10:34 AM, David Blanton wrote: I want to use Cocoa calls in my Generate

Use Cocoa in QL Generator

2009-07-14 Thread David Blanton
I want to use Cocoa calls in my GenerateThumbnailForURL what do I ahve to do to use 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

Re: {Cocoa semi-related} Unable to de-archive an archive from SQLite.

2009-07-14 Thread Frederick C. Lee
Ohh! -rw-r--r--@ 1 Ric Ric 514108 Jul 14 16:45 sqlite3-3.6.16-osx-x86.bin [/Users/Ric/Downloads/tmp]chmod +x *.bin [/Users/Ric/Downloads/tmp]ls -l total 1008 -rwxr-xr-x@ 1 Ric Ric 514108 Jul 14 16:45 sqlite3-3.6.16-osx-x86.bin* [/Users/Ric/Downloads/tmp]./*.bin SQLite version 3.6.16 Ent

Re: {Cocoa semi-related} Unable to de-archive an archive from SQLite.

2009-07-14 Thread Kyle Sluder
On Tue, Jul 14, 2009 at 4:44 PM, Frederick C. Lee wrote: > Now what?? Open up Terminal and run the program. It's not a GUI app. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator commen

Re: {Cocoa semi-related} Unable to de-archive an archive from SQLite.

2009-07-14 Thread Frederick C. Lee
I tried that.But I still have the problem. Leopard wants to assign an application for it. So the question, which 'binary executable'? If I remove the .bin --- I get a text editor attempting to open it. If I keep the .bin, by default, Leopard tries to dearchive it; which you said, is not an archi

Re: How to create programaticlly

2009-07-14 Thread Joel Norvell
Hi Agha, In my previous note, I forgot to mention that the button will have to be explicitly connected to its window's view hierarchy, unless your view controller does this for you. So you'll probably need to find its super view and do something like this: [itsSuperview addSubview: newBut

Re: {Cocoa semi-related} Unable to de-archive an archive from SQLite.

2009-07-14 Thread BJ Homer
It's not an archive; that's the actual binary executable. Just rename it to something more reasonable. I dealt with this just last week. -BJ On Tue, Jul 14, 2009 at 5:06 PM, Frederick C. Lee wrote: > I'm trying to dearcive sqlite3-3.6.16-osx-x86.bin. > > But what I get is: sqlite3-3.6.16-osx-x8

Re: [iPhone] Network connection between 2 iPhones-Can GKVoiceChat be my solution?

2009-07-14 Thread Roland King
Sent from my iPhone On 15-Jul-2009, at 7:03, Luke the Hiesterman In either case, the hard work is in setting up the connection, which you have to do, and there's no support for arbitrary data. Luke Absolutely, this isn't the free and easy data channel the original poster wanted, findin

{Cocoa semi-related} Unable to de-archive an archive from SQLite.

2009-07-14 Thread Frederick C. Lee
I'm trying to dearcive sqlite3-3.6.16-osx-x86.bin. But what I get is: sqlite3-3.6.16-osx-x86.bin.cpgz Is there a remedy? Ric. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: [iPhone] Network connection between 2 iPhones-Can GKVoiceChat be my solution?

2009-07-14 Thread Luke the Hiesterman
On Jul 14, 2009, at 3:59 PM, Roland King wrote: Sent from my iPhone On 15-Jul-2009, at 2:47, Luke the Hiesterman wrote: Comments inline. On Jul 13, 2009, at 10:29 PM, James Lin wrote: When using voice chat, the connection is entirely handled by your code. The voice chat service

Re: [iPhone] Network connection between 2 iPhones-Can GKVoiceChat be my solution?

2009-07-14 Thread Roland King
Sent from my iPhone On 15-Jul-2009, at 2:47, Luke the Hiesterman wrote: Comments inline. On Jul 13, 2009, at 10:29 PM, James Lin wrote: When using voice chat, the connection is entirely handled by your code. The voice chat service simply handles the audio input and output and packe

Re: How to create programaticlly

2009-07-14 Thread Joel Norvell
Hi Agha, I guess you've overridden your NSViewController's loadView method, which seems like a good place to roll your own button. You'll need to create and initialize the button with something like this: NSButton *newButton = [[[NSButton alloc] initWithFrame:nestedFrame] autorelease]; A

Re: How to create programaticlly

2009-07-14 Thread I. Savant
On Jul 14, 2009, at 5:38 PM, Agha Khan wrote: How to create infoButton programaticlly? I do not have nib file, so I have to create inside - (void)loadView function. http://lmgtfy.com/?q=cocoa+creating+buttons+programmatically -- I.S. ___ Cocoa-d

Core Data debugging

2009-07-14 Thread tmowlem
Hello, I am writing a CoreData based application. I am creating Managed Objects and then saving them with by sending the save message to the context thus: NSError *err; BOOL result = [moc save: &err]; The problem is that every time I call this method the result is NO implying a fail

How to create programaticlly

2009-07-14 Thread Agha Khan
Hi: How to create infoButton programaticlly? I do not have nib file, so I have to create inside - (void)loadView function. Regards -Agha ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: my app needs another incoming event after closing modal panel

2009-07-14 Thread I. Savant
On Jul 14, 2009, at 8:33 AM, Thomas Pesters wrote: ... When my app finishes the background thread, the progress window closes as expected, modal stops and the windows below get focus. But: only after an event arrives (moving the mouse or hitting a key) ... From what thread are you ending

my app needs another incoming event after closing modal panel

2009-07-14 Thread Thomas Pesters
Hi, I'm having the following problem: - I'm opening a panel with a progress indicator - I'm starting a new thread with a background function (via NSThread detachNewThreadSelector) - I do NSApp runModalForWindow: for the progress panel - when the thread is finished, I close the progress panel ("or

Re: [iPhone] Network connection between 2 iPhones-Can GKVoiceChat be my solution?

2009-07-14 Thread Luke the Hiesterman
Comments inline. On Jul 13, 2009, at 10:29 PM, James Lin wrote: Hi all... Continuing on with my network between 2 iPhone quest... Thanks to Luke who made me aware of Game Kit and GKVoiceChat. As I am new to network programming, I need you to help me make sense of the documentation. If I

[MEET] Chicago CocoaHeads Tuesday July 14th

2009-07-14 Thread Bob Frank
Hi all, Sorry for the late reminder. I sent out the informal reminder last week, but forgot to send this out. The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group is holding our next meeting Tonight July 14th, at 7:00 PM at the Apple Store on Michigan Ave. in the 2nd floor Th

Re: Getting the list of users and groups (anything new?)

2009-07-14 Thread Kyle Sluder
On Tue, Jul 14, 2009 at 3:35 AM, Iceberg-Dev wrote: > On Leopard and later, is Directory Services still the official solution to > retrieve the list of users and groups on the OS? On Leopard it is. You know "and later" can't be discussed here. Try http://devforums.apple.com. --Kyle Sluder _

Re: Networking

2009-07-14 Thread Greg Guerin
Christopher J Kemsley wrote: What I want: A custom written server on Device A that listens on The Port for a device to connect. It expects to be sent an NSData object and will be expected to return another NSData object. Device B should be able to, through a blocking method (or backgrou

Re: spaghetti code with core data and multiple views

2009-07-14 Thread Christopher Campbell Jensen
In addition to the previous post from Mr Quincey Morris, I received the following from Aaron: Hi Chris, I'm having troubles posting to the list so this is a private response, but feel free to use any of this email on-list if you want to. I haven't read your entire email, but the impress

Re: What is the difference between the -awakeFromNib and -init?

2009-07-14 Thread John Baldwin
Here's some reference material that I think helps explain this. It sounds like you're new to Cocoa, so a beginning Cocoa book might be helpful as well. I liked the Hillegass book, but shop around for one that fits your style. awakeFromNib: http://developer.apple.com/documentation/Cocoa/Conc

Re: What is the difference between the -awakeFromNib and -init?

2009-07-14 Thread Luke the Hiesterman
On Jul 14, 2009, at 2:20 AM, Bright wrote: - (void)awakeFromNib{ - (id)init{ What's the difference between the two methods? awakeFromNib is essentially a timing signifier. It gives your class a chance to do any first actions after being loaded from a nib much in the same way that applic

Re: Cocoa Frontend to SDL App

2009-07-14 Thread Anthony Smith
Thanks for the information. It looks like I'll have to rewrite the video code to do what I need. Thanks a ton! On Jul 12, 2009, at 2:25 PM, Alexander Spohr wrote: Am 11.07.2009 um 22:09 schrieb Anthony Smith: On Jul 11, 2009, at 11:51 AM, Alexander Spohr wrote: Am 10.07.2009 um 21:35 s

Re: Best 'Cocoa' File Preview

2009-07-14 Thread Julien Jalon
Hi David, Glad you got it to work. On Tue, Jul 14, 2009 at 3:34 AM, David Blanton wrote: > > Furthermore why so convoluted and difficult? I should be able to say call > me for files of type'.pes' and be done with it. That's what you need to do. Except file extensions is not a "robust" way to d

Re: Saving NSArray of custom objects

2009-07-14 Thread DKJ
On 14-Jul-09, at 2:51 , Mike Abdullah wrote: Slightly separate to the question, have you actually declared that your class conforms to the protocol, or just implemented the methods? i.e. the header should be something like: MyClass : NSObject Yes, I declared it as well. And NSKeyedArchive

Getting the list of users and groups (anything new?)

2009-07-14 Thread Iceberg-Dev
On Leopard and later, is Directory Services still the official solution to retrieve the list of users and groups on the OS? Starting with Leopard, we now have the Identity Service or Collaboration Framework but it apparently can't provide all the uid and gid on the system, only provide meta

Re: spaghetti code with core data and multiple views

2009-07-14 Thread Quincey Morris
On Jul 14, 2009, at 02:14, Christopher Campbell Jensen wrote: So what is needed is for me to be able to pass this "narrowed down data" from one view to another in a way so that the next view can make changes/further refinement before passing it on to the next one. Now the question is, how d

Re: Saving NSArray of custom objects

2009-07-14 Thread Mike Abdullah
On 14 Jul 2009, at 01:22, DKJ wrote: I've defined my own MyClass and made it conform to the NSCoding protocol by adding methods like this: - (void)encodeWithCoder:(NSCoder *)encoder { [encoder encodeInt:index forKey:@"index"]; } - (id)initWithCoder:(NSCoder *)decoder { self = [super in

Re: What is the difference between the -awakeFromNib and -init?

2009-07-14 Thread Mike Abdullah
Have you read the documentation on them? I'm assuming not because Apple has included a lot of very helpful and detailed information on the two. If you have, perhaps you could tell us which point you're confused on? Otherwise, the best we can probably do is restate the documentation. Mike.

What is the difference between the -awakeFromNib and -init?

2009-07-14 Thread Bright
In applications, there are - (void)awakeFromNib and - (id)init method at the same time. - (void)awakeFromNib{ //add code } - (id)init{ self = [super init]; if (self) { //add code } return self; } What's the difference between the two methods?

Re: spaghetti code with core data and multiple views

2009-07-14 Thread Christopher Campbell Jensen
On 14 Jul 2009, at 09:11, cocoa-dev-requ...@lists.apple.com wrote: In terms of the app delegate, window controllers and view controllers, it sounds like you've done things perfectly for your given user interface design. In terms of the "narrowed down" set of data, you haven't quite thought you

Re: spaghetti code with core data and multiple views

2009-07-14 Thread Quincey Morris
On Jul 13, 2009, at 15:42, Christopher Campbell Jensen wrote: At first I figured this was a nice way of designing things. Each separate view element/window has it's own controller, and thereby reducing the amount of different tasks that the MainWindowController needs to deal with. I am now