Re: Updating a progress bar from a code loop

2008-06-09 Thread j o a r
On Jun 9, 2008, at 11:24 PM, Graham Cox wrote: I have a lengthy routine that I'd like to show a progress bar for. The routine runs in a while() loop, and calls a delegate which implements the progress update. My progress window opens OK but nothing gets updated, though I know that it's get

Re: JNI trouble

2008-06-09 Thread Andrew Farmer
On 09 Jun 08, at 23:15, brien colwell wrote: hi all, I'm having some trouble compiling a JNI lib on Osx. I get the following "Undefined synbols" errors ... does anyone have a pointer? Very much appreciated! void *a_pointer = 0x90A4BCED; No, but seriously... cc -bundle -I/System/Library/F

Re: Detect editing a outline view cell

2008-06-09 Thread Ivan C Myrvold
To answer my own question: Use the NSOutlineView delegate method outlineView:shouldEditTableColumn:item: Ivan Den 10. juni. 2008 kl. 08:11 skrev Ivan C Myrvold: I have been trying to find a solution to this for a long time: I want to have a action method to execute when I doubleclick in a

Updating a progress bar from a code loop

2008-06-09 Thread Graham Cox
Hi all, I have a lengthy routine that I'd like to show a progress bar for. The routine runs in a while() loop, and calls a delegate which implements the progress update. My progress window opens OK but nothing gets updated, though I know that it's getting the correct values set. I'm assum

Re: crash on command-W

2008-06-09 Thread James W. Walker
On Jun 9, 2008, at 10:44 PM, Joseph Kelly wrote: Toggle the release when closed setting on the window nib? See the docs for -[NSWindow setReleasedWhenClosed:] Tried that, didn't seem to make any difference to the crash. (Right now I have it off, and with the controller autorelease fix, I

JNI trouble

2008-06-09 Thread brien colwell
hi all, I'm having some trouble compiling a JNI lib on Osx. I get the following "Undefined synbols" errors ... does anyone have a pointer? Very much appreciated! Brien cc -bundle -I/System/Library/Frameworks/JavaVM.framework/Headers -o libName.jnilib -framework JavaVM JNITabletjnilib.m Unde

Detect editing a outline view cell

2008-06-09 Thread Ivan C Myrvold
I have been trying to find a solution to this for a long time: I want to have a action method to execute when I doubleclick in an NSOutlineView cell to start editing it. In an ordinary NSTextField delegate method textShouldBeginEditing, but that doesn't work for NSTextCell. Ivan ___

Re: noob q: adding a button to a window programmatically

2008-06-09 Thread Andrew Farmer
On 09 Jun 08, at 22:28, Stuart Malin wrote: Until now I have created my GUIs using IB. I want a better understanding of what goes on "under the hood" of instantiating a Nib, so decided to try adding a button to a window programmatically. I can't get the button to appear, and so presume I am

Re: noob q: adding a button to a window programmatically

2008-06-09 Thread Graham Cox
You haven't set the button's frame size. If you use -initWithFrame: and pass something sensible that should work. Note - because NSButton subclasses NSView, the designated initializer for NSView (initWithFrame;) must be used. hth, Graham On 10 Jun 2008, at 3:28 pm, Stuart Malin wrote: U

Re: noob q: adding a button to a window programmatically

2008-06-09 Thread Bob Warwick
On 10-Jun-08, at 2:28 AM, Stuart Malin wrote: Until now I have created my GUIs using IB. I want a better understanding of what goes on "under the hood" of instantiating a Nib, so decided to try adding a button to a window programmatically. I can't get the button to appear, and so presume

Re: crash on command-W

2008-06-09 Thread Joseph Kelly
Toggle the release when closed setting on the window nib? See the docs for -[NSWindow setReleasedWhenClosed:] Joe K. On Jun 9, 2008, at 10:30 PM, James W. Walker wrote: On Jun 9, 2008, at 9:18 PM, Andrew Farmer wrote: On 09 Jun 08, at 21:03, James W. Walker wrote: I'm getting an access v

Re: 3rd Party Nonsense (was Re: Regular Expressions?)

