Re: Getting a substring

2008-12-05 Thread Peter N Lewis
At 20:03 -0200 5/12/08, Ariel Rodriguez wrote: My question is simple, at least that is what i think :) I need to extract something like this: 01816560 from something like this: http://www..com/diario/2008/12/05/um/m-01816560.htm My first idea was to use - (NSArray *)componentsSeparatedBySt

Changing key behaviors for NSTableView

2008-12-05 Thread Steven W Riggins
I have written a simple application with a table view. I want the table to edit a cell when I press return. I could not find a way to do this other than subclassing and overriding keyDown. Did I miss a more elegant solution? Steve ___ Cocoa-dev m

Re: Questions about [NSApplication run]

2008-12-05 Thread Ken Thomases
On Dec 5, 2008, at 10:53 PM, Slava Pestov wrote: Thanks! You're welcome. I'm glad I could help. By the way, I don't know how efficient it is to have many CFFileDescriptors if you need to monitor many file descriptors. If it proves inefficient, keep in mind the technique described in the

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Jerry Krinock
On 2008 Dec, 05, at 20:06, Jim Correia wrote: Why would you refactor your code so that name is no longer a property? Name is still a conceptually a property, but it is dependent on firstName and lastName, and read only now. @property(nonatomic, readonly) NSString *name; /* or fullName */

Re: Questions about [NSApplication run]

2008-12-05 Thread Slava Pestov
On Fri, Dec 5, 2008 at 10:41 PM, Ken Thomases <[EMAIL PROTECTED]> wrote: > If you can require Leopard, take a look at CFFileDescriptor. Prior to > Leopard, you can use CFSocket with any file descriptor, so long as you don't > use the socket-specific parts of that interface. I do indeed require Le

Re: Questions about [NSApplication run]

2008-12-05 Thread Ken Thomases
On Dec 5, 2008, at 10:03 PM, Slava Pestov wrote: The reason I'm doing it is because I have a Cocoa binding for Factor (http://factocode.org), and the Factor VM doesn't support native threads. The language has its own lightweight co-operative thread model, with all I/O done non-blocking under the

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Eric Schlegel
On Dec 5, 2008, at 3:22 PM, Påhl Melin wrote: I didn't really decide I shouldn't use a run loop for the timers. I am porting a library from another platform and just wanted a quick answer if I could get a similar timer API behavior in either Cocoa, Core Foundation or BSD Unix (with a preference

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Bill Bumgarner
On Dec 5, 2008, at 7:55 PM, Jerry Krinock wrote: I understand why this must be so, but it makes the dot syntax difficult to use in practice. When writing a message, I have to stop and think, "Gee did I declare that as a property or not?" If I'm not sure, and have to click to my documentati

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Jim Correia
On Dec 5, 2008, at 10:55 PM, Jerry Krinock wrote: On 2008 Dec, 05, at 18:40, Chris Hanson wrote: Dot syntax compiles to objc_msgSend* just like bracket syntax does. However, it must see either getter/setter declarations or an @property declaration to know what selector to put in the objc

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Clark Cox
On Fri, Dec 5, 2008 at 7:55 PM, Jerry Krinock <[EMAIL PROTECTED]> wrote: > > On 2008 Dec, 05, at 18:40, Chris Hanson wrote: > >> Dot syntax compiles to objc_msgSend* just like bracket syntax does. >> However, it must see either getter/setter declarations or an @property >> declaration to know what

Re: Questions about [NSApplication run]

2008-12-05 Thread Slava Pestov
Hi, The reason I'm doing it is because I have a Cocoa binding for Factor (http://factocode.org), and the Factor VM doesn't support native threads. The language has its own lightweight co-operative thread model, with all I/O done non-blocking under the hood, to give the illusion of concurrency; a l

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Jerry Krinock
On 2008 Dec, 05, at 18:40, Chris Hanson wrote: Dot syntax compiles to objc_msgSend* just like bracket syntax does. However, it must see either getter/setter declarations or an @property declaration to know what selector to put in the objc_msgSend* that it compiles to. I understand why t

Customize toolbar actions sent to wrong toolbar

2008-12-05 Thread Dave Fernandes
My document window has a toolbar that displays and works correctly, and that document window can show an NSPanel as a sheet to do some editing. The sheet also has a toolbar that displays and works correctly. The problem arises when one right clicks on the sheet's toolbar to customize it. If

Re: How to design / structure sheets

2008-12-05 Thread Ken Thomases
On Dec 5, 2008, at 12:20 PM, Mike Chambers wrote: I am creating a custom sheet for my application which allows a user to add an item to iCal. However, it is not clear to me the best way to structure my code. [...] The Sheet is contained in a separate NIB / XIB file as an NSWindow. I see two p

Re: Various syntax errors and ICA kit

2008-12-05 Thread jmunson
Namaste! Also, if I take out the #import statement from the .m file, I get a compiler warning about a "forward class." I don't know if that means anything truly important or not (but that was when i figured I forgot the #import part). If I can ignore that, then I may get my app to compi

Various syntax errors and ICA kit

2008-12-05 Thread jmunson
Namaste! And so the fun ensues... I'm working with the (slightly, deprecated in 10.5) older ICA (as the newer doesn't work). I've brought over the code base from the SampleScanner application in the Carbon->ImageCapture->Examples folder and applied it to mine own form. Before I attempt

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Chris Hanson
On Dec 5, 2008, at 5:24 PM, Jerry Krinock wrote: Thanks for the quick answer to Glenn and Bill. So now, knowing what was legal, I was able to compile the following using "as many dots as legally possible": NSString* name = ((Bird*)[foo.bar.birds anyObject]).name ; where bar is

