Re: Document-Based Application

2009-07-27 Thread Graham Cox
On 27/07/2009, at 2:09 PM, Quincey Morris wrote: On Jul 26, 2009, at 20:39, David Blanton wrote: I have 22 file types, each with its own C++ methods for extracting its data. Now, I could use just one subclass of NSDocument and in the - (BOOL)readFromData:(NSData *)data ofType:(NSString

Re: Cocoa Document-Based App v. Windows MDI App

2009-07-27 Thread Graham Cox
On 27/07/2009, at 1:46 PM, David Blanton wrote: I am the only Mac programmer where I work; the rest being windows. I am constantly challenged to make Mac programs look like windows to some extent. Windows has an architecture called Multiple Document Interface. Each doc opened is

Re: How to display the file's basic information in the columns of

2009-07-27 Thread Bright
But when I drop the file into the table view, the app exited immediately. Find the crash report and look at it; if you don't figure it out from that, send another message here with the crash report. Hi Sorry, I can not figure out the crash report. Could you tell me how to find the

Re:How to display the file's basic information in the columns of the tableview

2009-07-27 Thread Bright
Hi In the - (BOOL)tableView: acceptDrop: row: dropOperation: method, I tried to insert the information Dictionary into the Array use the code [tableRecordsArray insertObject:infoDictionary atIndex:row+i];. But when I drop the file into the table view, the app exited immediately. Now, I

Re: How to display the information in the columns of the table view?

2009-07-27 Thread Graham Cox
On 25/07/2009, at 11:56 PM, Bright wrote: Hi all, In my application, I want to drag the file into the table view. At the same time, display the basic information in the columns of the table view. Now, I got the basic information of the file and saved it in a NSDictionary object.

Views in CDBA's

2009-07-27 Thread David Blanton
CDBA - Cocoa Document-Based Application. I dragged a Scroll View from the LIbrary Objects Tab to the Window defined in MyDocument.xib. All of my content to be displayed here will be bit maps. So .. do I 1. make a view, store in this nib. 2. Render my bit map to this view. 3. Set the

Re: Cocoa Document-Based App v. Windows MDI App

2009-07-27 Thread Jeff Biggus
On Jul 26, 2009, at 10:46 PM, David Blanton wrote: I am the only Mac programmer where I work; the rest being windows. I am constantly challenged to make Mac programs look like windows to some extent. Windows has an architecture called Multiple Document Interface. Each doc opened is

Re: Document-Based Application

2009-07-27 Thread Jeffrey Oleander
On Mon, 2009/07/27, Graham Cox graham@bigpond.com wrote: From: Graham Cox graham@bigpond.com Subject: Re: Document-Based Application To: David Blanton aired...@tularosa.net Cc: cocoa-dev cocoa-dev@lists.apple.com Date: Monday, 2009 July 27, 00:10 On 2009/07/27, at 2:09 PM, Quincey

Re: Cocoa Document-Based App v. Windows MDI App

2009-07-27 Thread Andy Lee
On Jul 26, 2009, at 11:46 PM, David Blanton wrote: I am the only Mac programmer where I work; the rest being windows. I am constantly challenged to make Mac programs look like windows to some extent. I guess I'd ask the question we often ask about coding questions: What are you really

Re: Cocoa Document-Based App v. Windows MDI App

2009-07-27 Thread Andrew Farmer
On 26 Jul 2009, at 22:57, Jeff Biggus wrote: If you want it to look like Safari tabs across the top you'll just have to do a little work to make that top bar view behave how you want. Side tabs are much easier to get up and running, and are often a better solution GUI-wise, depending on

Re: Views in CDBA's

2009-07-27 Thread Graham Cox
On 27/07/2009, at 3:44 PM, David Blanton wrote: So .. do I 1. make a view, store in this nib. 2. Render my bit map to this view. 3. Set the document view of the scroll view to this view. Yes, that should work. But there is an easier way. If you drag in a custom view, set its class to

Re: How to display the information in the columns of the table view?

2009-07-27 Thread Bright
Hi Graham and Others, I am sorry for my doing. I am a new learning for cocoa. And the time using the Cocoa-dev mailist for short time. So I am not familiar with the rules of the mailist very much. At the same time, English is not my mother language. So sometimes I do not know how to

Re: Cocoa Document-Based App v. Windows MDI App

2009-07-27 Thread Andy Lee
On Jul 27, 2009, at 12:50 AM, David Blanton wrote: I think I'll use: The Mac frameworks just don't support that approach. Sorry. I could re-implement MDI on the Mac, but it would be about a man-year's work. Do you want me to do that? Personally, I wouldn't tempt fate. What if they say

Re: Cocoa Document-Based App v. Windows MDI App

2009-07-27 Thread Andy Lee
On Jul 27, 2009, at 2:22 AM, Andy Lee wrote: I guess I'd ask the question we often ask about coding questions: What are you really trying to do? It sounds like the problem is that Windows users accustomed to MDI get visually confused by multiple windows from different apps overlapping each

Re: Views in CDBA's

2009-07-27 Thread Kyle Sluder
On Jul 26, 2009, at 10:44 PM, David Blanton aired...@tularosa.net wrote: I dragged a Scroll View from the LIbrary Objects Tab to the Window defined in MyDocument.xib. All of my content to be displayed here will be bit maps. Well that's a bit of a tautology considering it's all going to

Re: Cocoa Document-Based App v. Windows MDI App

2009-07-27 Thread Jeff Biggus
On Jul 27, 2009, at 1:24 AM, Andrew Farmer wrote: Check out PSMTabBar. Turns a standard NSTabView into a Safari- style tab view, with tabs on any side you want - including all the tricky functionality like draggable tabs. Wow, that's great. In reference to what to say to the Windows

Re: How to display the information in the columns of the table view?

2009-07-27 Thread Alexander Spohr
Compile as debug. Run and look at the console in Xcode. Try [tableRecordsArray addObject:infoDictionary] instead of [tableRecordsArray insertObject:infoDictionary atIndex:row+i]; Tell us what tableRecordsArray is and how you allocate it. atze ps. signing what Graham Cox said. Am

Multiple keyboard shortcuts for the same menu command

2009-07-27 Thread Oleg Krupnov
I'd like the Go Back command in my app to be triggered by both Cmd+[ and Cmd+- (left arrow) keyboard shortcuts. How do I do that? I am aware of the [NSMenuItem isAlternate] but it only works if the keyboard equivalents are the same and only the modifiers differ, whereas in my case the opposite is

Re:Re: How to display the information in the columns of the table view?

2009-07-27 Thread Bright
Try [tableRecordsArray addObject:infoDictionary] instead of [tableRecordsArray insertObject:infoDictionary atIndex:row+i]; Tell us what tableRecordsArray is and how you allocate it. I have tried the replacement, it does not work. The tableRecordsArray the NSArray object for conserve the

Re: How to display the information in the columns of the table view?

2009-07-27 Thread Andrew Farmer
The crash you're seeing is almost certainly occuring because you aren't retaining infoDictionary correctly. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Multiple keyboard shortcuts for the same menu command

2009-07-27 Thread Тимофей Даньшин
Well, you could have two different menu items doing the same thing and having the two shortcuts. On Jul 27, 2009, at 11:38 AM, Oleg Krupnov wrote: I'd like the Go Back command in my app to be triggered by both Cmd+[ and Cmd+- (left arrow) keyboard shortcuts. How do I do that? I am aware of

Dictionary with enum keys?

2009-07-27 Thread Debajit Adhikary
I need to create a dictionary/hashmap where the - Keys are enums - Values are some subclass of NSObject NSDictionary won't work here (enums don't conform to NSCopying). I could perhaps use a CFDictionaryRef here, but I'd like to know if is there any other way to achieve this.