2008-06-09 Thread Michael Ash
On Mon, Jun 9, 2008 at 8:17 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 8 Jun '08, at 3:39 AM, Michael Ash wrote: > >> I do this with a fair amount of regularity. NSString is unsuitable for >> working with data whose encoding is unknown or doubtful, and NSData >> doesn't have any string-like f

Re: crash on command-W

2008-06-09 Thread James W. Walker
On Jun 9, 2008, at 9:18 PM, Andrew Farmer wrote: On 09 Jun 08, at 21:03, James W. Walker wrote: I'm getting an access violation (inside NSTableView) when I close a window by command-W but not when I close it by clicking the close widget. I don't understand why it would make a difference.

noob q: adding a button to a window programmatically

2008-06-09 Thread Stuart Malin
Until now I have created my GUIs using IB. I want a better understanding of what goes on "under the hood" of instantiating a Nib, so decided to try adding a button to a window programmatically. I can't get the button to appear, and so presume I am missing some fundamental concept. Here's

Re: 3rd Party Nonsense (was Re: Regular Expressions?)

2008-06-09 Thread Stuart Malin
On Jun 9, 2008, at 9:11 PM, Adam R. Maxwell wrote: I thought I read on the Xcode users list that Xcode is using ICU for regex find-and-replace, so it's too bad the rest of us can't use it. I recall the same. And further, I am of the understanding that NSPredicate uses ICU for its pattern m

Re: Expanding Window/View

2008-06-09 Thread Andrew Farmer
On 09 Jun 08, at 21:07, SD wrote: resize the window (is there a way to do this nicely like System Preferences does) Yep. -[NSWindow setFrame:display:animate:]. CoreAnimation can probably do the job too, but it's unnecessary if all you want is a smooth resize. ___

Re: crash on command-W

2008-06-09 Thread Andrew Farmer
On 09 Jun 08, at 21:03, James W. Walker wrote: I'm getting an access violation (inside NSTableView) when I close a window by command-W but not when I close it by clicking the close widget. I don't understand why it would make a difference. I have a nib containing a window and an NSWindowCon

Re: Expanding Window/View

2008-06-09 Thread j o a r
On Jun 9, 2008, at 9:07 PM, SD wrote: I'm going to be creating a Cocoa ui that will need to be able to display, side-by-side, a variable number of copies of the same view (ie: the view will have labels, and text fields and buttons but each view will show different data). See:NSColle

Re: symbol(s) not found

2008-06-09 Thread kim
On Jun 9, 2008, at 7:57 PM, Jens Alfke wrote: On 8 Jun '08, at 7:48 PM, kim wrote: As near as I can tell nothing at all has changed, the Calculate object is properly defined (no compiler warnings or errors) but it would seem that the symbol table is not up to date? (Not to nit-pick, but

Re: 3rd Party Nonsense (was Re: Regular Expressions?)

2008-06-09 Thread Mark Munz
On 6/9/08, Adam R. Maxwell <[EMAIL PROTECTED]> wrote: > > Unfortunately, I think filing bug reports on this is a waste of time at > this point. I'm still using AGRegex, which is based on a pretty ancient > PCRE, but it's predated by (at least) MOKit and OFRegularExpression: Filing bugs against t

Re: IBPlugin error

2008-06-09 Thread Jonathan Hess
On Jun 9, 2008, at 9:03 PM, Jonathan Hess wrote: Hey Steve - You would encounter a similar problem if you directly launched an application built from a project that had an application and framework target where the application linked the framework. The reason for this is that frameworks

Expanding Window/View

2008-06-09 Thread SD
Hey all, I'm going to be creating a Cocoa ui that will need to be able to display, side-by-side, a variable number of copies of the same view (ie: the view will have labels, and text fields and buttons but each view will show different data). Is there an easy and nice way to do this in Cocoa

Re: IBPlugin error

2008-06-09 Thread Jonathan Hess
Hey Steve - You would encounter a similar problem if you directly launched an application built from a project that had an application and framework target where the application linked the framework. The reason for this is that frameworks have install paths. An Install path is a location a

crash on command-W

2008-06-09 Thread James W. Walker
I'm getting an access violation (inside NSTableView) when I close a window by command-W but not when I close it by clicking the close widget. I don't understand why it would make a difference. I have a nib containing a window and an NSWindowController subclass. It's not a document-based a

Re: 3rd Party Nonsense (was Re: Regular Expressions?)