Re: Override load/save for NSDictionary ?

2008-12-05 Thread Michael Ash
On Fri, Dec 5, 2008 at 12:36 PM, Gerriet M. Denkmann <[EMAIL PROTECTED]> wrote: > > On 5 Dec 2008, at 23:40, "Michael Ash" <[EMAIL PROTECTED]> wrote: >> 2) It doesn't correctly escape strings, producing all sorts of fun >> results if you encode the string "$null": >> >> NSDictionary *dict = [NSDi

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Luke Hiesterman
The compiler must be able to resolve the class for dot syntax to work. Try casting. Luke Sent from my iPhone. On Dec 5, 2008, at 4:32 PM, Jerry Krinock <[EMAIL PROTECTED]> wrote: I've been having some unexpected results trying to compile code using Objective-C's Dot Syntax. I realize that

Re: Getting a substring

2008-12-05 Thread Jerry Krinock
On 2008 Dec, 05, at 14:03, Ariel Rodriguez wrote: My question is simple, at least that is what i think :) I need to extract something like this: 01816560 from something like this: http://www..com/diario/2008/12/05/um/m-01816560.htm My first idea was to use - (NSArray *)componentsSeparat

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Jerry Krinock
On 2008 Dec, 05, at 16:44, glenn andreas wrote: On Dec 5, 2008, at 6:32 PM, Jerry Krinock wrote: I've been having some unexpected results trying to compile code using Objective-C's Dot Syntax. I realize that this may be due to an important question that I didn't find the answer to when I

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread Bill Bumgarner
On Dec 5, 2008, at 4:32 PM, Jerry Krinock wrote: I've been having some unexpected results trying to compile code using Objective-C's Dot Syntax. I realize that this may be due to an important question that I didn't find the answer to when I read about Objective-C 2.0 Properties is: Can you

Re: Distributed objects and core data

2008-12-05 Thread Steve Steinitz
Hi Jason, On 5/12/08, Jason Cox <[EMAIL PROTECTED]> wrote: Is it possible to use distributed objects with core data on a server app to get a multi client application working? I've gathered together a set of DO sample apps toward a similar idea. My plan is for the machines to share a core d

Re: ICA Documentation issue

2008-12-05 Thread jmunson
OK then...I'll proceed as "normal" and then work backward as necessary (this way I learn as well, despite the time problem). Peace, Love, and Light, /s/ Jon C. Munson II Quoting "A.M." <[EMAIL PROTECTED]>: On Dec 5, 2008, at 7:33 PM, [EMAIL PROTECTED] wrote: Well, now, that's just plain.

Re: What are the limitations of Dot Syntax?

