Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Antonio Nunes
On 15 Jul 2008, at 07:44, Jeff Brown wrote: Just an aside - does Hillegass, Third Edition teach you Core Data? The blurb on Amazon says it does but when I looked at the index online it didn't mention Core Data. Yes, it does. Chapter 11: Basic Core Data. António

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Glenn Sequeira
+ Chapter 30: Core Data Relationships On Tuesday, July 15, 2008, at 12:02AM, "Antonio Nunes" <[EMAIL PROTECTED]> wrote: >On 15 Jul 2008, at 07:44, Jeff Brown wrote: > >> Just an aside - does Hillegass, Third Edition teach you Core Data? >> The blurb on Amazon says it does but when I looked at th

Re: KVV and the missing Discard Changes button

2008-07-15 Thread Scott Anguish
On 14-Jul-08, at 7:36 PM, Steve Green wrote: It is not the case.. they both use bindings but in the case where I only see 1 button, the NSTextField and bindings are created programatically. Neither bind through controllers. why? (NS*)Controller(s) are very important, especially in case

custom NSButtonCell behaves different/wrong on Leopard

2008-07-15 Thread Mark Sanvitale
Summary of the problem is that I have a custom NSButton subclass which accomplishes a roll-over effect (title and background take on a special appearance when the mouse is over the cell). On Leopard, these same cells appear to perform a state change on mouse-over (the title and the image s

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Antonio Nunes
On 15 Jul 2008, at 04:53, Jon Buys wrote: I'm working through the challenge app at the end of Chapter 18 of Cocoa Programming, Third Edition. I've got my app to the point where it can draw ovals, but each time I click in the window it seems like the view redraws itself. I'm sure that this

Calling an Apple Detector

2008-07-15 Thread Laurent Cerveau
Hi Does anyone know if Is there a way to call an Apple Data Detector from Objective-C code. I'd like to use one that recognizes dates and events and that is working pretty well in Mail. Thanks laurent ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: NSViewController and View Swapping

2008-07-15 Thread Hamish Allan
On Mon, Jul 14, 2008 at 3:26 PM, Brad Gibbs <[EMAIL PROTECTED]> wrote: > But, that screen (with its tab view and all of the custom views to be made > available from within the tab view) is one of several screens like it. The > other tab views will contain different numbers of tabs. The user will

Flicker from NSResponder Chain?

2008-07-15 Thread John MacMullin
I read in the archives of a method to implement Tiger's approach to tabbing through a table in Leopard. While my approach works as to the tabbing, it is slightly different than the approach discussed in the archives. It also results in a problem that is discussed below. I have two tables

how to invoke the authentication dialog

2008-07-15 Thread 李国良
maybe the system have such kind of API that used to popup dialog for authentication, i means if the user want to run an application which need the administrator access right, so this dialog popup and request the administrator's password. my question is that i can not find out such API, can anyone h

Re: how to invoke the authentication dialog

2008-07-15 Thread Jean-Daniel Dupas
Le 15 juil. 08 à 12:14, 李国良 a écrit : maybe the system have such kind of API that used to popup dialog for authentication, i means if the user want to run an application which need the administrator access right, so this dialog popup and request the administrator's password. my question is th

Keypaths

2008-07-15 Thread Niklas Saers
Hi, I've implemented a little tree through my class Node that contains the properties NSString* name and NSMutableArray *subnodes I'd love to say something like "Give me the nodes that have a grand- father named Balbo Baggins and father named Ponto Baggins" (should be Rosa and Polo Baggins)

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Jon Buys
On Tue, Jul 15, 2008 at 3:00 AM, Antonio Nunes <[EMAIL PROTECTED]> wrote: > On 15 Jul 2008, at 04:53, Jon Buys wrote: > > I'm working through the challenge app at the end of Chapter 18 of Cocoa >> Programming, Third Edition. I've got my app to the point where it can >> draw >> ovals, but each ti

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Kyle Sluder
On Tue, Jul 15, 2008 at 7:25 AM, Jon Buys <[EMAIL PROTECTED]> wrote: > How can I add a > rect to an array? Do I have to convert it first? Wrap the NSRect in an NSValue using +[NSValue valueWithRect:]. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-de

how to add modal dialog once application begin to run

2008-07-15 Thread 李国良
the situation like this: when user launch the application, the main window open, before user click any button in the window, there is a modal dialog attached to the main window, warning any operation will be un-protected..., so how to implement it, i have new a cocoa application. maybe there is an

Re: Toolbar code in separate Controller?

2008-07-15 Thread John Love
As some of you realize, I have a fetish about compartimentalization, that is, the making of separate files(.h,.m) as much as possible ... and I erroneously concluded that the only way to do that was via the construction of multiple Controllers within IB. It turns out that that is one means when it

Re: What is the best way?

2008-07-15 Thread Ronnie B
awakeFromNib was my first guess. Thanks for the pointers. On Mon, Jul 14, 2008 at 4:07 PM, Scott Ribe <[EMAIL PROTECTED]> wrote: > > Thats correct. The main window is not covered up. The second window is > not > > modal I agree. In the second window I just need to collect some > additional

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Antonio Nunes
On 15 Jul 2008, at 12:25, Jon Buys wrote: Thanks for your help, I'm going through your code now, comparing it to my old code and reading the documentation. NSUnionRect doesn't seem to be much help in the docs though: "Returns the smallest rectangle that completely encloses both aRect and

IBPlugin cannot load

2008-07-15 Thread Anders Lassen
Hi, I am pretty new to Xcode, and I hoped that I could create some custom controls using the Interface Builders plugin facility. But ... After completing all step in Chapter 2 in "Interface Builder Plug-In Programming Guide", I cannot load the Plug-In. I get a error dialog saying: "The

Re: Toolbar code in separate Controller?

2008-07-15 Thread Graham Cox
On 15 Jul 2008, at 11:13 pm, John Love wrote: To tell you the truth, I *really* prefer calling a category an extension because "extension" just sounds more meaningful to me. Or, maybe just plain, ole, generic "addition". "Category" just sounds like "type of" or a sub-class, but it's not

Re: Toolbar code in separate Controller?

2008-07-15 Thread Graham Cox
On 15 Jul 2008, at 11:33 pm, Graham Cox wrote: Back to NSToolbarItemValidation .. it is not a "type of" MyDocument. So, based on the above, I should not call it a "category" of MyDocument. So what do I call it? Is it an "extension" of MyDocument? No, it's a category on MyDocument.

Re: [Q] Any document that shows differences of Cocoa programming for Mac and for the iPhone/iPod touch?

2008-07-15 Thread Stefan Arentz
On Jul 14, 2008, at 11:50 PM, Stefan Arentz wrote: On Jul 14, 2008, at 4:15 PM, JongAm Park wrote: ... (Well, I just looked up "NSViewController" document and it says that it was added to the Leopard. Is there any document which explains why it is added and how the programming model is c

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Stefan Arentz
On Jul 15, 2008, at 2:44 AM, Jeff Brown wrote: Hi Jon Just an aside - does Hillegass, Third Edition teach you Core Data? The blurb on Amazon says it does but when I looked at the index online it didn't mention Core Data. No it does not teach you Core Data. There are two Core Data chapters

Re: how to add modal dialog once application begin to run

2008-07-15 Thread Scott Ribe
In the controller for the main window, I'd put an awakeFromNib: method that uses NSApplication's beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo: method to display it as a sheet. Although if it's as simple as you described, I'd skip the nib & controller for the modal dialog, and

Re: Core Animation: Disabling Implicit Animations

2008-07-15 Thread Chilton Webb
Hi, I am in the same boat. I have an NSTextView inside an NSScrollView that shows the default transitions when new text is added, or when the scroll view is resized. I don't want that. However, I can't figure out where to override the default transition. I subclassed both the NSTextView an

Re: Toolbar code in separate Controller?

2008-07-15 Thread Graham Cox
I should be careful about claiming what I told you and then posting code that definitely did *NOT* come from me. What on earth is a delegator? Do you mean 'delegate'? I believe that is the terminology I used, and with good reason - it's the normal jargon for this design pattern (not just on

Re: Cocoa : Drag/ drop from a table view onto a NSTextfield

2008-07-15 Thread vibhatha v
Hi, I tried using concludeDragOperation method, but for some reason, it is not getting called. I did the following: 1. I created a controller which has a table view that serves as a drag/ drop source. Registered for the dragged types: NSTabularTextPboardType and NSStringPboardType Implemented the

Disc Burns, but is unreadable

2008-07-15 Thread J. Todd Slack
Hi All, (I tried posting to the Disc-Recording List, but no replies.) I have been troubleshooting an issue where I burn a DVD and the burn process happens, but the resulting disc is unreadable once burned. I insert the disc after burning and I am told it is unreadable. This never happened

iPhone: Implementing search and index combo, like Contacts?

2008-07-15 Thread Michael Dupuis
I'm assuming the NDA has been lifted now, so here goes: I'm trying to implement a combination search and index list, in the same way that the 2.0 Contacts application does things, but I'm having trouble getting anything to work as expected. The first problem encountered is that you need to shorten

NSMessagePort Invalidation

2008-07-15 Thread Ryan Brown
NSMessagePort doesn't seem to post the NSPortDidBecomeInvalidNotification notification when the remote port dies. It doesn't seem to matter if the remote port is closed via the invalidate method or by killing the process. The only way I am seeing the notification posted is when I send inval

Re: iPhone: Implementing search and index combo, like Contacts?

2008-07-15 Thread Paul Bailey
Your assumption is sadly incorrect. On Tue, Jul 15, 2008 at 3:48 PM, Michael Dupuis <[EMAIL PROTECTED]> wrote: > I'm assuming the NDA has been lifted now, so here goes: I'm trying to > implement a combination search and index list, in the same way that > the 2.0 Contacts application does things,

Re: iPhone: Implementing search and index combo, like Contacts?

2008-07-15 Thread Michael Kaye
unfortunately it's still in place...no idea when it will be lifted but the moderators have said they will inform us. Sorry mate, I'm desperate to ask questions as well. On 15 Jul 2008, at 15:48, Michael Dupuis wrote: I'm assuming the NDA has been lifted now, so here goes: I'm trying to imple

Re: Toolbar code in separate Controller?

2008-07-15 Thread Andy Lee
On Jul 15, 2008, at 9:13 AM, John Love wrote: To tell you the truth, I *really* prefer calling a category an extension because "extension" just sounds more meaningful to me. Or, maybe just plain, ole, generic "addition". "Category" just sounds like "type of" or a sub-class, but it's not th

Re: [Q] Any document that shows differences of Cocoa, programmiing for Mac and for the iPhone/iPod touch?

2008-07-15 Thread JongAm Park
Thanks for the reply, Mr. Arentz. Yeah.. I read the document but it doesn't really give me some idea on why it is made and why we need to use it. Until the Tiger, views in a NIB file could be loaded, couldn't it? So, I agree with your last comment. :) The NSViewController documentation does a g

Re: iPhone: Implementing search and index combo, like Contacts?

2008-07-15 Thread Steve Christensen
On Jul 15, 2008, at 7:48 AM, Michael Dupuis wrote: I'm assuming the NDA has been lifted now... Nope, still under NDA, as mentioned a few days ago: From: Cocoa Dev Admins <[EMAIL PROTECTED]> Date: July 10, 2008 7:01:39 PM PDT To: Cocoa-Dev List Subject: [Moderator] iPhone SDK is still under

Re: Toolbar code in separate Controller?

2008-07-15 Thread Andy Lee
On Jul 15, 2008, at 10:08 AM, Graham Cox wrote: I should be careful about claiming what I told you and then posting code that definitely did *NOT* come from me. What on earth is a delegator? Do you mean 'delegate'? I believe that is the terminology I used, and with good reason - it's the nor

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Daniel Richman
Stefan Arentz wrote: Hi Jon Just an aside - does Hillegass, Third Edition teach you Core Data? The blurb on Amazon says it does but when I looked at the index online it didn't mention Core Data. No it does not teach you Core Data. There are two Core Data chapters but they are more 'click h

CALayer with checkered background like Photoshop's

2008-07-15 Thread Richard Henry
Hello I'm just beginning with Core Animation so sorry if this is a noob question. I searched but couldn't find anything relevant here or on google. Is it possible to use a CICheckerboardGenerator filter to fill the entire background of a CALayer so that I get a similar effect to that wh

Re: CALayer with checkered background like Photoshop's

2008-07-15 Thread Randall Meadows
On Jul 15, 2008, at 10:19 AM, Richard Henry wrote: Is it possible to use a CICheckerboardGenerator filter to fill the entire background of a CALayer so that I get a similar effect to that which Photoshop has when the content is transparent? I've tried a lot of things but the filters only seem

NSPrintInfo papersize bug?

2008-07-15 Thread Half Activist
Hello everyone, I've been working on a printing code that was working perfectly well under Tiger but now happens to be somewhat defunct but managed to make it back in order. However, I discovered that the papersize value of NSPrintInfo is always inverted, that is I had to swap the width an

Re: Problem on reload data source of a table view

2008-07-15 Thread JArod Wen
You are right. I found that the - tableView:objectValueForTableColumn:row: has never been called... Any way to fix this problem? On Jul 13, 2008, at 1:43 AM, Jens Alfke wrote: On 12 Jul '08, at 10:35 PM, JArod Wen wrote: The problem is that after I update the data source, which is tableS

Re: Problem on reload data source of a table view

2008-07-15 Thread Corbin Dunn
As Jens said, it sounds like you may have a nil dataTable. Check that first. Second, break on: - (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView; and make sure you aren't returning 0, which would cause the other method to not be called at all. corbin On Jul 15, 2008, at 9:32

Re: KVV and the missing Discard Changes button

2008-07-15 Thread Steve Green
On Jul 15, 2008, at 3:15 AM, Scott Anguish wrote: On 14-Jul-08, at 7:36 PM, Steve Green wrote: It is not the case.. they both use bindings but in the case where I only see 1 button, the NSTextField and bindings are created programatically. Neither bind through controllers. why? (NS*)Con

Re: Problem on reload data source of a table view

2008-07-15 Thread JArod Wen
Hi Corbin, Thanks for fast reply! Just as Jens said, I have checked the table and I am sure that it is not nil: Printing description of dataTable: (gdb) continue I also debugged the table source and I can get the count correctly(not zero) 2008-07-15 13:05:23.683 Roboplasm[1892:813]

Re: Problem on reload data source of a table view

2008-07-15 Thread j o a r
On Jul 15, 2008, at 10:17 AM, JArod Wen wrote: Thanks for fast reply! Just as Jens said, I have checked the table and I am sure that it is not nil: Printing description of dataTable: (gdb) continue You should probably also verify that the NSTableView knows where to get data from - Usin

Re: [Q] Any document that shows differences of Cocoa, programmiing for Mac and for the iPhone/iPod touch?

2008-07-15 Thread Michael Ash
On Tue, Jul 15, 2008 at 11:29 AM, JongAm Park <[EMAIL PROTECTED]> wrote: > Thanks for the reply, Mr. Arentz. > Yeah.. I read the document but it doesn't really give me some idea on why it > is made and why we need to use it. > Until the Tiger, views in a NIB file could be loaded, couldn't it? The

Re: Problem on reload data source of a table view

2008-07-15 Thread JArod Wen
The dataSource of TableView is connected to tableSource. There is a TableController containing two IBOutlets to both tableSource and dataTable. Then dataTable.dataSource is connected to tableSource in IB. Anything I lost here? On Jul 15, 2008, at 1:26 PM, j o a r wrote: On Jul 15, 2008,

Re: KVV and the missing Discard Changes button

2008-07-15 Thread Quincey Morris
On Jul 15, 2008, at 09:51, Steve Green wrote: On Jul 15, 2008, at 3:15 AM, Scott Anguish wrote: On 14-Jul-08, at 7:36 PM, Steve Green wrote: It is not the case.. they both use bindings but in the case where I only see 1 button, the NSTextField and bindings are created programatically. Ne

Re: Problem on reload data source of a table view

2008-07-15 Thread j o a r
On Jul 15, 2008, at 10:36 AM, JArod Wen wrote: The dataSource of TableView is connected to tableSource. There is a TableController containing two IBOutlets to both tableSource and dataTable. Then dataTable.dataSource is connected to tableSource in IB. Anything I lost here? You might wan

Detect/Disable Font Fallbacks in NSLayoutManager

2008-07-15 Thread Chip Bradford
I'm working on a program to generate bitmap font textures to use with OpenGL to render text. I have things mostly working, but I seem to run into issues when a font doesn't contain a glyph for a certain character and OS X uses a fallback font to render the glyph (at least, I believe this is

Re: CALayer with checkered background like Photoshop's

2008-07-15 Thread Jens Alfke
On 15 Jul '08, at 9:19 AM, Richard Henry wrote: Is it possible to use a CICheckerboardGenerator filter to fill the entire background of a CALayer so that I get a similar effect to that which Photoshop has when the content is transparent? I think it would be more efficient to set the layer'

Re: Toolbar code in separate Controller?

2008-07-15 Thread John Love
> Well, what are you asking? Does the code work or not? If not, what are the > symptoms? > Yes, it works without a shred of doubt .. I'm just trying to get my hands around "Category" .. there is no doubt whatsoever that unless I use "Category", no one will know what I'm talking about .. it just wo

Re: Keypaths

2008-07-15 Thread Hamish Allan
On Tue, Jul 15, 2008 at 11:48 AM, Niklas Saers <[EMAIL PROTECTED]> wrote: > Hi, > I've implemented a little tree through my class Node that contains the > properties NSString* name and NSMutableArray *subnodes > > I'd love to say something like "Give me the nodes that have a grand-father > named B

Re: how to add modal dialog once application begin to run

2008-07-15 Thread Hamish Allan
On Tue, Jul 15, 2008 at 1:15 PM, 李国良 <[EMAIL PROTECTED]> wrote: > the situation like this: when user launch the application, the main > window open, before user click any button in the window, there is a modal > dialog attached to the main window, warning any operation will be > un-protected..., s

Re: Detect/Disable Font Fallbacks in NSLayoutManager

2008-07-15 Thread Douglas Davidson
On Jul 15, 2008, at 10:54 AM, Chip Bradford wrote: What seems to be happening is the [NSString drawAtPoint:withAttributes:] method is happily performing font substitution to render the missing glyphs, and [NSLayoutManager glyphAtIndex:] method is giving me the glyphID in that fallback font

[[NSDate alloc] initWithString] crashes with valid string

2008-07-15 Thread Markus Spoettl
Hi List, I've a problem I am failing to track down (let alone understand) for a couple of weeks now. My application imports XML files that contain - amongst other things - dates. Once in a while, the string to date conversion causes a crash (EXC_BAD_ACCESS): #0 0x90b1da14 in ures_g

Re: KVO notifications and threads

2008-07-15 Thread Jerry Isdale
So I'm a bit confused by the ability to do bindings in IB, but if the data is updated anywhere but on the MainThread, your program may be in trouble. This kinda blows out the use of KVO bindings in the UI to me. If data comes in over the network, then the receiving tool must do the actual s

Re: Problem on reload data source of a table view

2008-07-15 Thread JArod Wen
After the application was running, I debugged the code and checked the classes of TableController and TableSource. They are all connected in runtime. For table view, I only connected it to TableController -> dataTable, and its dataSource to TableController -> tableSource. All of them are

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Tommy Nordgren
On 15 jul 2008, at 13.25, Jon Buys wrote: ...snip Drawing a new rect on every mouseDown is the main problem I'm having now, but I think it's because I'm not adding the rect to an NSMutableArray. I'm working on that now, but I've run out of time this morning. How can I add a rect to an

Re: Detect/Disable Font Fallbacks in NSLayoutManager

2008-07-15 Thread Chip Bradford
On Jul 15, 2008, at 2:13 PM, Douglas Davidson wrote: On Jul 15, 2008, at 10:54 AM, Chip Bradford wrote: What seems to be happening is the [NSString drawAtPoint:withAttributes:] method is happily performing font substitution to render the missing glyphs, and [NSLayoutManager glyphAtIndex:

Re: KVV and the missing Discard Changes button

2008-07-15 Thread Steve Green
On Jul 15, 2008, at 1:41 PM, Quincey Morris wrote: On Jul 15, 2008, at 09:51, Steve Green wrote: On Jul 15, 2008, at 3:15 AM, Scott Anguish wrote: On 14-Jul-08, at 7:36 PM, Steve Green wrote: It is not the case.. they both use bindings but in the case where I only see 1 button, the NSTextF

Re: Problem on reload data source of a table view

2008-07-15 Thread Andy Lee
On Jul 15, 2008, at 2:45 PM, JArod Wen wrote: After the application was running, I debugged the code and checked the classes of TableController and TableSource. They are all connected in runtime. For table view, I only connected it to TableController -> dataTable, and its dataSource to Tab

NSDateFormatter -dateFromString Question

2008-07-15 Thread Steve Cronin
Folks; NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init] ; [dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_0]; [dateFormatter setDateFormat:@"%m/%d/%Y %H:%M:%S %z"]; ... NSDate *myDate = [dateFormatter dateFromString:@"06/27/2008 02:51:52 -0500"]; myDate = 06/27/20

Re: custom NSButtonCell behaves different/wrong on Leopard

2008-07-15 Thread Ken Ferry
Hi Mark, Could you file a bug with a test app please? There are basically two reasons for a button to display alternate content. (1) The cell's state is not NSOffState and the showsStateBy mask contains NSContentsCellMask. (2) The cell is highlighted and the highlightsBy mask contains NSContents

Re: KVV and the missing Discard Changes button

2008-07-15 Thread Kyle Sluder
> Nope.. same options. Validation works great it's just that I don't get the > Cancel Change button in one of the apps. Does the app missing the button have a custom view or field in the binding? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Kyle Sluder
On Tue, Jul 15, 2008 at 2:54 PM, Tommy Nordgren <[EMAIL PROTECTED]> wrote: > Don't even think about storing the NSRects in an NSArray. > NSRect is a struct -- not a class NSRect can be wrapped up in an NSValue, as I mentioned above, and stored in an array. KVC will automatically do the same for p

Re: Keypaths

2008-07-15 Thread Kyle Sluder
On Tue, Jul 15, 2008 at 8:41 AM, Hamish Allan <[EMAIL PROTECTED]> wrote: > If you were using Core Data, expressing your familial relations as > to-many relationships with inverses, it would be straightforward to > achieve the query you want (and indeed, to create a GUI for that > query). In fact,

Re: Toolbar code in separate Controller?

2008-07-15 Thread Kyle Sluder
On Tue, Jul 15, 2008 at 2:01 PM, John Love <[EMAIL PROTECTED]> wrote: > Programmers are rarely accused of using "plain English" all the time, > anyway. In fact we're notorious for redefining already well-defined words. That's the fun of English; there is only usage, which makes it a very ambiguous

Mystery Thread - how to debug

2008-07-15 Thread James Bucanek
I'm looking for any thoughts or feedback on this problem. I have an application that starts lots of threads. While it's cleaning up, it shuts most of them down. This is done through NSConditionalLock objects (i.e. tell task to quit, wait for conditional lock to transition to stopped state, whi

Re: Toolbar code in separate Controller?

2008-07-15 Thread Andy Lee
On Jul 15, 2008, at 2:01 PM, John Love wrote: it just would be nice if Cocoa's "Category" would meld with Merriam Webster's definition of "category" .. probably too much to ask. It does. Did you see my earlier reply? Programmers are rarely accused of using "plain English" all the time, anyw

Re: KVV and the missing Discard Changes button

2008-07-15 Thread Steve Green
On Jul 15, 2008, at 4:01 PM, Kyle Sluder wrote: Nope.. same options. Validation works great it's just that I don't get the Cancel Change button in one of the apps. Does the app missing the button have a custom view or field in the binding? No.. they are both NSTextFields directly bound t

Re: [[NSDate alloc] initWithString] crashes with valid string

2008-07-15 Thread Kyle Sluder
On Tue, Jul 15, 2008 at 2:36 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: > Any ideas what could be causing something like this? Doesn't look like it's your fault, unless for some reason the string is being dealloc'd under the call stack's feet -- make sure that the call stack eventually winds up

Re: [[NSDate alloc] initWithString] crashes with valid string

2008-07-15 Thread Andy Lee
On Jul 15, 2008, at 2:36 PM, Markus Spoettl wrote: This specific crash happened with the string: "2008-05-09 19:47:47 +", which seems perfectly valid input for NSDate -initWithString:. Works for me: - (void)awakeFromNib { NSDate *date = [[NSDate alloc] initWithString:@"2008-05-09 19

Re: NSDateFormatter -dateFromString Question

2008-07-15 Thread Chris Kane
Once you did the -setFormatterBehavior:NSDateFormatterBehavior10_0, setDateFormat: became a no-op. setDateFormat: is a 10.4-behavior formatter method. Per the doc: http://developer.apple.com/documentation/Cocoa/Conceptual/DataFormatting/Articles/dfDateFormatting10_4.html#//apple_ref/doc/ui

Inter-thread communications (live/deadlock?)

2008-07-15 Thread Nick Kitchener
Hi, I have a problem with inter-thread communications with NSMachPort/ NSPortMessage - it works one way after initially working both ways.. The application has a main parent thread that spawns a child thread. The child thread runs inside an object instance. The parent passes it's NSMachPor

Duplicate rows appearing in outlineview after creating new Entity in moc, why?

2008-07-15 Thread Sean McBride
Hi all, I have an outlineview populated by binding to a treecontroller. It displays CoreData entities of type "Person". "Person" has 'parent' and 'children' relationships. Displaying everything works fine. Now the outlineview must support drops. In my windowcontroller, I implement outlineView

Re: how to add modal dialog once application begin to run

2008-07-15 Thread Erik Buck
Have a look at http://www.stepwise.com/Articles/2006/eb1/index.html ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Re: custom NSButtonCell behaves different/wrong on Leopard

2008-07-15 Thread Mark Sanvitale
Well (much experimentation and head-scratching later), it turns out that this issue is not really a bug in Leopard, rather, it appears to be a case where a bug in Tiger allowed my buggy code to execute flawlessly on Tiger while the lack of this bug on Leopard caused the same buggy code to n

Newbie: How to understand Xcode's documentation

2008-07-15 Thread Phil Faber
Hi all. As a relative newbie I'm eager to learn but my biggest stumbling block is understanding that the XCode's Help>Documentation actually means; can someone guide me? For example, if I want to put a substring of a larger string (eg. "ertyu" from "qwertyuiop") into a second field, I sea

Re: [Q] Any document that shows differences of Cocoa, programming for Mac and for the iPhone/iPod touch?

2008-07-15 Thread JongAm Park
Oh.. Thank you very much for the links. Actually I know the KATI blog. I even bookmarked it before, but I didn't noticed the article! I found her blog from flickr link at Cocoa Head LA! http://www.flickr.com/photos/kepi/2586194046/ What is more interesting here is that our beloved phone from a

Re: Newbie: How to understand Xcode's documentation

2008-07-15 Thread Jason Sallis
You're not having a problem reading the docs. You're having a problem with your basic understanding of Objective-C. There's nothing to "convert" and what you're reading is "actual code". I'd recommend taking a step back and doing some reading before you go any further. Perhaps here: http://develop

Re: Newbie: How to understand Xcode's documentation

2008-07-15 Thread Dave DeLong
Hi Phil, You're right: the documentation can take some getting used to. Here are some tips: When you see a method declared with a "-" out in front, such as: - (NSString *) substringWithRange:(NSRange)range; That means that you can only use that method on an instance of the class. For example: N

Re: [[NSDate alloc] initWithString] crashes with valid string

2008-07-15 Thread Tony Becker
I didn't see any code sniglet for this, but it's not something simple like: [[NSDate alloc] initWithString:"..."]; vs [[NSDate alloc] initWithString:@"..."]; i.e.: passing CString vs NSString? On Jul 15, 2008, at 4:12 PM, Kyle Sluder wrote: On Tue, Jul 15, 2008 at 2:36 P

Re: Newbie: How to understand Xcode's documentation

2008-07-15 Thread Nick Zitzmann
On Jul 15, 2008, at 4:19 PM, Phil Faber wrote: - (void)getCharacters:(unichar *)buffer range:(NSRange)aRange [...] Can anyone explain how I can 'decode' the usage information shown in the documentation into real code? Not just for this example, but in general. OK, let's do this one par

Re: Inter-thread communications (live/deadlock?)

2008-07-15 Thread Ken Ferry
Hi Nick, It sounds like this would be relatively easy to bundle up as a test app. If you can do so and post it somewhere, I'll think you'll have a better chance of a helpful response. Also, are you aware of -[NSObject performSelector:onThread:withObject:] and friends? > Assumption #1 - as the t

Re: Disc Burns, but is unreadable

2008-07-15 Thread Kevin Elliott
On Jul 15, 2008, at 7:44 AM, J. Todd Slack wrote: [burn setArguments:[NSArray arrayWithObjects:@"burn",imagePath,burnVerify,@"-speed",burnSpeed,@"- verbose",@"-noforceclose",@"-device",drivePath,nil]]; My first guess is that the burnVerify syntax has changed. Glancing at the man page for

NSWindow delegate of unexpected class

2008-07-15 Thread Shawn Erickson
Does anyone know of a third-party haxie (input manager, etc.) that when loaded into an application hijacks the delegate of NSWindow instances? ...something that replaces the window's delegate with one of its own objects that presumable forwards messages onto our delegate. We happen to have some de

Re: NSWindow delegate of unexpected class

2008-07-15 Thread Shawn Erickson
On Tue, Jul 15, 2008 at 4:25 PM, Shawn Erickson <[EMAIL PROTECTED]> wrote: > Does anyone know of a third-party haxie (input manager, etc.) that > when loaded into an application hijacks the delegate of NSWindow > instances? ...something that replaces the window's delegate with one > of its own obje

Flicker from NSResponder Chain?

2008-07-15 Thread John MacMullin
I read in the archives of a method to implement Tiger's approach to tabbing through a table in Leopard. While my approach works as to the tabbing, it is slightly different than the approach discussed in the archives. It also results in a problem that is discussed below. I have two tables

Re: [[NSDate alloc] initWithString] crashes with valid string

2008-07-15 Thread Nick Zitzmann
On Jul 15, 2008, at 12:36 PM, Markus Spoettl wrote: Any ideas what could be causing something like this? In addition to what everyone else has suggested, have you tried running your application under Guard Malloc to make sure memory is not being corrupted? I've caught all sorts of weird

Re: Keypaths

2008-07-15 Thread Scott Anguish
On 15-Jul-08, at 4:08 PM, Kyle Sluder wrote: On Tue, Jul 15, 2008 at 8:41 AM, Hamish Allan <[EMAIL PROTECTED]> wrote: If you were using Core Data, expressing your familial relations as to-many relationships with inverses, it would be straightforward to achieve the query you want (and indeed,

Blue lines

2008-07-15 Thread Andrew Thompson
How do Interface Builder and Quartz Composer draw the blue line connections from object to object? I have been looking through the APIs, but I can't find anything that looks right. I thought of just drawing my own line on a custom view (shouldn't be that hard), but interface builder manages to do

Re: Blue lines

2008-07-15 Thread Shawn Erickson
On Tue, Jul 15, 2008 at 5:31 PM, Andrew Thompson <[EMAIL PROTECTED]> wrote: > I thought of just drawing my own line on a custom view (shouldn't be that > hard), but interface builder manages to do it between objects that aren't > connected by ANY view, and I am not sure how to do that. > > I am tr

Re: Blue lines

2008-07-15 Thread j o a r
On Jul 15, 2008, at 5:31 PM, Andrew Thompson wrote: How do Interface Builder and Quartz Composer draw the blue line connections from object to object? I have been looking through the APIs, but I can't find anything that looks right. I thought of just drawing my own line on a custom view (

Re: Blue lines

2008-07-15 Thread Greg Titus
Interface Builder actually makes a couple of windows to do that. One wide window for the horizontal part of the line, and another tall and thin window for the vertical part. The positions of the windows change as your mouse moves, and they have simple views inside that draw basically just b

Re: Blue lines

2008-07-15 Thread Scott Anguish
On 15-Jul-08, at 8:31 PM, Andrew Thompson wrote: How do Interface Builder and Quartz Composer draw the blue line connections from object to object? I have been looking through the APIs, but I can't find anything that looks right. I can't say how either app is written.. if you're drawing

Re: Newbie: How to understand Xcode's documentation

2008-07-15 Thread Graham Cox
Along with what others have said, for this specific task you would probably want to use: -(NSString*) substringWithRange:(NSRange) range; instead. It's fairly rare to break down strings into individual characters. So with your newly learned knowledge of Objective-C, you could now write a

Re: [[NSDate alloc] initWithString] crashes with valid string

2008-07-15 Thread Markus Spoettl
On Jul 15, 2008, at 5:00 PM, Nick Zitzmann wrote: In addition to what everyone else has suggested, have you tried running your application under Guard Malloc to make sure memory is not being corrupted? I've caught all sorts of weird behavior in applications before by using Guard Malloc. T

[OT] XML GUI editor [was Re: Blue lines]

2008-07-15 Thread Gary L. Wade
>On 15-Jul-08, at 5:36 PM, Scott Anguish wrote: > >Please, please an XML GUI editor. :-) Then the HTML version can be >done via an XML schema, and users needing an XML editor will be all >good. Hmmm...veering off-topic and divergent from the original question, but how would you personally exp

Re: [[NSDate alloc] initWithString] crashes with valid string

2008-07-15 Thread Nick Zitzmann
On Jul 15, 2008, at 7:28 PM, Markus Spoettl wrote: Thanks for the suggestion, I just tried this and now it crashes in initialization of NSXMLDocument (see call stack below). My (unfounded) suspicion was that the XMLDocument somehow was responsible for all the trouble. Have you reported

Re: Problem on reload data source of a table view

2008-07-15 Thread JArod Wen
Finally the problem is solved. There is a missing line to set the identifier of each column so -tableView:objectValueForTableColumn:row: always return nil since it cannot retrieve the correct key of column. Thanks for all of your helps, and wish this helpful to any other guys. On Jul 15, 20

  1   2   >