2008-06-09 Thread Adam R. Maxwell
On Jun 9, 2008, at 8:12 PM, Jens Alfke wrote: On 7 Jun '08, at 10:24 AM, Kyle Sluder wrote: 1) There are certain basics like regex support that people are upset at Apple for not implementing because it seems like such an important part of the concept of strings. Agreed, and I made this argu

Re: [Moderator] reminder - WWDC content other than the keynote is covered by NDA

2008-06-09 Thread Scott Anguish
On Jun 9, 2008, at 2:15 PM, Scott Anguish wrote: one more followup since I've been asked a couple of times now... the iPhone SDK NDA is still in effect. discussion of those frameworks here is still embargoed. ^^^ ___ Cocoa-de

Re: 3rd Party Nonsense (was Re: Regular Expressions?)

2008-06-09 Thread Jens Alfke
On 8 Jun '08, at 3:39 AM, Michael Ash wrote: I never cared about the lack of regex support personally, although I understand that people do use them. As far as a blessed solution goes, "man regex" gives you a library that's in libSystem and is part of POSIX, so it's as supported as you can get.

Re: 3rd Party Nonsense (was Re: Regular Expressions?)

2008-06-09 Thread Jens Alfke
On 7 Jun '08, at 10:24 AM, Kyle Sluder wrote: 1) There are certain basics like regex support that people are upset at Apple for not implementing because it seems like such an important part of the concept of strings. Agreed, and I made this argument many times while there. Part of the probl

Re: async NSOperation and NSOperationQueue

2008-06-09 Thread Jens Alfke
On 8 Jun '08, at 5:26 PM, Wayne Shao wrote: So what exactly I should do in the start() method?? Whatever you need to do to start the operation. It should return ASAP since it's not being run on a background thread. If I create a thread, does the operation queue still enforce maxConcurren

Re: symbol(s) not found

2008-06-09 Thread Jens Alfke
On 8 Jun '08, at 7:48 PM, kim wrote: As near as I can tell nothing at all has changed, the Calculate object is properly defined (no compiler warnings or errors) but it would seem that the symbol table is not up to date? (Not to nit-pick, but you mean "class" instead of "object". It does

Re: Cocoa n00b frustrations

2008-06-09 Thread Charles Jenkins
Thank you to everyone who pointed out that I should implement my delegates based on signatures found in the documentation for NSControl, not NSTextField. I got the faulty signatures I used from the section of the documentation labeled 'NSText Delegate Method Implementations'. I guess that from n

Re: totally confused by bindings settings

2008-06-09 Thread Ken Thomases
On Jun 8, 2008, at 8:04 PM, Daniel Child wrote: You could also establish the bindings through File's Owner.delegate.. It amounts to the same thing for this nib. In other nibs, the application delegate won't actually be in that same nib, and so the ability to refer to it via a key path f

Re: async NSOperation and NSOperationQueue

2008-06-09 Thread Ken Thomases
On Jun 8, 2008, at 7:26 PM, Wayne Shao wrote: So what exactly I should do in the start() method?? I think if you don't know, then you shouldn't be configuring your operation as concurrent. I think that Apple chose badly in describing operations as "concurrent". What that really means is

Re: Need help parsing a large text file one line at a time

2008-06-09 Thread Jeff LaMarche
On Jun 9, 2008, at 2:04 PM, Abel J. Almeida wrote: I need help parsing a large text file. I need to examine the file one line at a time. It's a 128MB text file. I used the stringWithContentsOfFile method from the NSString class, but the file is too large and it doesn't seem very optimized to

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Hamish Allan
On Mon, Jun 9, 2008 at 7:39 PM, Chris Hanson <[EMAIL PROTECTED]> wrote: > It is perfectly legal to return an NSMutableArray from a hypothetical > +(NSArray *)array method. > > However, all the sender of that +(NSArray *)array message can know is that > the result can be treated as an NSArray. It

Re: Handle mouse event (click) in CALayer sublayers

2008-06-09 Thread Jens Alfke
The GeekGameBoard sample app demonstrates this. Look in the BoardView class. --Jens // via iPhone On Jun 9, 2008, at 1:41 PM, "Wayne Shao" <[EMAIL PROTECTED]> wrote: If a CALayer has many sublayers, what is the best way to find out the layer that should receive mouse click event?