Re: Cocoa Document-Based App v. Windows MDI App

2009-07-27 Thread Aaron Burghardt
On Jul 27, 2009, at 12:50 AM, David Blanton wrote: I think I'll use: The Mac frameworks just don't support that approach. Sorry. I could re-implement MDI on the Mac, but it would be about a man-year's work. Do you want me to do that? To add to that argument, you might list some of the

Re: Dictionary with enum keys?

2009-07-27 Thread Jean-Daniel Dupas
Le 27 juil. 09 à 10:48, Debajit Adhikary a écrit : I need to create a dictionary/hashmap where the - Keys are enums - Values are some subclass of NSObject NSDictionary won't work here (enums don't conform to NSCopying). I could perhaps use a CFDictionaryRef here, but I'd like to know

Re: Cocoa Document-Based App v. Windows MDI App

2009-07-27 Thread Jean-Daniel Dupas
Le 27 juil. 09 à 10:49, Aaron Burghardt a écrit : On Jul 27, 2009, at 12:50 AM, David Blanton wrote: I think I'll use: The Mac frameworks just don't support that approach. Sorry. I could re-implement MDI on the Mac, but it would be about a man-year's work. Do you want me to do that?

Creating an installer for KEXT

2009-07-27 Thread Shraddha Karwan
Hi, I have a Kernel extension. I am using Package Maker Version 3.0.3 (174). I need Root Authentication for installing the KEXT in the /System/Library/Extension directory. The package maker tutorials on Apple's site refer to some older version of Package Maker which consists of a Root