2008-12-05 Thread glenn andreas
On Dec 5, 2008, at 6:32 PM, Jerry Krinock wrote: I've been having some unexpected results trying to compile code using Objective-C's Dot Syntax. I realize that this may be due to an important question that I didn't find the answer to when I read about Objective-C 2.0 Properties is: Can y

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread jmunson
Again, Hillegass' book, "Cocoa Programming for Mac OS X" is excellent. I've a smattering of experience in a number of languages and found his book an excellent introduction to the whole bit. Quoting Benjamin Dobson <[EMAIL PROTECTED]>: The OP has sent me the original message body off-list.

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread Darren Adkinson
To the OP - Books: Hillegass "Cocoa Programming for Mac..." 3rd ed. is great. "Cocoa Programming" by Anguish, Buck and Yacktman is quite old (2002) and only available used but contains some wonderfully lucid explanations of facets of Cocoa that are extant today. Kochan's Obj-C book is useful,

Re: ICA Documentation issue

2008-12-05 Thread jmunson
Well, now, that's just plain...well, we won't go there... The deprecated stuff won't work under 10.5, will it? Quoting "A.M." <[EMAIL PROTECTED]>: On Dec 5, 2008, at 3:59 PM, [EMAIL PROTECTED] wrote: Namaste! After having read through the ICA API documentation & looking at the sample ap

What are the limitations of Dot Syntax?

2008-12-05 Thread Jerry Krinock
I've been having some unexpected results trying to compile code using Objective-C's Dot Syntax. I realize that this may be due to an important question that I didn't find the answer to when I read about Objective-C 2.0 Properties is: Can you use the dot syntax for "regular" messages that

Re: core data, refreshObject, multiple threads

2008-12-05 Thread Steve Steinitz
Hi Chris, On 5/12/08, Chris Idou <[EMAIL PROTECTED]> wrote: I've got a main thread that handles a gui, and a worker thread with its own persistentStoreCoordinator and managedObjectContext. The gui notifies the worker thread of a change, passing it an objectID, and the worker thread gets the

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread Benjamin Dobson
The OP has sent me the original message body off-list. The rest of this message is what the original message was meant to say. ––– I've been programming almost exclusively in Java since 1998, and between 1985 through 1998 I was using C and C++. I just started le

Re: [SOLVED] Undocumented NSTextMovment for space in NSTextView's -insertCompletion:...

2008-12-05 Thread Keith Blount
D'oh! You are absolutely correct of course. Sorry about that. I'll amend my code so that it only accepts return or tab movement to accept completions when they appear automatically, as that will be more consistent. Many thanks for putting me right, much appreciated. All the best, Keith --- On

Re: Custom Window Resize Image

2008-12-05 Thread Ron Fleckner
Hi Mr. Gecko, I made a borderless window which I wanted to be resizable, so I put a copy of resize.png in my app's resources. During startup, I add it to the bottom right corner of my window, then by implementing mouse down and mouse dragged, implement my own window resizing mechanism. It'

ICA Documentation issue