Re: Need help parsing a large text file one line at a time

2008-06-09 Thread Jens Alfke
You'd need to open the file using NSStream, NSFileHandle or regular c stdio, then read chunks out of it and break them into lines. --Jens // via iPhone On Jun 9, 2008, at 2:04 PM, "Abel J. Almeida" <[EMAIL PROTECTED] > wrote: I need help parsing a large text file. I need to examin

Re: Binding NSMenuItem state in Document-based app

2008-06-09 Thread Jerry Krinock
On 2008 Jun, 09, at 12:57, Quincey Morris wrote: Doing this through bindings involves re-inventing a bit of stuff that NSResponder normally takes care of, but it need not be too difficult. For example, you could Or something like that. Well, last year sometime I wanted to bind some me

Need help parsing a large text file one line at a time

2008-06-09 Thread Abel J. Almeida
I need help parsing a large text file. I need to examine the file one line at a time. It's a 128MB text file. I used the stringWithContentsOfFile method from the NSString class, but the file is too large and it doesn't seem very optimized to me, because what I need is parse one line at a time

Re: Core Data Questions

2008-06-09 Thread Ben Trumbull
All object ivars (except the array for the next lower-level), including those of Shapes, reside in dictionaries. These have certain required properties plus many optional properties, some not currently defined and some possibly not even know to the containing object. Assuming a large fraction

Re: [Moderator] reminder - WWDC content other than the keynote is covered by NDA

2008-06-09 Thread Scott Anguish
one more followup since I've been asked a couple of times now... the iPhone SDK is still in effect. discussion of those frameworks here is still embargoed. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

[Moderator] reminder - WWDC content other than the keynote is covered by NDA

2008-06-09 Thread Scott Anguish
just a quick reminder that the WWDC content, aside from this morning's keynote, is covered by non-disclosure and should not be discussed here. scott moderator ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Handle mouse event (click) in CALayer sublayers