Re: Creating an installer for KEXT

2009-07-27 Thread I. Savant
On Jul 27, 2009, at 7:06 AM, Shraddha Karwan wrote: I have a Kernel extension. I am using Package Maker Version 3.0.3 (174). I need Root Authentication for installing the KEXT in the /System/Library/Extension directory. This is best posted to the xcode-users list (Package Maker is part

Re: How to display the information in the columns ...... is OK

2009-07-27 Thread Bright
The crash you're seeing is almost certainly occuring because you aren't retaining infoDictionary correctly. Haha. You are right. I added the [infoDictionary retain]; at the end of the info code fragement. At the same time, I modified other code correspondingly. It is OK now. Thank you.

Re: Rotating image

2009-07-27 Thread Dragos Ionel
No need to release an image created using the imageNamed. Dragos On Sun, Jul 26, 2009 at 4:00 AM, Agha Khan agha.k...@me.com wrote: HI: I have an image which works fine. UIImage *img = [UIImage imageNamed:@background.png]; [img drawAtPoint:CGPointMake(0,0)]; [img release]; Now suppose I

Re: How to display the file's basic information in the columns of

2009-07-27 Thread Scott Ribe
Debugging the application is better than finding the crash report anyway. Now that you know where it's crashing, there is of course nothing at all wrong with putting an NSDictionary into an NSArray. You have a memory error elsewhere that is the root cause of the crash. I have 2 suggestions: -

Re: bypass NSApp

2009-07-27 Thread Julien Isorce
Hi, I took all your remarks into account and I decided to use the event dispatching system that uses the C third party program. So I post an event which will be handled by the main loop of the C third party program. The attached callback intializes the nsapp and in the main thread. To get ride

Re: [iPhone] Why can't a UITextField be its own delegate?

2009-07-27 Thread Jonathan Hendry
On Jul 25, 2009, at 16:14 PM, WT wrote: Convoluted? I don't see it that way. This particular text field needs to limit its number of characters to a given interval. Seems like a good job for an NSFormatter attached to the field. ___ Cocoa-dev

Re: Views in CDBA's

2009-07-27 Thread David Blanton
3. Set the document view of the scroll view to this view. This is why I was confused about store Im this nib above. When you drag a scroll view in from the Library, it has a custom view inside of it, set up as the scroll view's document view. You can use the Identity inspector to change

Re: Document-Based Application

2009-07-27 Thread Scott Ribe
Also remember that although 1 class per file is usual practice, there's nothing in the language that requires it. If the cleanest solution turns out to be 22 very small and somewhat similar classes, put them in 1 file (well ok, 2) instead of spreading them between 22 (well ok, 44) files. --

NSTextView - Image Editing?

2009-07-27 Thread Frank D. Engel, Jr.
Hi, In Leopard, there is an option to enable Image Editing in an NSTextView. I was hoping that meant I could pop up an Image Edit panel, as in an IKImageView, but that doesn't seem to be the case? What does that option do, and is there any easy way that I could use the Image Edit panel

Re: NSTextView - Image Editing?

2009-07-27 Thread Douglas Davidson
On Jul 27, 2009, at 8:57 AM, Frank D. Engel, Jr. wrote: In Leopard, there is an option to enable Image Editing in an NSTextView. I was hoping that meant I could pop up an Image Edit panel, as in an IKImageView, but that doesn't seem to be the case? What does that option do, and is there

Re: Search Item in the Application menu missing in Other languages

2009-07-27 Thread Arun
Hi Peter, selector(showHelp:) is the default action that gets called when we click on the Help - showHelp option. Looks like you did not undersatnd the question correctly. The Hep menu in english contains a Search menu item in English. If you change the Operating System language, Search menu

Pop-up Panels?

2009-07-27 Thread Frank D. Engel, Jr.
I want to create something like an NSPopUpButton, but instead of a menu coming from it, I'd like to display a custom panel that acts like a pop-up menu: it would be a selection interface, but not a simple menu; if the user clicks outside of it, it would just disappear and nothing would

Re: NSString -componentsSeparatedByString: line break

2009-07-27 Thread Chase Meadors
Thanks guys, except now I'm having a new problem. My array of lines is now containing empty strings that actually report a length of zero. This would be fine, except when I try to filter the array to get rid of these empty lines, [array filterUsingPredicate:[NSCompoundPredicate

iTunes DB Change Notifications?

2009-07-27 Thread Brad Gibbs
I've looked through the docs and Googled, but may not be looking for the right terms. Are there change notifications for the iTunes database? I'd like to have an iTunes client on a different machine on the local network be notified of changes, rather than having to poll and reload the

Re: Pop-up Panels?

2009-07-27 Thread I. Savant
On Jul 27, 2009, at 1:35 PM, Frank D. Engel, Jr. wrote: I want to create something like an NSPopUpButton, but instead of a menu coming from it, I'd like to display a custom panel that acts like a pop-up menu: it would be a selection interface, but not a simple menu; if the user clicks

Re: iTunes DB Change Notifications?

2009-07-27 Thread I. Savant
On Jul 27, 2009, at 1:38 PM, Brad Gibbs wrote: I've looked through the docs and Googled, but may not be looking for the right terms. Are there change notifications for the iTunes database? I'd like to have an iTunes client on a different machine on the local network be notified of

Re: iTunes DB Change Notifications?

2009-07-27 Thread Kyle Sluder
On Jul 27, 2009, at 10:38 AM, Brad Gibbs bradgi...@mac.com wrote: Are there change notifications for the iTunes database? I'd like to have an iTunes client on a different machine on the local network be notified of changes, rather than having to poll and reload the database regularly.

NSTableView - strange behaviour after cell text color assignment

2009-07-27 Thread Alexander Bokovikov
Hi, All, I'm trying to color my table's rows depending on some value, returning from a function like this: int GetState(int rowIndex); I've searched around the Net and the only clear way I've found is to set my AppController, as a tableView delegate and respond to the message -

Re: NSString -componentsSeparatedByString: line break

2009-07-27 Thread Shawn Erickson
On Mon, Jul 27, 2009 at 10:36 AM, Chase Meadorsc.ed.m...@gmail.com wrote: Thanks guys, except now I'm having a new problem. Are you using -getLineStart:end:contentsEnd:forRange:? If not you should switch to use that and see if you still have an issue.

UITextView not updating

2009-07-27 Thread Development
I asked about this earlier and no one seemed the know the answer. I have a UITextView inside of a scroll view. The textview is offscreen when the main view loads. So it does not update when data is loaded in to it. Thus when ever the scroll it is inside moves I use a standard scrollview

Re: UITextView not updating

2009-07-27 Thread Luke the Hiesterman
It would be easier to answer this with a sample project. Luke On Jul 27, 2009, at 11:10 AM, Development wrote: I asked about this earlier and no one seemed the know the answer. I have a UITextView inside of a scroll view. The textview is offscreen when the main view loads. So it does not

Re: NSString -componentsSeparatedByString: line break

2009-07-27 Thread Chase Meadors
Nevermind though, it WAS an empty string, and I just changed the predicate to @SELF == %@, @ I didn't think the == was for strings but it worked. On Jul 27, 2009, at 1:03 PM, Shawn Erickson wrote: On Mon, Jul 27, 2009 at 10:36 AM, Chase Meadorsc.ed.m...@gmail.com wrote: Thanks guys, except

Re: iTunes DB Change Notifications?

2009-07-27 Thread Brad Gibbs
If Apple is providing the XML file for third party developer use, but they don't provide any way to monitor changes, does that mean that their intention is for third party apps to regularly refresh from the XML file? Isn't this an extremely expensive operation? Particularly when moving

Re: iTunes DB Change Notifications?

2009-07-27 Thread slasktrattena...@gmail.com
On Mon, Jul 27, 2009 at 7:46 PM, I. Savantidiotsavant2...@gmail.com wrote: On Jul 27, 2009, at 1:38 PM, Brad Gibbs wrote: I've looked through the docs and Googled, but may not be looking for the right terms. Are there change notifications for the iTunes database?  I'd like to have an iTunes

Re: iTunes DB Change Notifications?

2009-07-27 Thread I. Savant
On Jul 27, 2009, at 3:09 PM, slasktrattena...@gmail.com wrote: Short answer: YES. A distributed notification is posted every time the the database is updated. Add an observer for notifications named com.apple.iTunes.sourceSaved posted by object com.apple.iTunes.sources. Is this documented /

Re: Search Item in the Application menu missing in Other languages

2009-07-27 Thread Peter Ammon
Arun, my advice is the same. To identify which menu (if any) should get the Search field, AppKit examines the actions of the items in that menu. If a menu contains an item with the showHelp: action, then AppKit concludes that menu is the Help menu, and it will get the Search field.

Re: NSTableView - strange behaviour after cell text color assignment

2009-07-27 Thread Alexander Bokovikov
Replying to myself: - (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex; The function above works perfectly, but the problem reason was in the incorrect receiving of the selected

Re: Creating an installer for KEXT

2009-07-27 Thread Fritz Anderson
On 27 Jul 2009, at 6:52 AM, I. Savant wrote: This is best posted to the xcode-users list (Package Maker is part of Xcode Tools) ... it isn't specific to Cocoa. Better yet, installer-dev, which is specifically for PackageMaker and Installer.app. PackageMaker is... um... subtle. You need a

Re: [iPhone] Why can't a UITextField be its own delegate?

2009-07-27 Thread Fritz Anderson
On 27 Jul 2009, at 9:58 AM, Jonathan Hendry wrote: Seems like a good job for an NSFormatter attached to the field. Can you attach an NSFormatter to a UITextField? The only mention in the docs of attaching formatters to cells says right up front that the subject does not apply to iPhone

Re: Dictionary with enum keys?

2009-07-27 Thread Ken Thomases
On Jul 27, 2009, at 3:52 AM, Jean-Daniel Dupas wrote: Le 27 juil. 09 à 10:48, Debajit Adhikary a écrit : I need to create a dictionary/hashmap where the - Keys are enums - Values are some subclass of NSObject NSDictionary won't work here (enums don't conform to NSCopying). I could

NSTableView cell editing begin / end notifications?

2009-07-27 Thread Alexander Bokovikov
Hi, All, In my app I have a table, populated by some periodic procedure, working on a timer. At the same time I need to add a cell editing capability. But periodic updating procedure calls [tableView reloadData], which resets the cell editor, if it is active. Therefore I need to stop

How to set the string and integer value of an NSButtonCell using NSOutilneView

2009-07-27 Thread Korei Klein
I'm implementing an NSOutlineViewDataSource object which will be the data source of an NSOutlineView. The NSOutlineView displays its data in NSButtonCell s. The value displayed in an NSButtonCell is both an integer, and a string. The delegate method which I am implementing

NSXMLDocument and schema validation (Not finding schema document?)

2009-07-27 Thread Leif Harrison
Has anyone had success using NSXMLDocument to validate XML using an XML Schema document? I can parse and process my XML file fine as long as I don't validate, but when I call validateAndReturnError: I'm getting back the error xmlSchemaParse: could not load ''. As far as I can tell, the

nil there not here

2009-07-27 Thread David Blanton
I create a CGImageRef and store it When I get around to using it, it is nil My code is below ... fire away, please! #import MyDocumentView.h @interface MyDocument : NSDocument { MyDocumentView* _myDocumentView; } @end - (id)init { self = [super init]; if (self) { //

Re: How to set the string and integer value of an NSButtonCell using NSOutilneView

2009-07-27 Thread Chase Meadors
Well, according to the documentation, an NSButtonCell's object value (and all interpretations thereof) correspond to the state of the button (on, off, or mixed). You want to set this as well as set the title of the button. Unlike NSBrowser, NSOutlineView's data source methods don't provide

Re: [iPhone] Why can't a UITextField be its own delegate?

2009-07-27 Thread WT
On Jul 26, 2009, at 4:16 AM, Greg Guerin wrote: WT wrote: It seems I'll have to opt for having a regular UITextField and a custom class whose sole purpose is to provide a delegate that does the common work. As Kyle suggested, I may need to make that a superclass and derive additional

Re: nil there not here

2009-07-27 Thread Greg Guerin
David Blanton wrote: _myDocumentView = [[MyDocumentView alloc] init]; [_myDocumentView retain]; This is over-retaining _myDocumentView. You called alloc/init, so you already own the instance. If you retain it again, you're not gaining anything. Unless you're doing the extra retain

Re: nil there not here More Info

2009-07-27 Thread David Blanton
I just noticed that the object I allocate is not the one whose drawRect is being called ... I am confused ... what other object is there ! On Jul 27, 2009, at 3:44 PM, David Blanton wrote: I create a CGImageRef and store it When I get around to using it, it is nil My code is below ...

Re: [iPhone] Why can't a UITextField be its own delegate?

2009-07-27 Thread WT
On Jul 27, 2009, at 10:32 PM, Fritz Anderson wrote: On 27 Jul 2009, at 9:58 AM, Jonathan Hendry wrote: Seems like a good job for an NSFormatter attached to the field. Can you attach an NSFormatter to a UITextField? The only mention in the docs of attaching formatters to cells says right

Re: nil there not here

2009-07-27 Thread Dave Carrigan
On Jul 27, 2009, at 2:44 PM, David Blanton wrote: _myDocumentView = [[MyDocumentView alloc] init]; [_myDocumentView retain]; You already own _myDocumentView by virtue of the fact that you used alloc/init, so this extra retain is going to lead to memory leaks

Re: nil there not here More Info

2009-07-27 Thread Scott Ribe
I just noticed that the object I allocate is not the one whose drawRect is being called ... I am confused ... what other object is there ! One defined in a nib file perhaps? -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice

Re: UITextView not updating

2009-07-27 Thread Info
Hi, I run into the same problem with an app for that I decided to set up my view controllers / views as singletons (and therefore to reuse them). Views within a scroll view display their previous values if they become a new value assigned when they are scrolled off (screen or scroll view

Re: nil there not here

2009-07-27 Thread David Blanton
- (BOOL)readFromData:(NSData*)data ofType:(NSString*)typeName error: (NSError*)outError { return [_myDocumentView setImageFromData:data type:typeName error:outError]; } Yes, I should do it as above and will. Thanks for the suggestion. I guess a better way of stating the problem is :

Re: nil there not here

2009-07-27 Thread Kyle Sluder
On Mon, Jul 27, 2009 at 3:56 PM, David Blantonaired...@tularosa.net wrote: What is the preferred method of associating a view with a document?  This is the fundamental issue for me. It's known as the Model-View-Controller paradigm. Typically you create some custom class known as a controller,

Re: How to display the information in the columns of the table view?

2009-07-27 Thread Paul M
Hi all, In my application, I want to drag the file into the table view. At the same time, display the basic information in the columns of the table view. ... Thanks for just wasting an hour and a half trying to recover from that stupid huge attachment! I'm on dial-up - I have no

Dynamic UI with scroll view

2009-07-27 Thread Chase Meadors
I'm writing an app where the number of controls in the UI is dependent on the amount of information to be entered. The scroll view programming guide is not helping either. The only experience I've had with scroll views is the ones that come with other views in IB. If I'm thinking

Re: NSString -componentsSeparatedByString: line break

2009-07-27 Thread Kirk Kerekes
How about: [array filterUsingPredicate:[NSPredicate predicateWithFormat:@SELF.length 0]]; LIKE is awfully fancy for the purpose. On Jul 27, 2009, at 2:03 PM, cocoa-dev-requ...@lists.apple.com wrote: Date: Mon, 27 Jul 2009 12:36:27 -0500 From: Chase Meadors c.ed.m...@gmail.com Subject:

NSString and regular expressions

2009-07-27 Thread Rick Mann
I need to do some regex searches on NSStrings, and use capturing groups. Looking online I found some discussions from 2003 referring to MOKit, which hasn't been touched since 2005, and seems to include a lot of stuff I don't care about. Other references to agkit suggest it doesn't support

Re: NSString and regular expressions

2009-07-27 Thread Dave DeLong
RegexKit. Without a doubt. http://regexkit.sourceforge.net I use it in about 75% of my projects. Dave On Jul 27, 2009, at 6:37 PM, Rick Mann wrote: I need to do some regex searches on NSStrings, and use capturing groups. Looking online I found some discussions from 2003 referring to

Re: NSString and regular expressions

2009-07-27 Thread Rob Keniger
On 28/07/2009, at 10:38 AM, Dave DeLong wrote: RegexKit. Without a doubt. http://regexkit.sourceforge.net I use it in about 75% of my projects. RegexKit is very nice and extremely comprehensive, but it has quite a large footprint and is probably overkill for many uses. Unfortunately,

NSWindow reference remains null after window did load

2009-07-27 Thread Daniel Child
I have a master controller loading a window controller subclass, but for some reason, I cannot get a pointer to the window loaded in the XIB file. I've looked at every connection, and I've also tested the order by of method calls. In the window controller's init: [self window] yields

Re: NSTableView - strange behaviour after cell text color assignment

2009-07-27 Thread Graham Cox
On 28/07/2009, at 5:51 AM, Alexander Bokovikov wrote: I wrongly assigned it, as a global variable Whenever you find yourself doing this, stop, look and figure out another way. It's almost invariably a sign of a bad design or flawed implementation. --Graham

Re: NSWindow reference remains null after window did load

2009-07-27 Thread Graham Cox
On 28/07/2009, at 12:39 PM, Daniel Child wrote: I have a master controller loading a window controller subclass, but for some reason, I cannot get a pointer to the window loaded in the XIB file. I've looked at every connection, and I've also tested the order by of method calls. In the

Re: NSWindow reference remains null after window did load

2009-07-27 Thread Randall Meadows
On Jul 27, 2009, at 8:39 PM, Daniel Child wrote: I have a master controller loading a window controller subclass, but for some reason, I cannot get a pointer to the window loaded in the XIB file. I've looked at every connection, and I've also tested the order by of method calls. In the

Re: Dictionary with enum keys?

2009-07-27 Thread Debajit Adhikary
Thanks! The NSNumber approach is working fine :) On Mon, Jul 27, 2009 at 1:35 PM, Ken Thomases k...@codeweavers.com wrote: On Jul 27, 2009, at 3:52 AM, Jean-Daniel Dupas wrote: Le 27 juil. 09 à 10:48, Debajit Adhikary a écrit : I need to create a dictionary/hashmap where the - Keys are