Re: Calling an Apple Detector

2008-07-15 Thread Jens Alfke
On 15 Jul '08, at 1:05 AM, Laurent Cerveau wrote: 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. There is no public API for Data Detectors. I'm expecting

Re: Text selection in NSTableView

2008-07-15 Thread Jens Alfke
On 15 Jul '08, at 10:57 PM, Satoshi Nakagawa wrote: But I cannot implement text selection on it. Is there a good way to implement it? You'd need to subclass NSTextFieldCell to inherit its behavior. Text layout is very, very complicated and you definitely don't want to try to implement it

Re: Log Into a Website

2008-07-15 Thread Jens Alfke
On 15 Jul '08, at 10:09 PM, Bridger Maxwell wrote: I am writing a Cocoa app that will access a user's account that is set up on a server. How do I log in and keep logged in? Do I keep a connection open? It depends on the protocol you're using. I think you mean HTTP, in which case the ans

Text selection in NSTableView

2008-07-15 Thread Satoshi Nakagawa
Hi, I have a custom table view cell. The cell made of an image and some text. The text includes URL link, it should be rendered like a html link. To implement it, I made a custom cell class. It renders an image and text in drawInteriorWithFrame:inView:. But I cannot implement text selection on i

Re: how do I make chat bubbles using a custom cell

2008-07-15 Thread Jens Alfke
On 15 Jul '08, at 8:08 PM, TARUN CHAPLOT wrote: I am very new to objective C and working on some application which needs to create Chat bubbles similar to iChat. Can anybody help me to find some documentation or the sample code which will help me to make chat bubbles using custom cell. A c

Re: Redrawing CALayer subclass when super layer is scaled

2008-07-15 Thread Rick Mann
On Jul 9, 2008, at 12:59:33, David Duncan wrote: A tiled layer will trigger redraws when it detects that higher (or lower) resolution content is available. It caches this drawing as well, so you won't get called to redraw just because of a resize of content at that level is already availab

Re: how do I make chat bubbles using a custom cell

2008-07-15 Thread Andrew Farmer
On 15 Jul 08, at 21:50, Nick Zitzmann wrote: On Jul 15, 2008, at 9:08 PM, TARUN CHAPLOT wrote: I am very new to objective C and working on some application which needs to create Chat bubbles similar to iChat. Can anybody help me to find some documentation or the sample code which will help me

Log Into a Website

2008-07-15 Thread Bridger Maxwell
Hey, I am writing a Cocoa app that will access a user's account that is set up on a server. How do I log in and keep logged in? Do I keep a connection open? Also, from the server side (php, ruby, etc.) can I use sessions to keep track of a user being logged in from a Cocoa application, or does that

Adding Unit Tests to iPhone applications for use with the iPhone Simulator

2008-07-15 Thread Randy
I am working on an iPhone application and am trying to add unit tests. I followed the recently updated (for Xcode 3.0) instructions by Chris Hanson at http://chanson.livejournal.com/120263.html It doesn't seem to be working. The test target doesn't build when I build the app and (needless to

Re: how do I make chat bubbles using a custom cell

2008-07-15 Thread Nick Zitzmann
On Jul 15, 2008, at 9:08 PM, TARUN CHAPLOT wrote: I am very new to objective C and working on some application which needs to create Chat bubbles similar to iChat. Can anybody help me to find some documentation or the sample code which will help me to make chat bubbles using custom cell.

Re: Blue lines (nice example app including quartz compositions)

2008-07-15 Thread Patrick Mau
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 (shouldn't be that > hard),

how do I make chat bubbles using a custom cell

2008-07-15 Thread TARUN CHAPLOT
Hello Everyone I am very new to objective C and working on some application which needs to create Chat bubbles similar to iChat. Can anybody help me to find some documentation or the sample code which will help me to make chat bubbles using custom cell. Any help would be greatly appreciated.

Re: Mystery Thread - how to debug

2008-07-15 Thread Scott Ribe
> Any ideas? Cold comfort perhaps, but the way I've debugged similar problems in the past involved *lots* of logging, which of course can affect the bug ;-( -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voice ___ Cocoa-

Re: Hillegass, Third Edition, Chapter 18

2008-07-15 Thread Jason Stephenson
Tommy Nordgren wrote: ... Don't even think about storing the NSRects in an NSArray. NSRect is a struct -- not a class Instead store NSBezierPath instances, or create an oval class. If you're feeling ambitious, you'd make your own class to hold the oval information, such as its NSRect, NSColor

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

2008-07-15 Thread Markus Spoettl
On Jul 15, 2008, at 6:33 PM, Nick Zitzmann wrote: Have you reported this to Apple through ? That is very strange behavior that obviously shouldn't be happening. I will do this once I can confirm my crashes are gone. Obviously this takes a little extra effort be

Re: Newbie: How to understand Xcode's documentation

2008-07-15 Thread Jens Alfke
On 15 Jul '08, at 3:19 PM, Phil Faber wrote: - (void)getCharacters:(unichar *)buffer range:(NSRange)aRange My challenge is that I don't know what this means or how to convert this into actual code. So I have to keep guessing which surely can't be the preferred way to learn! What you're

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

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

[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 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

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: 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: 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 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 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

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: 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,

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

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: 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

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: 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

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: 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: [[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 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: 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: [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

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: 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

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

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

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

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

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: [[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: 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: 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

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 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

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: 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: 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: 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

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: 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

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: 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: 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: 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: 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

[[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: 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

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: 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: 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: 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'

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: 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

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 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: [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 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: 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: 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 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: 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

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: 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

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: 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

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: 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: [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: 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: 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: 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,

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

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

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

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

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: 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: 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: 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: [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: 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: 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

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: 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

  1   2   >