2008-06-09 Thread Wayne Shao
If a CALayer has many sublayers, what is the best way to find out the layer that should receive mouse click event? Is there a good example of handling mouse event for layer-based NSView? Thanks, -- Wayne Shao ___ Cocoa-dev mailing list (Cocoa-dev@lists

Re: Where is CIFilterBrowser?

2008-06-09 Thread Andy Lee
And I didn't find it in Spotlight because the name of the widget is "CI Filter Browser", with spaces. Reminds me of the time I went nuts trying to find Moriarity, assuming it was spelled Moriarty, which is the name of Sherlock Holmes's nemesis. --Andy On Jun 9, 2008, at 4:20 PM, Gordon App

Re: Where is CIFilterBrowser?

2008-06-09 Thread Gordon Apple
#$%^&*(! docs said you had to download it from ADC. I took them at their word. Thanks. It's there. > On Mon, Jun 9, 2008 at 3:06 PM, douglas a. welton > <[EMAIL PROTECTED]> wrote: >> The widget used to be available when you logged in to the ADC site. My >> quick check didn't find it there

Re: TDD/BDD testing methodologies?

2008-06-09 Thread David Troy
Thanks Jonathan for the pointers and thanks, Chris, for your work on the subject. I am sure I will be using these articles to get up to speed on Cocoa TDD, however slowly that may be. Thanks again! Regards, Dave On Jun 9, 2008, at 6:43 AM, Jonathan del Strother wrote: Take a look at Se

Re: applications list on Multi monitor

2008-06-09 Thread David Duncan
On Jun 8, 2008, at 10:34 PM, Apparao Mulpuri wrote: In my Multi monitor application, i have to list out application names with respect to each monitor. Ex: Lets say Monitor 1(Primary monitor) having iTunes, AddressBook, Calculator and TextEdit(Multi Doc) application windows and Monitor2 having

Re: Where is CIFilterBrowser?

2008-06-09 Thread Kyle Sluder
On Mon, Jun 9, 2008 at 3:06 PM, douglas a. welton <[EMAIL PROTECTED]> wrote: > The widget used to be available when you logged in to the ADC site. My > quick check didn't find it there, so it may be history. I'm pretty sure I got it by default by installing the dev tools. Are you sure, Gordon, t

Converting CIImage to CVImageBuffer

2008-06-09 Thread John Smith
I have a CIImage that is the result of applying a CIFilter on another image. Now I want to convert the result image into a CVImageBuffer. Is there some straight-forward way to do this? I've spent quite some time scanning the documentation to figure out a way to do so, but no luck. Thanks, John ___

Re: Binding NSMenuItem state in Document-based app

2008-06-09 Thread Quincey Morris
On Jun 9, 2008, at 11:07, Steve Nicholson wrote: I have a document-based app in which I'm trying to bind the state of NSMenuItems to values in my document's window controller. For example, in the window's nib file, I have a checkbox bound to File's Owner/autoscaleX. I'd like the menu item

Re: Where is CIFilterBrowser?

2008-06-09 Thread douglas a. welton
The widget used to be available when you logged in to the ADC site. My quick check didn't find it there, so it may be history. If you want to make your own version of the widget, open the documentation for the Core Image Filter Reference in Safari and fire up the Core Image Fun House app a

Re: Where is CIFilterBrowser?

2008-06-09 Thread Andy Lee
On Jun 9, 2008, at 2:25 PM, Gordon Apple wrote: The CIFilterBrowser widget is mentioned in the docs but no search I have done will turn it up anywhere. Does it exist? Apparently it's something you have to download. I did a full-text search for CIFilterBrowser in Xcode's doc window, and

MVC: How best avoid nested invocations of -reloadData?

2008-06-09 Thread Jerry Krinock
My data objects are viewed in an NSOutlineView, and additional attributes of the selected item appear in an Inspector panel. I have tried to implement MVC by funneling any data-model property change in any view to send a -changeObjectProperty::: message which updates the model, registers un

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Chris Hanson
On Jun 9, 2008, at 11:17 AM, Hamish Allan wrote: On Mon, Jun 9, 2008 at 7:02 PM, Chris Hanson <[EMAIL PROTECTED]> wrote: The reason these kinds of methods have a return type of (id) is that there is no way to say "returns an object of the receiver's class." For example, +[NSArray array] re

NSCollectionView fade on load

2008-06-09 Thread Andy Kim
I'd like to disable the fade in animation when an NSCollectionView loads. In my project, disabling "automatically hide scroller" and showing vertical and horizontal scrollers made it not fade for a while, but for some reason the fade is back. The content of the collection view is comes fr

Where is CIFilterBrowser?

2008-06-09 Thread Gordon Apple
The CIFilterBrowser widget is mentioned in the docs but no search I have done will turn it up anywhere. Does it exist? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Cont

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Hamish Allan
On Mon, Jun 9, 2008 at 7:02 PM, Chris Hanson <[EMAIL PROTECTED]> wrote: > The reason these kinds of methods have a return type of (id) is that there > is no way to say "returns an object of the receiver's class." For example, > +[NSArray array] returns (id) rather than (NSArray *) because otherwi

Re: TDD/BDD testing methodologies?

2008-06-09 Thread Chris Hanson
On Jun 9, 2008, at 6:43 AM, Jonathan del Strother wrote: Take a look at SenTestingKit (and particularly Chris Hanson's excellent guide to setting it all up - http://chanson.livejournal.com/182472.html). Thanks for the kind words! I have a couple of additional posts on my weblog which I thin

Binding NSMenuItem state in Document-based app

2008-06-09 Thread Steve Nicholson
I have a document-based app in which I'm trying to bind the state of NSMenuItems to values in my document's window controller. For example, in the window's nib file, I have a checkbox bound to File's Owner/autoscaleX. I'd like the menu item to have the same functionality as that check box a

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Chris Hanson
On Jun 9, 2008, at 10:24 AM, John Engelhart wrote: This is not a bug. This is fundamental to how object-oriented programming works! You should always be able to pass an instance of a subclass wherever an instance of the superclass is expected. You're mistaken. You have statically typed t

Re: TDD/BDD testing methodologies?

2008-06-09 Thread Andreas Monitzer
On Jun 09, 2008, at 15:34, David Troy wrote: Part of the kool-aid in Ruby land is test-driven and behavior driven development practices (TDD/BDD). To go from that approach, where you generally start writing tests and specs before you start writing code, to Cocoa, where I get a lot of OO g

Re: TDD/BDD testing methodologies?

2008-06-09 Thread Chuck Remes
On Jun 9, 2008, at 8:34 AM, David Troy wrote: Hi there, I am new to Cocoa and XCode and have spent the most recent part of my 20+ years of programming using Ruby rather extensively. Part of the kool-aid in Ruby land is test-driven and behavior driven development practices (TDD/BDD). To

Re: Garbage collector vs variable lifetime

2008-06-09 Thread John Engelhart
On Jun 9, 2008, at 6:51 AM, Chris Hanson wrote: On Jun 9, 2008, at 12:56 AM, John Engelhart wrote: The semantics are preserved and identical results are calculated (the 'meaning' is the same). The semantics do not require square() to literally be called each time. Yes, that is very clea

Re: Core Data Questions

2008-06-09 Thread Gordon Apple
> If you're designing a data model using Core Data, it's actually very > useful to step back and look at your data the way a layperson would. > By this I mean forget about classes and inheritance and all that > stuff. You can come back to it later, but the main thing is to look at > the problem in

Re: crash in outlineView:isGroupItem:

2008-06-09 Thread Kyle Sluder
On Mon, Jun 9, 2008 at 12:21 PM, carbonat <[EMAIL PROTECTED]> wrote: > Cobin, I have already posted it in the bug reporter page, but I didn't hear > of the radar number. What is > it? Log in to the bug reporter (a.k.a. Radar) and look in the leftmost column of the "Open" tab of the "My Originated

Re: Using a Core Data relationship binded to an NSTokenField

2008-06-09 Thread Charles Srstka
On Jun 9, 2008, at 4:08 AM, Orestis Markou wrote: If I have allowReverseTransformedValue set to YES, then double clicking the row will not show the NSTokenField. The reverseTransformedValue isn't called at all. Do any exceptions or other errors get logged to the console? Charles _

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Charles Srstka
On Jun 9, 2008, at 2:56 AM, John Engelhart wrote: Well, in the case of your example, you have a bug: You have statically typed the class to NSArray, not your subclass. If one applies the 'attribute only applies to the class it was specified for' rule: By statically typing the class to NS

Re: crash in outlineView:isGroupItem:

2008-06-09 Thread carbonat
El 09/06/2008, a las 18:00, Corbin Dunn escribió: Please log this as a bug, and include the radar number in the post (even if you can't open them, it is useful for Apple engineers). -corbin Thanks for posting this. I found an even simpler example app that will crash. You can downloa

Re: crash in outlineView:isGroupItem:

2008-06-09 Thread Corbin Dunn
Please log this as a bug, and include the radar number in the post (even if you can't open them, it is useful for Apple engineers). -corbin Thanks for posting this. I found an even simpler example app that will crash. You can download it at: http://developer.apple.com/samplecode/Abstract

Re: TDD/BDD testing methodologies?

2008-06-09 Thread Jonathan del Strother
On Mon, Jun 9, 2008 at 2:34 PM, David Troy <[EMAIL PROTECTED]> wrote: > Hi there, > > I am new to Cocoa and XCode and have spent the most recent part of my 20+ > years of programming using Ruby rather extensively. > > Part of the kool-aid in Ruby land is test-driven and behavior driven > developmen

TDD/BDD testing methodologies?

2008-06-09 Thread David Troy
Hi there, I am new to Cocoa and XCode and have spent the most recent part of my 20+ years of programming using Ruby rather extensively. Part of the kool-aid in Ruby land is test-driven and behavior driven development practices (TDD/BDD). To go from that approach, where you generally start

Make a cell editable programmatically

2008-06-09 Thread Norio
Hi, I'd like to make a cell of an NSTableView to be in an editing state programmatically, without click or double-click on the cell. The NSTableView is bound to an NSArrayController. I could bind them in IB and when you press Add button (its target is the NSArrayController and its action is NSArra

IBPlugin error

2008-06-09 Thread Stevie Broadfoot
Hello, When I create a new xcode project of type Interface Builder Plugin, and then build and run, everything works fine in the interface builder window that pops up. However, if I then go into the release folder and double-click on "MyIBPlugin.ibplugin", I get this error message: The doc

Re: Filling screen under menu bar and above dock

2008-06-09 Thread Memo Akten
thanks! works great! On Mon, 9 Jun 2008 07:27:01 -0400, "douglas a. welton" <[EMAIL PROTECTED]> wrote: > Check out NSScreen documentation for the -(NSRect)visibleFrame method. > > On Jun 9, 2008, at 6:49 AM, Memo Akten wrote: > >> <[EMAIL PROTECTED]> > <[EMAIL PROTECTED] >> > >> Message-ID: <[E

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Antonio Nunes
On 9 Jun 2008, at 00:53, Chris Kane wrote: On 7 Jun 2008, at 09:07, Antonio Nunes wrote: On 7 Jun 2008, at 06:16, Ken Thomases wrote: The issue is, how can one know when this technique is necessary? By proper documentation. As Bill mentioned earlier, the documentation needs to mention this

Re: Filling screen under menu bar and above dock

2008-06-09 Thread douglas a. welton
Check out NSScreen documentation for the -(NSRect)visibleFrame method. On Jun 9, 2008, at 6:49 AM, Memo Akten wrote: <[EMAIL PROTECTED]> <[EMAIL PROTECTED] > Message-ID: <[EMAIL PROTECTED]> X-Sender: [EMAIL PROTECTED] Received: from 82-68-202-222.dsl.in-addr.zen.co.uk [82.68.202.222] with

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Chris Hanson
On Jun 9, 2008, at 12:56 AM, John Engelhart wrote: The semantics are preserved and identical results are calculated (the 'meaning' is the same). The semantics do not require square() to literally be called each time. Yes, that is very clear, because the compiler can have full knowledge t

Filling screen under menu bar and above dock

2008-06-09 Thread Memo Akten
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Message-ID: <[EMAIL PROTECTED]> X-Sender: [EMAIL PROTECTED] Received: from 82-68-202-222.dsl.in-addr.zen.co.uk [82.68.202.222] with HTTP/1.1 (POST); Mon, 09 Jun 2008 04:49:35 -0600 User-Agent: RoundCube Webmail/0.1-rc2 Content-Type: text/plain; charse

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Chris Hanson
On Jun 8, 2008, at 10:03 PM, John Engelhart wrote: The result from [data self] is invariant, it does not matter if it is executed immediately after the object is instantiated or just before [data release], the result is always the same. There is no way in the Objective-C language as it curr

Re: crash in outlineView:isGroupItem:

2008-06-09 Thread carbonat
El 09/06/2008, a las 3:06, Nathan Kinsinger escribió: On Jun 8, 2008, at 4:02 PM, Joan Lluch (casa) wrote: Ok, I did it. This is now a confirmed bug. To reproduce it: Modify the OutlineEdit example as follows: 1- In IB add set the "highlight" property of the outlineView to "Source List"

Re: Using a Core Data relationship binded to an NSTokenField

2008-06-09 Thread Orestis Markou
Thanks for the reply. I'm not on my Mac now, and the code is a bit messy because of all the experiments, but here are my assumptions: My value transformer returns an instance of NSMutableArray, that becomes the value of the NSTokenField Its transormedValue: takes an NSSet (actually it's a collecti

Re: Garbage collector vs variable lifetime

2008-06-09 Thread Jean-Daniel Dupas
Le 9 juin 08 à 09:56, John Engelhart a écrit : On Jun 8, 2008, at 11:48 PM, Chris Hanson wrote: On Jun 8, 2008, at 5:39 PM, John Engelhart wrote: On Jun 7, 2008, at 7:11 PM, Chris Hanson wrote: This won't happen because each message expression -- just as with function-call expressions -

Re: Garbage collector vs variable lifetime

2008-06-09 Thread John Engelhart
On Jun 8, 2008, at 11:48 PM, Chris Hanson wrote: On Jun 8, 2008, at 5:39 PM, John Engelhart wrote: On Jun 7, 2008, at 7:11 PM, Chris Hanson wrote: This won't happen because each message expression -- just as with function-call expressions -- is a sequence point. The compiler can't know

Re: Using NSTrackingArea on overlay child windows

2008-06-09 Thread Markus Spoettl
On Jun 8, 2008, at 10:59 PM, Ron Fleckner wrote: Is updateCursor: a Leopard thing? I'm still on Tiger and there's no such method on my machine that I could find. If it is your own method, why can't you just call it yourself? I guess I don't really understand your problem. Yes it's new