2008-12-05 Thread jmunson
Namaste! After having read through the ICA API documentation & looking at the sample apps, I've noticed: 1. The online dox appear to be ahead of anything else (although I'm not certain). 2. The sample apps employ deprecated calls and are written w/o conforming to the dox. 3. The ICA A

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Påhl Melin
2008/12/5 Sherm Pendley <[EMAIL PROTECTED]>: > On Dec 5, 2008, at 3:16 PM, Påhl Melin wrote: > >> 2008/12/5 Sherm Pendley <[EMAIL PROTECTED]>: >>> >>> You'd have far, far less trouble programming for the Mac if you'd simply >>> learn how Cocoa works, instead of trying to reinvent .NET in Objective-

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread M Pulis
RealBasic is a great tool, cross platform also! Gary On Dec 5, 2008, at 3:58 PM, Ian Joyner wrote: On 06/12/2008, at 8:26 AM, [EMAIL PROTECTED] wrote: Basic (Beginner's All-Purpose Symbolic Code) was used on Apple IIs (although we wrote our own ALGOL-like language at the first Apple- based

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread Ian Joyner
On 06/12/2008, at 8:26 AM, [EMAIL PROTECTED] wrote: Basic (Beginner's All-Purpose Symbolic Code) was used on Apple IIs (although we wrote our own ALGOL-like language at the first Apple- based company I worked at). It is generally MIA (like body of message!) on Mac, except for third parties l

Re: Questions about [NSApplication run]

2008-12-05 Thread Michael Ash
On Fri, Dec 5, 2008 at 12:53 AM, Slava Pestov <[EMAIL PROTECTED]> wrote: > Hi everybody, > > For various reasons, my Cocoa app runs its own event loop instead of > using [NSApplication run]. What I do is roughly the following, in a > loop: > > e = [self nextEventMatchingMask: NSAnyEventMask >

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread Benjamin Dobson
On 5 Dec 2008, at 21:26:49, [EMAIL PROTECTED] wrote: Something wrong with your email? ___ 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-a

Child Window issues

2008-12-05 Thread Damien Cooke
Hi all, In my application I have a main window with a few controls and 4 child windows each contain an image. When I maximise one of the child windows to full screen (depending on which one) one or more of the other three stay in front. This is clearly a window order issue. Is there a w

Re: Undocumented NSTextMovment for space in NSTextView's -insertCompletion:...

2008-12-05 Thread Andrew Farmer
On 05 Dec 08, at 11:25, Keith Blount wrote: No NSSpaceTextMovement is defined, so it seems reasonable to expect this to be covered by "other text movement". However, it turns out that this is not the case. Testing shows that if you hit the space key, the "movement" parameter of -insertComple

Getting a substring

2008-12-05 Thread Ariel Rodriguez
My question is simple, at least that is what i think :) I need to extract something like this: 01816560 from something like this: http://www..com/diario/2008/12/05/um/m-01816560.htm My first idea was to use - (NSArray *)componentsSeparatedByString:(NSString *)separator with - first (to g

RE: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread bvernon
___ 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/Unsubscribe/Update your Subscription: http://lists.apple.com

Re: ICAHandler

2008-12-05 Thread jmunson
Not sure. What I'm referring to in my post is this: [code] // - ICAGetDeviceListCallback void ICAGetDeviceListCallback (ICAHeader* pbHeader) { ICAHandler * obj = (ICAHandler*)pbHeader->refcon; if (obj) {

Re: ICAHandler

2008-12-05 Thread Nick Zitzmann
On Dec 5, 2008, at 1:55 PM, [EMAIL PROTECTED] wrote: Namaste! Namasté. What is an ICAHandler? The compiler complains of it and I can't find it in the documentation anywhere. The ICA API Tester app lists it in the code it creates for ObjC Async. Are you talking about this?

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Sherm Pendley
On Dec 5, 2008, at 3:16 PM, Påhl Melin wrote: 2008/12/5 Sherm Pendley <[EMAIL PROTECTED]>: You'd have far, far less trouble programming for the Mac if you'd simply learn how Cocoa works, instead of trying to reinvent .NET in Objective-C. When in Rome, do as the Romans do. That's why I a

[MEET] Los Angeles CocoaHeads Thursday Dec. 11th 7:30pm

2008-12-05 Thread Rob Ross
Hey LA CocoaHeads. Next week we continue our study group meeting for the Aaron Hillegass book "Cocoa Programming for Mac OS X, 3rd Edition". http://search.barnesandnoble.com/Cocoa-Programming-for-Mac-OS-X/Aaron-Hillegass/e/9780321503619/?itm=1 We'll be covering chapters 16-19. Please jot d

ICA Documentation issue

2008-12-05 Thread jmunson
Namaste! After having read through the ICA API documentation & looking at the sample apps, I've noticed: 1. The online dox appear to be ahead of anything else. 2. The sample apps employ deprecated calls and are written w/o conforming to the dox. 3. The ICA API Test app also does not qu

ICAHandler

2008-12-05 Thread jmunson
Namaste! OK, here's my first question: What is an ICAHandler? The compiler complains of it and I can't find it in the documentation anywhere. The ICA API Tester app lists it in the code it creates for ObjC Async. Any thoughts? Peace, Love, and Light, /s/ Jon C. Munson II _

Distributed objects and core data

2008-12-05 Thread Jason Cox
Hey guys, Is it possible to use distributed objects with core data on a server app to get a multi client application working? There are only about 20 clients at any time. If not... what other solutions should i look into? I have an XServ to work with if that helps. Thanks, Jason ___

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Påhl Melin
2008/12/5 Sherm Pendley <[EMAIL PROTECTED]>: > On Dec 5, 2008, at 7:52 AM, Påhl Melin wrote: > >> ...to have the TimerFunction() function be called twice per second >> after 5 seconds (time in millisecond). Nothing else – you don't need >> to idle your thread at all. Dotnet handles everything by it

Re: Fix Populated NSMenu Of Files, Folders And Their Respected Images

2008-12-05 Thread Ashley Clark
On Dec 5, 2008, at 9:44 AM, Chunk 1978 wrote: hi. Hi. i've been on this task for almost a week, and i still can't get it right. basically, i would like to have an NSMenu populated with all the files and folders of a specific directory. for this example i'll use ~/Documents. the code below

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Påhl Melin
2008/12/5 Joseph Kelly <[EMAIL PROTECTED]>: > From everything you've said, Påhl, you can very easily implement it using a > combination of Cocoa and Core Foundation. I posted a response yesterday > which you might want to look at. Thanks Joseph. I looked at your source more closely and I think I g

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Påhl Melin
2008/12/5 Jean-Daniel Dupas <[EMAIL PROTECTED]>: > > Le 5 déc. 08 à 16:00, Påhl Melin a écrit : > >> 2008/12/5 Benjamin Stiglitz <[EMAIL PROTECTED]>: I need to use timers in a low level library where I need to specify asynchronous callbacks to a timer function. I will not have any ru

Re: MTOM?

2008-12-05 Thread David LeBer
On 5-Dec-08, at 12:16 PM, David LeBer wrote: Hello all, I have a client asking if I can accept binary data via MTOM in their xml responses. To clarify: I wrote a Cocoa app for a client which talks to their webservice. The client now wants to be able to stream large chunks of binary data

Re: How does MainMenu.xib get loaded in a Cocoa application?

2008-12-05 Thread Andy Lee
On Dec 5, 2008, at 2:08 PM, Sherm Pendley wrote: On Dec 4, 2008, at 10:03 PM, Debajit Adhikary wrote: I'm new to Cocoa and am trying to understand File Owner's and Nibs. When I create a simple Cocoa application and build and run it, a window -- specified in MainMenu.xib -- opens. How exactly

ICA stuff

2008-12-05 Thread jmunson
Namaste! Is this the proper list to ask ICA-related questions? If so, I have a few...:) Thanks! Peace, Love, and Light, /s/ Jon C. Munson II ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: [NSTextView complete:] popup menu delay before hiding

2008-12-05 Thread Ashley Clark
On Dec 5, 2008, at 9:28 AM, Jesse Grosjean wrote: When I hit F5 to do complete: in text edit the menu of completions shows indefinitely, until I select an item or type a new letter. Same thing happens when I do F5 in Safari's search field. But if I do F5 in Xcodes's toolbar search field the p

Undocumented NSTextMovment for space in NSTextView's -insertCompletion:...

2008-12-05 Thread Keith Blount
Hi, This is an observation more than a question, but it may be that someone can point me in the direction of a more orthodox solution than my current one. My application has a "suggest completions as you you type" feature. If this is on, then NSTextView's -complete: action gets called in -didCh

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread Sherm Pendley
OK, here ya go, a basic pointer: int *basic; :-) Seriously though, once you install Xcode and start it up for the first time, it presents a window with a list of links at the top. Try following the first "Getting Started" link. sherm-- ___

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread Dave DeLong
Tooting my own horn here... Our CocoaHeads club maintains an excellent list of Cocoa learning resources (books, articles, code, etc): http://cocoaheads.byu.edu Dave On Dec 5, 2008, at 12:14 PM, [EMAIL PROTECTED] wrote: Start with HILLEGASS' book: Cocoa Programming for Mac OS X. EXCELLE

