Re: How to implement float min(float x, ...) ?

2008-11-17 Thread Roland King
it will work for simple types like float, but you need to deal with figuring out you're at the end of the list. ie you can call va_arg( xxx, float) and get a float, but you don't know how many of them you have so you don't know where to stop. You could use a defined nanf() value to show the

Grow Bug ?

2008-11-17 Thread Carlos Eduardo Mello
Hi, Cocoa newbie here. I've been doing Carbon developing for a while, but just started to learn Cocoa. So, forgive me if my questions seem too dum. I was working on Hillgass's Custom Views tutorial (chapter 17, pg. 233). It involves drawing into a custom view which grows with the window.

Open second Window

2008-11-17 Thread Barry Fawthrop
Greetings All I'm new to Xcode and Apple development I have started my first application and on the main window I have a button, which when pressed I would like it to open a second window. Could someone please point me in the right direction Thank You Barry __

Re: NSArrayController bound to an array of strings

2008-11-17 Thread Scott Anguish
there are workarounds to do this, but the basic answer is that it isn't intended to be used with a simple array of strings. You can make a class that holds the simple string object, or perhaps use an NSDictionary with a specific key. On 16-Nov-08, at 12:45 PM, Meik Schuetz wrote: Dear all

Re: Set user agent for NSURL

2008-11-17 Thread Scott Anguish
On 17-Nov-08, at 12:50 AM, Mr. Gecko wrote: Hello I am working on a website crawler and I am needing to make a user agent string so people who monitoring who visits can know that my crawler visited. It sounds like you're getting data just using NSURL. You can get much more control (incl

Re: Grow Bug ?

2008-11-17 Thread Jean-Daniel Dupas
Le 16 nov. 08 à 23:32, Carlos Eduardo Mello a écrit : Hi, Cocoa newbie here. I've been doing Carbon developing for a while, but just started to learn Cocoa. So, forgive me if my questions seem too dum. I was working on Hillgass's Custom Views tutorial (chapter 17, pg. 233). It involves

Re: Two arrays sharing the same adress space.