Re: How does MainMenu.xib get loaded in a Cocoa application?

2008-12-05 Thread Nick Zitzmann
On Dec 4, 2008, at 8:03 PM, Debajit Adhikary wrote: I'm new to Cocoa and am trying to understand File Owner's and Nibs. When I create a simple Cocoa application and build and run it, a window -- specified in MainMenu.xib -- opens. How exactly does this window open? It uses the value of th

Re: How does MainMenu.xib get loaded in a Cocoa application?

2008-12-05 Thread jmunson
There's a setting (I can't relocate it) that declares a "Main" NIB, etc. 'Tis a property of one of the main files (like the project or target). Look around, you should be able to find it with a bit of effort. Quoting Debajit Adhikary <[EMAIL PROTECTED]>: I'm new to Cocoa and am trying t

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread jmunson
Start with HILLEGASS' book: Cocoa Programming for Mac OS X. EXCELLENT! Quoting [EMAIL PROTECTED]: ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators a

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread Matt Long
Try this: http://www.matthew-long.com/2007/11/09/xcode-30-tutorial/ Are you new to programming as well or just new to Cocoa/Objective-C? -Matt On Dec 4, 2008, at 4:25 PM, [EMAIL PROTECTED] wrote: ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple

Re: How does MainMenu.xib get loaded in a Cocoa application?

2008-12-05 Thread Sherm Pendley
On Dec 4, 2008, at 10:03 PM, Debajit Adhikary wrote: I'm new to Cocoa and am trying to understand File Owner's and Nibs. When I create a simple Cocoa application and build and run it, a window -- specified in MainMenu.xib -- opens. How exactly does this window open? Is there any code for th

Re: Cant Load an Image into a CALayer

2008-12-05 Thread Gustavo Pizano
Aha ok.. Thanks I think I did it now. Gus On 3.12.2008, at 16:08, Benjamin Stiglitz wrote: NSImage * image = [[NSImage alloc] initByReferencingFile:@"Destroyer.png"]; Your conditional statement is failing because the image can't be located; you need to pass the path to your image relat

Re: New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread Shawn Erickson
On Thu, Dec 4, 2008 at 3:25 PM, <[EMAIL PROTECTED]> wrote: > Helpful tip #1... actually ask a question when you email this list. =P -Shawn ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

MTOM?

2008-12-05 Thread David LeBer
Hello all, I have a client asking if I can accept binary data via MTOM in their xml responses. It looks like MTOM is part of the SOAP spec: I have no idea whether this is possible, any suggestions or ideas where to start? ;david -- David LeBer Codefe

Not getting KeyDown events (and other peculiar things)

2008-12-05 Thread Shayne Wissler
I'm writing something like a game engine using NSOpenGLView and am getting some odd behaviors (I am new to Cocoa): 1. Clicking on the title bar of my application does not activate my application, but clicking inside my window does. I can move the window around on the screen, but unlike all the oth

Fix Populated NSMenu Of Files, Folders And Their Respected Images

2008-12-05 Thread Chunk 1978
hi. i've been on this task for almost a week, and i still can't get it right. basically, i would like to have an NSMenu populated with all the files and folders of a specific directory. for this example i'll use ~/Documents. the code below only partially works. it will list files and folders f

secure dns resolution

2008-12-05 Thread Nick Brandaleone
Hello, I am working on DNS protection feature for a Mac security program. I am looking for some API that I can used to retrieve IP addresses of a hostname from a dedicated DNS Server instead of the one set by system configuration. The purpose of this is to ensure for our protected sites, we a

Questions about [NSApplication run]