2008-11-17 Thread Stephen J. Butler
On Mon, Nov 17, 2008 at 12:02 AM, Sandro Noel <[EMAIL PROTECTED]> wrote: > NSFileManager *fileManager; >fileManager = [NSFileManager defaultManager]; >if ( [fileManager fileExistsAtPath:[[self > applicationSupportFolder] stringByAppendingPathComponent:@"Bonjour > Mou

Re: Writing a more usable AppleEvent logger

2008-11-17 Thread Jean-Daniel Dupas
Le 17 nov. 08 à 08:06, Ken Tozier a écrit : Hi I've been working with AppleEvents and discovering their internals by setting the following in the terminal > export AEDebugSends=1; export AEDebugReceives=1 What I'd like to be able to do is observe apple events exactly like this tool but

Re: newbie NSMutable dictionary subclass question

2008-11-17 Thread Mike Abdullah
As a self-professed newbie, you almost certainly shouldn't be subclassing NSMutableDictionary. Can I ask your reasons for doing so? On 17 Nov 2008, at 00:25, Bob Sabiston wrote: Can the value part of a key-value pair in an NSMutableDictionary be a literal NSString, like @"name"? It would s

Re: Set user agent for NSURL

2008-11-17 Thread Nicko van Someren
On 17 Nov 2008, at 09:10, Scott Anguish wrote: On 17-Nov-08, at 12:50 AM, Mr. Gecko wrote: Hello I am working on a website crawler and I am needing to make a user agent string so people who monitoring who visits can know that my crawler visited. It sounds like you're getting data just us

Re: How to implement float min(float x, ...) ?

2008-11-17 Thread Peter N Lewis
I apologize, this is plain old C, not Cocoa-specific question, but the fastest way to get the answer. I want to create a function that finds the minimum out of a variable-length list of simple float arguments. In other words, I want this function: float min(float x, ...); Can anyone suggest the

Re: newbie NSMutable dictionary subclass question

2008-11-17 Thread Jean-Daniel Dupas
Can the value part of a key-value pair in an NSMutableDictionary be a literal NSString, like @"name"? It would seem so, because this works or at least doesn't crash: NSMutableDictionary *bobo; bobo = [[NSMutableDictionary alloc] init]; [bobo setValue:@"root" forKey:@

kCFErrorDomainCFNetwork error -1009

2008-11-17 Thread pan xuan
Hi, I have a piece of code to perform accessing a server with a test URL. The server I try to access is actually an wifi access point. It is supposed to respond with a login page before the user can be authenticated. Sometimes, the replied data from the server is NULL and the error printed o

NSArrayController and table column bindings retain/dealloc woes

2008-11-17 Thread Keith Blount
Hi, I know there have been historic problems with NSArrayController getting retained too many times when bound to File's Owner and so forth, causing dealloc problems, but my problem is slightly different... I've been through the archives and searched the docs etc, but have yet to find a solutio

Re: Two arrays sharing the same adress space.

2008-11-17 Thread Andy Lee
On Nov 17, 2008, at 1:03 AM, Stephen J. Butler wrote: On Sun, Nov 16, 2008 at 11:52 PM, Sandro Noel <[EMAIL PROTECTED]> wrote: as it turns out. with the bug fixed the mounts array is left null because the file does not exist yet. so further in the program is i try to add to the array, nothing

Re: Set user agent for NSURL

2008-11-17 Thread John Pannell
Hello I am working on a website crawler and I am needing to make a user agent string so people who monitoring who visits can know that my crawler visited. It sounds like you're getting data just using NSURL. You can get much more control (including specifying the agent) using NSURLConne

Re: Cocoa-dev Digest, Vol 5, Issue 1956

2008-11-17 Thread Matthew Whillock
Have a look at: http://en.wikipedia.org/wiki/Varargs I know it's possible on linux/gcc so surely it works in osx. Cheers, Matt -- Message: 2 Date: Mon, 17 Nov 2008 09:38:39 +0200 From: "Oleg Krupnov" <[EMAIL PROTECTED]> Subject: How to implement float min(float x

Opening Ports in Leopard

2008-11-17 Thread Gerriet M. Denkmann
I am trying to move a Cocoa app from Tiger to Leopard. This program wants to send and receive on port 123 (Network Time Protocoll) but it never gets no answers on Leopard. On TIger there was a firewall, where I could open port 123 in System Preferences. How can I do this in Leopard? Kind r

Re: Two arrays sharing the same adress space.

2008-11-17 Thread Andy Lee
On Nov 17, 2008, at 1:18 AM, Kyle Sluder wrote: On Mon, Nov 17, 2008 at 1:03 AM, Stephen J. Butler <[EMAIL PROTECTED]> wrote: 2) always use the value returned from an init* method. This isn't strictly necessary. If you need a singleton object that lives for the duration of your app, for examp

Re: How to implement float min(float x, ...) ?

2008-11-17 Thread Chris Holloway
Hi, It's not possible in C89, but in C99 you can do this (apologies if the formatting is messed up): #include #include #define ARRAY_NELEMS(A)(sizeof(A) / sizeof((A)[0])) #define FA_MIN(...) fa_min_func((float []){ __VA_ARGS__ }, ARRAY_NELEMS(((float []){ __VA_ARGS__ })

RE: Core data save error with multiple persistent stores

2008-11-17 Thread Arthur C .
> All right, but that does not cover the case of an object being added > using > the 'add' button linked to the array controller (which btw is > bound to the > correct managedObjectContext). Then you end up directly > in > awakeFromInsert, which at least should be OK if it is executed > onl

Re: Two arrays sharing the same adress space.

2008-11-17 Thread Scott Ribe
> Mounts is being used, but just not in the init function. You have declared it as a local variable. It *cannot* be used elsewhere. I suspect that you have also declared it as a member (attribute, property, whatever) and expect that you're assigning to that, but the local variable will shadow tha

Re: Two arrays sharing the same adress space.

2008-11-17 Thread Sandro Noel
Thank you all, for taking the time to explain the workings this was very instructive and very apreciated!!! Thank you Sandro Noel. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Two arrays sharing the same adress space.

2008-11-17 Thread Andy Lee
On Nov 17, 2008, at 10:01 AM, Scott Ribe wrote: Mounts is being used, but just not in the init function. You have declared it as a local variable. It *cannot* be used elsewhere. I suspect that you have also declared it as a member (attribute, property, whatever) and expect that you're ass

Can you @synthesize simple arrays?

2008-11-17 Thread Greg Robertson
I have a couple of simple ivar arrays: NSString *myString[4]; NSInteger myInteger[4]; How can I @synthesize these so I can access them with simple dot notation: ie. self.myInteger[2] = 100; I have tried several ways to set them up in the @interface but I keep getting compile errors. Could

Re: Can you @synthesize simple arrays?

2008-11-17 Thread Clark Cox
On Mon, Nov 17, 2008 at 7:14 AM, Greg Robertson <[EMAIL PROTECTED]> wrote: > I have a couple of simple ivar arrays: > > NSString *myString[4]; > NSInteger myInteger[4]; > > How can I @synthesize these so I can access them with simple dot notation: I'm not sure that you can. However, this shoul

NSButtonCell slowdown in NSTableView

2008-11-17 Thread Robert Mullen
I have seen one other post asking this question so I will throw it out here and see if anyone has experienced: I have an NSTableView with 3 NSButtonCells on it. Two are checkbox style one is bevel style (aping the iTunes arrow link.) The bevel style cell works swimmingly and gives me no gri

Re: Opening Ports in Leopard

2008-11-17 Thread Derek Chesterfield
There shouldn't be anything to open. The Leopard application firewall should automatically allow packets that are responding to your query. On 17 Nov 2008, at 12:40, Gerriet M. Denkmann wrote: I am trying to move a Cocoa app from Tiger to Leopard. This program wants to send and receive on po

Re: Fetch value from field editor during editing?

2008-11-17 Thread Russ
Any ideas on why the field editor doesn't report the value as it is being edited? A further problem I've encountered: controlTextDidChange is called very infrequently --- only after committing the edit, after changing focus. I'm looking for notifications after each character --- that's my def

Re: Fetch value from field editor during editing?

2008-11-17 Thread I. Savant
On Mon, Nov 17, 2008 at 10:41 AM, Russ <[EMAIL PROTECTED]> wrote: > > Any ideas on why the field editor doesn't report the value as it is being > edited? NSTextField is a subclass of NSControl. NSControl provides the -isContinuous / -setContinuous: methods. Try reading up on those ... -- I.S.

RE: Core data save error with multiple persistent stores

2008-11-17 Thread Arthur C .
>>It might also be worth putting a test in awakeFromInsert -- first >>check if the object has been assigned to a persistent store, and only >>assign if it has not.>Done that; it doesn't get called more than once, and it >>doesn't help to do >the assignObject: toPersistentStore: outside the >

Re: Remove '\n' char from NSString

2008-11-17 Thread Douglas Davidson
On Nov 15, 2008, at 5:41 PM, Steven Riggs wrote: Something like [string stringByReplacingOccurrencesOfString:@"\n" withString:@" "] should do the trick Yes, or the mutable equivalent, provided that your line terminators are specified to be precisely '\n'. If you wish to deal with line t

Trouble with openFileWithoutUI

2008-11-17 Thread jhjames3
I am trying to open a defined document type programmatically. Document type is defined in info.plist and opens with UI just fine. I can not get openFileWithoutUI to work. I have read documentation and I find no samples of code. There are several places I could be making an error but I can not s

Re: NSOutlineView setDoubleAction: working on 10.5, but not on 10.4.11

2008-11-17 Thread Corbin Dunn
Le Nov 15, 2008 à 5:54 AM, Jerry Krinock a écrit : On 2008 Nov, 15, at 2:54, Nick Rogers wrote: when double clicking on an item the action method is not being called in 10.4.11. Its working fine on Leopard. The behavior was indeed changed in Leopard: http://developer.apple.com/releaseno

RE: Trouble with openFileWithoutUI

2008-11-17 Thread Etienne Guérard
Try the following instead: 3: I call from another controller with the following: NSApplication* app = [NSApplication sharedApplication]; [self application:app /* or NSApp */ openFileWithoutUI: totalFile]; EG -Original Message- 3: I call from another controller with the following: NSApplic

Re: NSButtonCell slowdown in NSTableView

2008-11-17 Thread Corbin Dunn
Le Nov 17, 2008 à 7:33 AM, Robert Mullen a écrit : I have seen one other post asking this question so I will throw it out here and see if anyone has experienced: I have an NSTableView with 3 NSButtonCells on it. Two are checkbox style one is bevel style (aping the iTunes arrow link.) The b

Re: Trouble with openFileWithoutUI

2008-11-17 Thread Fritz Anderson
On 17 Nov 2008, at 10:44 AM, [EMAIL PROTECTED] wrote: I am trying to open a defined document type programmatically. Document type is defined in info.plist and opens with UI just fine. I can not get openFileWithoutUI to work. I have read documentation and I find no samples of code. There are

Re: Trouble with openFileWithoutUI

2008-11-17 Thread Keary Suska
On Nov 17, 2008, at 9:44 AM, [EMAIL PROTECTED] wrote: I am trying to open a defined document type programmatically. Document type is defined in info.plist and opens with UI just fine. I can not get openFileWithoutUI to work. I have read documentation and I find no samples of code. There are

Re: Can you @synthesize simple arrays?

2008-11-17 Thread Michael Ash
On Mon, Nov 17, 2008 at 10:20 AM, Clark Cox <[EMAIL PROTECTED]> wrote: > On Mon, Nov 17, 2008 at 7:14 AM, Greg Robertson <[EMAIL PROTECTED]> wrote: >> I have a couple of simple ivar arrays: >> >> NSString *myString[4]; >> NSInteger myInteger[4]; >> >> How can I @synthesize these so I can access

Re: NSButtonCell slowdown in NSTableView

2008-11-17 Thread Robert Mullen
Yup, that did it. Thanks much. On Nov 17, 2008, at 9:07 AM, Corbin Dunn wrote: Le Nov 17, 2008 à 7:33 AM, Robert Mullen a écrit : I have seen one other post asking this question so I will throw it out here and see if anyone has experienced: I have an NSTableView with 3 NSButtonCells on it

Re: Open second Window

2008-11-17 Thread Fritz Anderson
On 16 Nov 2008, at 7:42 PM, Barry Fawthrop wrote: I'm new to Xcode and Apple development I have started my first application and on the main window I have a button, which when pressed I would like it to open a second window. Could someone please point me in the right direction Welcome. Be sur

CoreImage filters question

2008-11-17 Thread Jean-Nicolas Jolivet
I am working with a couple of CoreImage filters and I noticed most of them have a "Minimum" and "Maximum" value (as well as a default), but they also have a "Slider Minimum" and "Slider Maximum" value... Which one should I assume is the real maximum?? For example, the "inputBrightness" para

Re: How to implement float min(float x, ...) ?

2008-11-17 Thread Kirk Kerekes
How to implement float min(float x, ...) ? I suggest you not use var_arg functions if you can avoid them. So I propose a different path. As a jumping-off point, here is a category method on NSData that assumes that "self" (the NSData instance) is an array of floats: (The -floats category

Re: Set user agent for NSURL

2008-11-17 Thread Mr. Gecko
Thanks that works. On Nov 17, 2008, at 6:15 AM, John Pannell wrote: Hello I am working on a website crawler and I am needing to make a user agent string so people who monitoring who visits can know that my crawler visited. It sounds like you're getting data just using NSURL. You can ge

Re: How to implement float min(float x, ...) ?

2008-11-17 Thread Peter Ammon
On Nov 16, 2008, at 11:38 PM, Oleg Krupnov wrote: I apologize, this is plain old C, not Cocoa-specific question, but the fastest way to get the answer. I want to create a function that finds the minimum out of a variable-length list of simple float arguments. In other words, I want this functi

Displaying NSArray in NSTableView

2008-11-17 Thread 양승준
Hi, I'm trying to display data in an array to a table view. The table view shows three rows, but no data in them. What did I do wrong? In IB, I connected the table view to the delegate in File's owner. Many thanks! Here is MyDocument.h: #import Cocoa.h> @interface MyDocument : NSDocument { IBOu

Question about interface builder

2008-11-17 Thread macdev
Hi, I am migrating from PC/.NET development and I am very new to Xcode/IB/Cocoa. I was wondering if I could generate GUIs using code without the need to use the IB. The main reason for this is that we have an application built with MS.NET which generates different GUIs based on customer confi

Interface Builder & Wiring Objects

2008-11-17 Thread Greg Deward
Good afternoon! I am trying to learn Cocoa and am having difficulty remembering which direction to CTRL-drag controls to wire up the controls in Interface Builder. For example, dragging from my button to my App Controller (NSObject) or vice versa. Does anyone have a way to explain this th

Re: Interface Builder & Wiring Objects

2008-11-17 Thread Luke the Hiesterman
With new versions of IB, it's not even necessary to remember. Simply right-click on an object and it will bring up a HUD with the list of outlets or sent messages or whatever you need. Alternatively, you can view this list in the outlets tab of the inspector window. Even if the outlet you n

Re: Question about interface builder

2008-11-17 Thread Alex Kac
Just create a NIB with a main menu that's mostly blank except for the menu, and programmatically do the rest of the GUI. You can create all windows, add menus, etc.. all programatically. On Nov 17, 2008, at 6:49 AM, macdev wrote: I am migrating from PC/.NET development and I am very new to X

Re: Interface Builder & Wiring Objects

2008-11-17 Thread Randall Meadows
On Nov 17, 2008, at 11:09 AM, Greg Deward wrote: Good afternoon! I am trying to learn Cocoa and am having difficulty remembering which direction to CTRL-drag controls to wire up the controls in Interface Builder. For example, dragging from my button to my App Controller (NSObject) or vic

Re: Displaying NSArray in NSTableView

2008-11-17 Thread Quincey Morris
On Nov 17, 2008, at 04:03, 양승준 wrote: Hi, I'm trying to display data in an array to a table view. The table view shows three rows, but no data in them. What did I do wrong? In IB, I connected the table view to the delegate in File's owner. Many thanks! Here is MyDocument.h: #import Cocoa.h

RE: Interface Builder & Wiring Objects

2008-11-17 Thread Etienne Guérard
As you pointed out, you have two kinds of relationship in IB: outlets and actions. >From a single object, you designate either an outlet object or a target object. For the target case, you have to specify the associated action selector. Usually though, you don't draw both kinds of connection from

Re: Interface Builder & Wiring Objects

2008-11-17 Thread Greg Deward
Luke / Randall, Thanks for replying. I did not want to embarrass Mr. Hillegass with my ignorance, but his book IS the one I am trying to follow. I am currently working on his "To Do List" example in Chapter 6 (page 110). In my example, I have the following items in my App Controller class

Re: Interface Builder & Wiring Objects

2008-11-17 Thread Clark Cox
On Mon, Nov 17, 2008 at 11:36 AM, Greg Deward <[EMAIL PROTECTED]> wrote: > Luke / Randall, > > Thanks for replying. I did not want to embarrass Mr. Hillegass with my > ignorance, but his book IS the one I am trying to follow. I am currently > working on his "To Do List" example in Chapter 6 (page

Re: Trouble with openFileWithoutUI

2008-11-17 Thread jhjames3
Documentation for application:openFileWithoutUI: "Sent directly by sender to the delegate to request that the file filename be opened as a linked file. The method should open the file without bringing up its application’s user interface—that is, work with the file is under programmatic control o

Re: Opening Ports in Leopard

2008-11-17 Thread Andrew Farmer
On 17 Nov 08, at 04:40, Gerriet M. Denkmann wrote: I am trying to move a Cocoa app from Tiger to Leopard. This program wants to send and receive on port 123 (Network Time Protocoll) but it never gets no answers on Leopard. Do you have network time synchronization turned on already (in the D

NSDateFormatter strangeness

2008-11-17 Thread Greg Hoover
I've worked with formatters for a while now, but this morning something odd happened. The following code translates the date string "17 Nov 2008" to "2007-12-23 00:00:00 -0800". NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat: @"d

Re: Interface Builder & Wiring Objects

2008-11-17 Thread Andy Lee
On Nov 17, 2008, at 2:36 PM, Greg Deward wrote: In my example, I have the following items in my App Controller class: Text Field (along with an IBOutlet) Button (along with an IBOutlet) Table View (along with an IBOutlet) Mutable Array instance variable The

Re: Writing a more usable AppleEvent logger

2008-11-17 Thread has
Ken Tozier wrote: I've been working with AppleEvents and discovering their internals by setting the following in the terminal export AEDebugSends=1; export AEDebugReceives=1 What I'd like to be able to do is observe apple events exactly like this tool but format them into an NSDictionary so

core data - delete of object.

2008-11-17 Thread John Clayton
Hi All, I'm using core-data and need to know when a particular core-data object (derived from NSManagedObject of course) is about to be deleted. I'm deleting objects simply by using the managed object context's deleteObject method, like this: [[theObject managedObjectContext] del

OutlineView, bindings and array of NSDictionaries.

2008-11-17 Thread Sandro Noel
Greetings! Once again, I am faced with a problem :) I cant seem to get my data to display properly in the Outline View, and i am sure it is because of the organisation of my data that it does not display so I'm asking you guy's to sugest some ideas. I have an array of Dictionaries the dict

Re: Question about interface builder

2008-11-17 Thread Kyle Sluder
On Mon, Nov 17, 2008 at 7:49 AM, macdev <[EMAIL PROTECTED]> wrote: > I am migrating from PC/.NET development and I am very new to Xcode/IB/Cocoa. > I was wondering if I could generate GUIs using code without the need to use > the IB. Why does everyone new to the platform want to immediately disca

Re: core data - delete of object.

2008-11-17 Thread Jim Correia
On Nov 17, 2008, at 4:51 PM, John Clayton wrote: I'm using core-data and need to know when a particular core-data object (derived from NSManagedObject of course) is about to be deleted. I'm deleting objects simply by using the managed object context's deleteObject method, like this:

Re: Writing a more usable AppleEvent logger

2008-11-17 Thread Dave DeLong
AEMonitor, AFAIK, is totally dead. My inquiries to the developer (Eric Oxalyn) haven't been answered. Dave On Nov 17, 2008, at 2:46 PM, has wrote: Have you looked at AE Monitor? http://software.oxalyn.com/AEMonitor ___ Cocoa-dev mailing

Re: Question about interface builder

2008-11-17 Thread Brian Stern
On Nov 17, 2008, at 4:59 PM, Kyle Sluder wrote: Why does everyone new to the platform want to immediately discard IB? It is the correct (yes, "correct", not "preferred", not "easiest", but *correct*) way to implement your interface. I can tell you that the majority of iPhone developers are re

Re: Question about interface builder

2008-11-17 Thread Alex Kac
That's an interesting question. We use IB where we can on the iPhone and frankly we can use it a lot. Most of Apple's samples were redone to use IB when IB for iPhone became usable. Yes, there are many reasons to do things in code, but there are many to use IB. Its a balance. Using IB cuts

Re: Interface Builder & Wiring Objects

2008-11-17 Thread mmalcolm crawford
On Nov 17, 2008, at 1:46 PM, Andy Lee wrote: You don't have ivars "along with" outlets. An outlet *is* a particular kind of ivar. It's an object reference that is declared in such a way that IB recognizes it and allows you to assign its value graphically in IB. Typically the declaration

RE: Question about interface builder

2008-11-17 Thread macdev
> mistakes. So it's really not a recommended technique. I understand > that what you're describing is what you're used to. You need to > understand that what you're used to isn't even close to optimal for > this platform. I guess 10+ years of developing in one platform pretty much shapes the way o

Re: Question about interface builder

2008-11-17 Thread Kyle Sluder
On Mon, Nov 17, 2008 at 5:25 PM, Brian Stern <[EMAIL PROTECTED]> wrote: > I can tell you that the majority of iPhone developers are refusing to use > IB. The reasons I usually see are I didn't get the implication that the OP was doing iPhone development. In fact, I'd be very surprised if he were

Re: Question about interface builder

2008-11-17 Thread Kyle Sluder
On Mon, Nov 17, 2008 at 6:17 PM, macdev <[EMAIL PROTECTED]> wrote: > I guess 10+ years of developing in one platform pretty much shapes the way > one thinks about "how to build and write code". Learning to think like a Mac > developer is the hardest part so far... It very much does, and I don't me

Re: Trouble with openFileWithoutUI

2008-11-17 Thread Kyle Sluder
On Mon, Nov 17, 2008 at 2:52 PM, <[EMAIL PROTECTED]> wrote: > It seemed like the think to use. Read that first sentence again. "Sent directly by the sender to the delegate..." The delegate is the receiver, not the NSApplication instance. > Ok, How do I open a file pragramatically? Read up on

Re: NSDateFormatter strangeness

2008-11-17 Thread Kyle Sluder
I think it's a known issue. The documentation for -[NSDate descriptionWithCalendarFormat:timeZone:locale:] (which I can only assume that -[NSDate description] calls) has this caveat: "There are several problems with the implementation of this method that cannot be fixed for compatibility reasons.

Re: OutlineView, bindings and array of NSDictionaries.

2008-11-17 Thread Quincey Morris
On Nov 17, 2008, at 13:51, Sandro Noel wrote: I cant seem to get my data to display properly in the Outline View, and i am sure it is because of the organisation of my data See here: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSTreeController_Cla

NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)

2008-11-17 Thread Rua Haszard Morris
I have found that NSSuperscriptAttributeName, NSUnderlineStyleAttributeName, and NSObliquenessAttributeName (those are the attributes that I have tested) render differently when Cocoa Text is used to draw the string. The attributes appear to be intrepreted inverted, in that 1 for superscri

Re: Question about interface builder

2008-11-17 Thread Andy Lee
On Nov 17, 2008, at 6:23 PM, Kyle Sluder wrote: I'm wondering if Apple's doing a good enough job explaining how IB is different from UI code generators and why it is important that one use it. I think this is a good question. Maybe it'd be worth having a WWDC session dedicated to clearing th

Re: Question about interface builder

2008-11-17 Thread j o a r
On Nov 17, 2008, at 3:23 PM, Kyle Sluder wrote: I'm wondering if Apple's doing a good enough job explaining how IB is different from UI code generators and why it is important that one use it. I don't agree that it's somehow more important for Cocoa developers to use an UI design tool, com

Re: NSAttributedString rendering bugs when rendered with Cocoa Text (rdar://6379047)

2008-11-17 Thread Douglas Davidson
On Nov 17, 2008, at 3:50 PM, Rua Haszard Morris wrote: I have found that NSSuperscriptAttributeName, NSUnderlineStyleAttributeName, and NSObliquenessAttributeName (those are the attributes that I have tested) render differently when Cocoa Text is used to draw the string. The attributes ap

Re: Question about interface builder

2008-11-17 Thread Shawn Erickson
On Mon, Nov 17, 2008 at 3:53 PM, Andy Lee <[EMAIL PROTECTED]> wrote: > There's no way to generate a text dump that you can eyeball. Can generate XML that you can eyeball or transform into something more readable... (not ideal but better then nothing) ibtool --connections /Developer/Examples/Quar

Re: Question about interface builder

2008-11-17 Thread Kyle Sluder
On Mon, Nov 17, 2008 at 6:54 PM, j o a r <[EMAIL PROTECTED]> wrote: > I don't agree that it's somehow more important for Cocoa developers to use > an UI design tool, compared to developers using other development > environments. Cocoa developers, much like developers on other platforms, can > alway

Re: Question about interface builder

2008-11-17 Thread j o a r
On Nov 17, 2008, at 4:02 PM, Kyle Sluder wrote: My point is that this isn't the case. Avoiding IB has been shown to introduce subtle bugs. Like what? I know of one thing that's currently difficult to do in code: Setting up the main menu. Difficult yes, but not impossible. Should this be

Re: Question about interface builder

2008-11-17 Thread Brian Stern
On Nov 17, 2008, at 6:19 PM, Kyle Sluder wrote: On Mon, Nov 17, 2008 at 5:25 PM, Brian Stern <[EMAIL PROTECTED]> wrote: I can tell you that the majority of iPhone developers are refusing to use IB. The reasons I usually see are I didn't get the implication that the OP was doing iPhone de

CMGetImageSpace() replacement?

2008-11-17 Thread Randall Meadows
The code I'm working on uses CMGetImageSpace(), which is deprecated in 10.5, but the docs don't suggest anything to use in its stead. Anyone know? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Question about interface builder

2008-11-17 Thread Gregory Weston
On Nov 17, 2008, at 6:53 PM, Andy Lee wrote: On Nov 17, 2008, at 6:23 PM, Kyle Sluder wrote: I'm wondering if Apple's doing a good enough job explaining how IB is different from UI code generators and why it is important that one use it. I think this is a good question. Maybe it'd be wor

RE: Re: Displaying NSArray in NSTableView

2008-11-17 Thread 양승준
Thank you for replying.  I connected dataSource by ctrl-dragging from the  tableView to File's owner and selecting dataSource. If I change the number of elements of the array, the number of rows in the tableView changes. The problem is that the data in the array doesn't show up...  -Origina

Regex

2008-11-17 Thread Mr. Gecko
Hello I have been trying to find a good Regex framework for cocoa. I am trying to find urls in an html page, I have this regex from php that I made so all I would need is a way to bring it to cocoa, the regex is /]*href=(\"??)([^\" >]*?)\\1[^>]*>.*<\/a>/siU Thanks for the help. Mr. Gecko ___

Re: NSDateFormatter strangeness

2008-11-17 Thread Greg Hoover
I am using NSDateFormatter. The code snippet included shows this. Greg On Nov 17, 2008, at 3:38 PM, Kyle Sluder wrote: I think it's a known issue. The documentation for -[NSDate descriptionWithCalendarFormat:timeZone:locale:] (which I can only assume that -[NSDate description] calls) has this

Re: Regex

2008-11-17 Thread Dave DeLong
http://regexkit.sourceforge.net I use it pretty frequently (the Lite version, anyway). HTH, Dave On 17 Nov, 2008, at 6:04 PM, Mr. Gecko wrote: Hello I have been trying to find a good Regex framework for cocoa. I am trying to find urls in an html page, I have this regex from php that I made

Re: Displaying NSArray in NSTableView

2008-11-17 Thread Quincey Morris
On Nov 17, 2008, at 04:03, 양승준 wrote: The data is in parBuffer initialized inside (id) init as parBuffer = [NSArray arrayWithObjects: [NSNumber numberWithInt:4], [NSNumber numberWithInt:8], [NSNumber numberWithFloat:3.14] , nil]; Is this a garbage-collected application? If not, then you

Re: Regex

2008-11-17 Thread Andrew Farmer
On 17 Nov 08, at 17:04, Mr. Gecko wrote: Hello I have been trying to find a good Regex framework for cocoa. I am trying to find urls in an html page... Assuming that you're loading the web page into a WebView or similar, you'll have a much easier time doing this through the HTML DOM. Trying

Re: Regex

2008-11-17 Thread Mr. Gecko
I've never thought of that, but I am using NSURL because I want it to be a crawler. I'll see if I can do that with what I got so far. On Nov 17, 2008, at 7:43 PM, Andrew Farmer wrote: On 17 Nov 08, at 17:04, Mr. Gecko wrote: Hello I have been trying to find a good Regex framework for cocoa.

Re: Regex

2008-11-17 Thread Mr. Gecko
I've found RegexKit but I couldn't figure out how to get an array from my string. On Nov 17, 2008, at 7:43 PM, Andrew Farmer wrote: On 17 Nov 08, at 17:04, Mr. Gecko wrote: Hello I have been trying to find a good Regex framework for cocoa. I am trying to find urls in an html page... Assumi

Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)

2008-11-17 Thread mmalcolm crawford
On Nov 17, 2008, at 3:06 PM, mmalcolm crawford wrote: Going forward, you're encouraged to declare outlets as follows: @interface AppController : NSObject { NSTextField *myTextField; ... } @property (nonatomic, retain) IBOutlet NSTextField *myTextField; Jeff asked (posted with permission):

Re: Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)

2008-11-17 Thread Brian Stern
On Nov 17, 2008, at 9:11 PM, mmalcolm crawford wrote: One other consideration, particularly in iPhone applications, is where you might have outlets to subviews of a main view that might be released in sime situations -- e.g. a UIViewController whose view is released in didReceiveMemoryWarn

Re: Fetch value from field editor during editing?

2008-11-17 Thread Russ
Nice try, but that definitely doesn't affect typing. According to the docs, it affects mouse tracking. NSTextField: why use the rowboat you need, when you can use an aircraft carrier instead. Still no way to find the text editor value while it is editing, or receive notifications as the value

Re: Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)

2008-11-17 Thread Luke the Hiesterman
On Nov 17, 2008, at 7:12 PM, Brian Stern wrote: OK, this issue has come up for me very recently. It appears that on iPhoneOS IBOutlets are retained, regardless of the presence of properties. Even worse, in the presence of an assign property the outlet is still retained. Whatever code is

Re: Fetch value from field editor during editing?

2008-11-17 Thread Randall Meadows
On Nov 17, 2008, at 8:17 PM, Russ wrote: Nice try, but that definitely doesn't affect typing. According to the docs, it affects mouse tracking. NSTextField: why use the rowboat you need, when you can use an aircraft carrier instead. Still no way to find the text editor value while it is e

Re: Outlets / IBOutlet declarations (was Re: Interface Builder & Wiring Objects)

2008-11-17 Thread Brian Stern
On Nov 17, 2008, at 10:17 PM, Luke the Hiesterman wrote: On Nov 17, 2008, at 7:12 PM, Brian Stern wrote: OK, this issue has come up for me very recently. It appears that on iPhoneOS IBOutlets are retained, regardless of the presence of properties. Even worse, in the presence of an assig

Help on Software update application

2008-11-17 Thread Arnab Ganguly
Hi All, I am planning to develop an application similar to what you get in the "Software Update" in Mac.If you click on that it checks any update is required for your machine etc...Mine application will look for the updates specific to the developed Client. Is there any sample app I can refer to ?A

Re: Regex

2008-11-17 Thread Peter N Lewis
Hello I have been trying to find a good Regex framework for cocoa. I am trying to find urls in an html page, I have this regex from php that I made so all I would need is a way to bring it to cocoa, the regex is /]*href=(\"??)([^\" >]*?)\\1[^>]*>.*<\/a>/siU

  1   2   >