2008-12-05 Thread Slava Pestov
Hi everybody, For various reasons, my Cocoa app runs its own event loop instead of using [NSApplication run]. What I do is roughly the following, in a loop: e = [self nextEventMatchingMask: NSAnyEventMask untilDate: [NSDate distantFuture]

How does MainMenu.xib get loaded in a Cocoa application?

2008-12-05 Thread Debajit Adhikary
I'm new to Cocoa and am trying to understand File Owner's and Nibs. When I create a simple Cocoa application and build and run it, a window -- specified in MainMenu.xib -- opens. How exactly does this window open? Is there any code for this anywhere? I wasn't able to find any. (I tried setting a b

Problem adding albums to iPhoto using Scripting Bridge

2008-12-05 Thread Dalmazio Brisinda
Hi all, I've been trying to add an empty album to iPhoto using Scripting Bridge but I just can't seem to get it to work. Here's what I have: iPhoto = [SBApplication applicationWithBundleIdentifier:@"com.apple.iPhoto"]; NSString *albumName = @"My Test Album"; NSDictionary *props

New to Cocoa and Objective C, and I need some basic pointers

2008-12-05 Thread bvernon
___ 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/Unsubscribe/Update your Subscription: http://lists.apple.com

Re: NSSocketPort == BSD Socket

2008-12-05 Thread Douglas Davidson
On Dec 5, 2008, at 10:21 AM, Kirk Kerekes wrote: My core point (which seems to have gotten lost in this thread) is that the Apple docs _used_ to assert that NSSocketPort was useless for anything except DO. 1. This _may_ not ever have been true. Just from looking at the API, it is patent

Re: How to design / structure sheets

2008-12-05 Thread jmunson
My, admittedly beginners's (at Cocoa, but not dev in general) opinion, is for #2. Anytime you can separate out something like that is a good thing - you can then reuse that in some other app without having to abstract it from your primary app. Quoting Mike Chambers <[EMAIL PROTECTED]>:

Re: NSSocketPort == BSD Socket

2008-12-05 Thread Kirk Kerekes
Well it looks like you ought to be able to use NSPortMessage's sendBeforeDate: method, if you are seeking a pure NSPort-and-friends technique, but I've never tried that. It actually looks like it might be handy, if it works. It would handle some of the overhead tasks that otherwise one must

How to design / structure sheets

2008-12-05 Thread Mike Chambers
I am creating a custom sheet for my application which allows a user to add an item to iCal. However, it is not clear to me the best way to structure my code. Im following the info at: http://developer.apple.com/documentation/Cocoa/Conceptual/Sheets/Tasks/UsingCustomSheets.html#//apple_ref/doc/uid

NSViews and cursorRects and scrolling, oh my!

2008-12-05 Thread Randall Meadows
Before I get too far down this road, I want to verify that my plan is going to work. I'm implementing an NSTableView whose cells contain a variety of custom views. Depending on the cell, the view may require a custom cursor (for example, it may contain a link to a web page). My plan is t

Re: Shouldn't NSOpenPanel media browser aliases be resolved before type check?

2008-12-05 Thread Nathan Vander Wilt
On Dec 2, 2008, at 8:06 AM, Corbin Dunn wrote: Le Dec 1, 2008 à 5:32 PM, Nathan Vander Wilt a écrit : My Leopard-only application needs to be able to import any image supported by CGImageSource, so I create an NSOpenPanel and pass the array obtained from CGImageSourceCopyTypeIdentifiers() to

Re: Override load/save for NSDictionary ?

2008-12-05 Thread Gerriet M. Denkmann
On 5 Dec 2008, at 23:40, "Michael Ash" <[EMAIL PROTECTED]> wrote: On Fri, Dec 5, 2008 at 6:58 AM, Graham Cox <[EMAIL PROTECTED]> wrote: I'd love to know what you think is wrong with the file format that keyed archiving creates that your own would improve on? I can only speak for myse

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Jean-Daniel Dupas
Le 5 déc. 08 à 16:00, Påhl Melin a écrit : 2008/12/5 Benjamin Stiglitz <[EMAIL PROTECTED]>: I need to use timers in a low level library where I need to specify asynchronous callbacks to a timer function. I will not have any run loop so I cannot use NSTimer. Are there any low level timer API to

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Sherm Pendley
On Dec 5, 2008, at 7:52 AM, Påhl Melin wrote: ...to have the TimerFunction() function be called twice per second after 5 seconds (time in millisecond). Nothing else – you don't need to idle your thread at all. Dotnet handles everything by itself. Setting up multiple timers is just repeating the

Re: Bindings for Custom Cell in NSOutlineView ( using NSTreeController )

2008-12-05 Thread Michael Ash
On Fri, Dec 5, 2008 at 7:55 AM, rajesh <[EMAIL PROTECTED]> wrote: > Hi All, > > I am working with NSOutlineView and I would like 'it' to work in hand with > NSTreeController. > > There are few columns which contain Images+Text , Text alone or Images > alone. > > I have just basic idea of how bindin

Re: Override load/save for NSDictionary ?

2008-12-05 Thread Michael Ash
On Fri, Dec 5, 2008 at 6:58 AM, Graham Cox <[EMAIL PROTECTED]> wrote: > I'd love to know what you think is wrong with the file format that keyed > archiving creates that your own would improve on? I can only speak for myself, of course, but there are at least two major problems with it: 1) It

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Michael Ash
On Fri, Dec 5, 2008 at 7:52 AM, Påhl Melin <[EMAIL PROTECTED]> wrote: > The reason I asked for a simple Timer API without using a run loop is > because I'm converting my framework from Dotnet where such a Timer API > exists and makes it dead simple to setup multiple timers without > blocking or set

Re: [NSTextView complete:] popup menu delay before hiding

2008-12-05 Thread Jesse Grosjean
> When I hit F5 to do complete: in text edit the menu of completions > shows indefinitely, until I select an item or type a new letter. Same > thing happens when I do F5 in Safari's search field. But if I do F5 in > Xcodes's toolbar search field the popup of choices only shows for > about a second,

Re: Override load/save for NSDictionary ?

2008-12-05 Thread Charles Steinman
- Original Message > From: Mark Thomas <[EMAIL PROTECTED]> > To: "cocoa-dev@lists.apple.com" > Sent: Friday, December 5, 2008 1:08:12 AM > Subject: Override load/save for NSDictionary ? > > Hi All, > Does anybody have any thoughts on how you could subclass or hook into > NSDictionary/

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Påhl Melin
2008/12/5 Benjamin Stiglitz <[EMAIL PROTECTED]>: >> I need to use timers in a low level library where I need to specify >> asynchronous callbacks to a timer function. I will not have any run >> loop so I cannot use NSTimer. Are there any low level timer API to use >> instead? I haven't found anythi

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Jean-Daniel Dupas
Le 5 déc. 08 à 13:52, Påhl Melin a écrit : 2008/12/4 Julien Jalon <[EMAIL PROTECTED]>: The question itself does not make a lot of sense for me. A timer API is tightly bound to the underlying framework that is idling your thread. If the idling API is CFRunLoopRun(), you'd use CFTimers, if you

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Påhl Melin
2008/12/5 Jean-Daniel Dupas <[EMAIL PROTECTED]>: > The dotnet timer is useless for a lots of cases for one reason: "The method > does not execute on the thread that created the timer" > It uses a theadpool setup by the framework in background. In my case, I have no need at all, to run the callback

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Påhl Melin
2008/12/4 Jean-Daniel Dupas <[EMAIL PROTECTED]>: > My understanding is that ALL threads have a runloop (from the CFRunLoop > doc): > > «There is exactly one run loop per thread. You neither create nor destroy a > thread's run loop. Core Foundation automatically creates it for you as > needed. » > >

Print toolbar icon

2008-12-05 Thread Andre Masse
Hi, I need the print icon from the NSToolbarItem to be used in other parts of my application. I've looked in NSImage.h and it's not there. Any other places I should look for it? Thanks, Andre Masse ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Påhl Melin
2008/12/4 David Springer <[EMAIL PROTECTED]>: > I don't mean to sound patronizing, but unless I have missed some fundamental > premise, didn't you just re-invent DO? Maybe the right way to port this > framework is to make your API a thin wrapper on top of Obj-C messages, and > your set up a wrappe

Bindings for Custom Cell in NSOutlineView ( using NSTreeController )

2008-12-05 Thread rajesh
Hi All, I am working with NSOutlineView and I would like 'it' to work in hand with NSTreeController. There are few columns which contain Images+Text , Text alone or Images alone. I have just basic idea of how bindings work and Implementing them ( binding the columns with text and images

Re: Asynchronous timers (without a run loop)

2008-12-05 Thread Påhl Melin
2008/12/4 Julien Jalon <[EMAIL PROTECTED]>: > The question itself does not make a lot of sense for me. A timer API is > tightly bound to the underlying framework that is idling your thread. > If the idling API is CFRunLoopRun(), you'd use CFTimers, if your idling API > is select() or kevent(), you'

Re: Override load/save for NSDictionary ?

2008-12-05 Thread Graham Cox
On 5 Dec 2008, at 8:08 pm, Mark Thomas wrote: Hi All, Does anybody have any thoughts on how you could subclass or hook into NSDictionary/NSMutableDictionary classes, so that I could provide my own file format instead of the default file format which are used today (i.e. Text or binary plist

Re: Override load/save for NSDictionary ?

2008-12-05 Thread Mike Abdullah
Rather than subclassing, you're much better off using a category along these lines: @interface NSDictionary (CustomDataFormat) - (id)initWithCustomData:(NSData *)data; - (id)initWithCustomDataContentsOfURL:(NSURL *)URL; - (NSData *)customData; - (BOOL)writeToURL:(NSURL *)URL atomically:(BOOL)a

  1   2   >