Re: NSKeyedArchiver finishEncoding takes forever

2008-06-21 Thread Mark Munz
I also recommend logging a bug with Apple against this issue. You shouldn't need to jump through those sorts of hoops with NSKeyedArchiver. On Wed, Jun 18, 2008 at 8:48 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: > On Jun 18, 2008, at 2:41 PM, Michael Ash wrote: >> >> Although it partially defea

[Q] How to add a program as a login item after installing?

2008-06-21 Thread JongAm Park
Thanks for the quick response. Well, in my case, we wanted to avoid such workflow. We want installing & running the special app to be transparent from users. The program will add a status bar menu item and that's all. It should run transparent. I know that there is a way to put Objective-C

Fwd: [Q] IMKit: IMKInputController and its menu handler

2008-06-21 Thread JongAm Park
Hello, all I have a weird problem in connecting actions to a menu items for a certain input method that is implemented using the IMKit. There is a controller object whose super class is NSObject. In the controller there are action handlers for menu items. Just like other Cocoa program. I con

Re: CoreData local and on server sync

2008-06-21 Thread René v Amerongen
Op 22 jun 2008, om 00:18 heeft Jens Alfke het volgende geschreven: On 21 Jun '08, at 3:33 AM, René v Amerongen wrote: Now I have to make a similar database but then that the Laptop users can work offline. I would like to have them sync their local copy with the server when they are online

Re: Why does this https post request always return "404 Not Found"

2008-06-21 Thread an0
Cool, it works. Thanks a lot. But as to APIs, I really can't find the login API, or I would of course use that instead of posting forms. Can you tell me where the login API is? On Sun, Jun 22, 2008 at 6:32 AM, Jens Alfke <[EMAIL PROTECTED]> wrote: > This is pretty weird. After some experimenting,

Re: Storing an unsignedLongLong

2008-06-21 Thread Andrew Farmer
On 21 Jun 08, at 21:59, Adam Thorsen wrote: I'm attempting to store an unsigned long long (stored in memory in an NSNumber) in user defaults, but it appears to be truncated upon retrieval. This may have something to do with the fact that I'm using the setInteger method of NSUserDefaults to

Re: Bindings Concept Question

2008-06-21 Thread Scott Anguish
and this is the first FAQ in the Cocoa Bindings Programming Guide documentation On Jun 21, 2008, at 10:12 PM, Chris Hanson wrote: [arrayOfData addObject:newData]; That right there is your problem. You are modifying the array itself, not the property, so it is not posting KVO notificat

Storing an unsignedLongLong

2008-06-21 Thread Adam Thorsen
I'm attempting to store an unsigned long long (stored in memory in an NSNumber) in user defaults, but it appears to be truncated upon retrieval. This may have something to do with the fact that I'm using the setInteger method of NSUserDefaults to write the unsigned long long value. Howeve

Re: How to hide the divider in a collapsed NSSplitView pane

2008-06-21 Thread Markus Spoettl
On Jun 21, 2008, at 7:53 PM, Andreas Mayer wrote: There's actually a better way that Milen pointed out, though. If you don't need to support systems earlier than 10.5, yes. Yes, that's right. I forgot to mention that. Regards Markus -- __ Markus Spoett

Re: How to hide the divider in a collapsed NSSplitView pane

2008-06-21 Thread Andreas Mayer
Am 22.06.2008 um 03:58 Uhr schrieb Markus Spoettl: There's actually a better way that Milen pointed out, though. If you don't need to support systems earlier than 10.5, yes. Andreas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: CoreData local and on server sync

2008-06-21 Thread Chris Hanson
On Jun 21, 2008, at 3:18 PM, Jens Alfke wrote: Of course you can write your own code that takes a local CoreData store and a remote database server, and compares and syncs the data; but you're on your own in building that. You'll need a 3rd party library to even talk to the server. In thi

Re: CoreData local and on server sync

2008-06-21 Thread Chris Hanson
On Jun 21, 2008, at 3:33 AM, René v Amerongen wrote: Does someone has any experience about having a local data store which is syncing wit the server store using Coredata? We have a few 300+ laptop users and 50+ desktop users who are working in the same database. Now I have to make a simil

Re: Bindings Concept Question

2008-06-21 Thread Chris Hanson
On Jun 21, 2008, at 10:49 AM, Alex Wait wrote: I have tried to, in my init method, to do this id proxy = [controller mutableArrayValueForKey:@"arrayOfData"]; Your init method of what class? Does "controller" have an "arrayOfData" property, or does the object you're making that call from?

Re: Race in Apple's NSTreeContoller/NSOutlineView

2008-06-21 Thread Chris Hanson
On Jun 19, 2008, at 7:49 PM, Godfrey van der Linden wrote: The sub-xib bindings are through the NSViewControllers representedObject, which gets set not at awakeFromNib time but later when the subview is activated. What do your bindings look like? If you have an outline view managed by an N

Re: How to hide the divider in a collapsed NSSplitView pane

2008-06-21 Thread Markus Spoettl
On Jun 21, 2008, at 5:53 PM, Andreas Mayer wrote: The documentation for NSSplitView says: dividerThickness Returns the thickness of the divider. - (CGFloat)dividerThickness Discussion You can subclass NSSplitView and override this method to change the divider’s size, if necessary. I gues

Re: How to hide the divider in a collapsed NSSplitView pane

2008-06-21 Thread Markus Spoettl
Hi Milen, On Jun 21, 2008, at 6:21 PM, Milen Dzhumerov wrote: "A common UI pattern now is to provide a button to show and hide one subview or another of a split view, and completely hide the divider when the subview between it and the edge of the window is hidden. To make it easy for you to

Re: PDFKit guidance

2008-06-21 Thread Adam R. Maxwell
On Jun 20, 2008, at 12:53 PM, John Calhoun wrote: On Jun 20, 2008, at 5:21 AM, Adam R. Maxwell wrote: If you want to draw in memory, I think you have to drop down to Quartz; using PDFKit would likely be easier, but it looks like you can only specify a Quartz filter when saving to a file?.

Re: How to hide the divider in a collapsed NSSplitView pane

2008-06-21 Thread Milen Dzhumerov
Hi Markus, AppKit release notes say this: "A common UI pattern now is to provide a button to show and hide one subview or another of a split view, and completely hide the divider when the subview between it and the edge of the window is hidden. To make it easy for you to do this there is a

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-21 Thread Adam R. Maxwell
On Jun 18, 2008, at 7:08 PM, Markus Spoettl wrote: On Jun 18, 2008, at 5:04 PM, Adam R. Maxwell wrote: It's not recommended, but have you tried using old-style archiving as another approach? It used to be considerably faster than keyed archiving under some circumstances. I have thought

Re: How to hide the divider in a collapsed NSSplitView pane

2008-06-21 Thread Andreas Mayer
Am 22.06.2008 um 00:38 Uhr schrieb Markus Spoettl: Is that something I can do with NSSplitView? If so, how? The documentation for NSSplitView says: dividerThickness Returns the thickness of the divider. - (CGFloat)dividerThickness Discussion You can subclass NSSplitView and override this

No File Opening Aftering adding a file Type

2008-06-21 Thread Alex Wait
I was following my book to the letter (Cocoa Programming for Mac OS X 3rd edition) and I added the file type as it instructed. Now when I start my program Open and Save are grayed out and I get this error 2008-06-21 17:44:13.117 RaiseMan[6870:10b] The RaiseMan Doc type doesn't map to any NSDocume

Re: strikethrough in text displayed

2008-06-21 Thread Adam R. Maxwell
On Jun 21, 2008, at 5:17 PM, Daniel Richman wrote: I was wondering if there's any way to put a strikethrough in text the program generates to put on screen (not something the user enters). For example, in HTML (I know this is a long way from that), you can use the and tags. Is there anyt

Re: Warnings in Interface Builder

2008-06-21 Thread Alex Wait
Thanks guys. I was being a bit of a dunce there. :) On Sat, Jun 21, 2008 at 5:19 PM, Aron Nopanen <[EMAIL PROTECTED]> wrote: > Click the 'info' button on the main NIB window, and set the deployment > target appropriately? > > -A > > > On 22/06/2008, at 12:11 PM, Alex Wait wrote: > > Is there any

Re: Warnings in Interface Builder

2008-06-21 Thread Aron Nopanen
Click the 'info' button on the main NIB window, and set the deployment target appropriately? -A On 22/06/2008, at 12:11 PM, Alex Wait wrote: Is there any way to "quiet" Interface Builder about my using an Array Controller and button styles not avaiable on all OS X versions? It's extremely a

strikethrough in text displayed

2008-06-21 Thread Daniel Richman
Hi All, I was wondering if there's any way to put a strikethrough in text the program generates to put on screen (not something the user enters). For example, in HTML (I know this is a long way from that), you can use the and tags. Is there anything to do that in Cocoa? Thanks, Daniel

Warnings in Interface Builder

2008-06-21 Thread Alex Wait
Is there any way to "quiet" Interface Builder about my using an Array Controller and button styles not avaiable on all OS X versions? It's extremely annoying. :) Alex -- If you can't be kind, at least have the decency to be vague. ___ Cocoa-dev maili

Data backend for larger apps

2008-06-21 Thread Devraj Mukherjee
Hi all, I have gathered that Core Data (as brilliant as it is) doesn't yet support client/server databases. I am writing an application which will be installed on multiple machines but would like share the single data source. Since there will be large amount of data the thought at this stage is t

Re: cutting an image into multiple images

2008-06-21 Thread Ken Thomases
On Jun 21, 2008, at 8:41 AM, Dharmendra wrote: I am trying to get a user-defined image in specific format (m x nm) and want to generate an array with count n containing m x m sized images. I have written the following code, but would like to know if there is better way to do the same: Ra

Re: Bindings Concept Question

2008-06-21 Thread Ken Thomases
On Jun 21, 2008, at 12:49 PM, Alex Wait wrote: I have tried to, in my init method, to do this id proxy = [controller mutableArrayValueForKey:@"arrayOfData"]; I have also tried using the values "firstName" and "lastName" which are the properties of my Data class. controller is a pointer to m

How to hide the divider in a collapsed NSSplitView pane

2008-06-21 Thread Markus Spoettl
Hello List, I've done a lot of testing and googling but I can't figure out how or even if it is possible to completely hide a divider of a NSSplitView. Suppose I have a split view setup like this: A B |--|--| B is collapsible through a button, not through dragging (there i

Re: Why does this https post request always return "404 Not Found"

2008-06-21 Thread Jens Alfke
This is pretty weird. After some experimenting, I narrowed it down to the value of the User-Agent header. I think the del.icio.us server is checking that header and returning a 404 if it doesn't like it. And it doesn't seem to like CFNetwork's default user-agent header, though it likes Safa

Re: CoreData local and on server sync

2008-06-21 Thread Jens Alfke
On 21 Jun '08, at 3:33 AM, René v Amerongen wrote: Now I have to make a similar database but then that the Laptop users can work offline. I would like to have them sync their local copy with the server when they are online again. Is this possible with Coredata and SQL? Does someone has sug

Re: SplashScreen issues

2008-06-21 Thread Jens Alfke
On 21 Jun '08, at 12:10 AM, Damien Cooke wrote: You make an excellent point. My app does take too long to load. Once I get closer to release I will see what I can do to reduce the load time. Perhaps move some stuff out of the MainMenu.xib. You've currently got a chicken-and-egg problem,

Re: Core Data : BlogDemo tutorial : I must have missed something, but I don't know what...

2008-06-21 Thread Jens Alfke
On 21 Jun '08, at 2:40 PM, John Joyce wrote: 2008-06-21 16:27:05.212 BlogDemo[1180] *** NSRunLoop ignoring exception '[ valueForUndefinedKey:]: this class is not key value coding-compliant for the key topic.' that raised during posting of delayed perform with target 3c4ac0 and selector 'i

Re: Save animation to QuickTime movie?

2008-06-21 Thread douglas a. welton
I would suggest that you take a look at the sample code for CocoaMovieCreate and MakeEffectMovie. If an off the shelf product can't help you (Have you tried using AppleScript with QT Player to accomplish your goal?), then these two examples should give you enough of the basics to get you t

Re: cutting an image into multiple images

2008-06-21 Thread douglas a. welton
Depending on what you are going to do with the "sub-images" once you create them, you might want to consider using a CIImage with the CICrop core image filter. On Jun 21, 2008, at 9:41 AM, Dharmendra wrote: Hi, I am trying to get a user-defined image in specific format (m x nm) and want t

Core Data : BlogDemo tutorial : I must have missed something, but I don't know what...

2008-06-21 Thread John Joyce
I just worked through the BlogDemo core data app tutorial. The "Topics" panel loads of course, but none of the "Topics" functionality is there. I'm sure I've missed something, or mis-connected something, but I cannot seem to find it... When I run the demo app, I'm getting the following : [Session

Re: Application Main window not appearing on application launch

2008-06-21 Thread Omar Qazi
On Jun 21, 2008, at 2:05 PM, Omar Qazi wrote: On Jun 21, 2008, at 12:18 PM, Clayton Leitch wrote: Core data document application: I edited the MyDocument.nib file to add a few fields to one view and now when I start the application, the main window does not appear. Also, the new

Re: Creating a Bundle via Code

2008-06-21 Thread Ben Trumbull
Grant, You don't need a bundle or package or anything besides a plain old directory. Core Data doesn't care where you place your images on the file system. One file URL is just as good as any other to Core Data. As others have mentioned, it's probably the transition from JPEG->NSImage->NSD

Re: Application Main window not appearing on application launch

2008-06-21 Thread Omar Qazi
On Jun 21, 2008, at 12:18 PM, Clayton Leitch wrote: Core data document application: I edited the MyDocument.nib file to add a few fields to one view and now when I start the application, the main window does not appear. Also, the new menu fails to produce a window. What caused t

Re: Leopard-specific functionality in non–L eopard-only project

2008-06-21 Thread Mike Abdullah
If you're desperate to stick with the 10.4 SDK, I'd suggest the best approach is just to create your own header that mimics the method. So you'd end up with something like: @interface NSWindow (LeopardOnlyMethods) - (void)setCollectionBehavior:(int)behavior; @end ... [window setCollectionBeh

Re: Application Main window not appearing on application launch (updated)

2008-06-21 Thread Quincey Morris
On Jun 21, 2008, at 13:17, Clayton Leitch wrote: Core data document application: I edited the MyDocument.nib file to add a few fields to one view and now when I start the application, the main window does not appear. Also, the new menu fails to produce a window. What caused this The e

Re: Leopard-specific functionality in non–Le opard-only project

2008-06-21 Thread Michael Ash
On Sat, Jun 21, 2008 at 3:51 PM, Jacob Bandes-Storch <[EMAIL PROTECTED]> wrote: > I'm working on a project (with another developer) that will target OSes > older than 10.5, and I'd like to use the Leopard-only NSWindow method > -setCollectionBehavior:. As far as I know, the best way to do this is t

Re: Leopard-specific functionality in non–L eopard-only project

2008-06-21 Thread Mark Munz
If you're sharing the project between developers, they both need to be using the same SDK (ie. 10.5 in this example). The end product will run on both 10.4 and 10.5, but the development has to be done on a 10.5 machine (you can't develop for future OS's from an older OS). Another option (for someo

Application Main window not appearing on application launch (updated)

2008-06-21 Thread Clayton Leitch
Core data document application: I edited the MyDocument.nib file to add a few fields to one view and now when I start the application, the main window does not appear. Also, the new menu fails to produce a window. What caused this and how do I avoid it. More information: The console te

Re: Leopard-specific functionality in non–L eopard-only project

2008-06-21 Thread Jacob
Alright, thanks, but will that work if someone tries to use the project for development who's not on 10.5? On Sat, Jun 21, 2008 at 1:01 PM, Mark Munz <[EMAIL PROTECTED]> wrote: > The trick is to set the SDK to 10.5 and then in the target build settings, > set: > > Mac OS X Deployment Target to M

Re: Leopard-specific functionality in non–L eopard-only project

2008-06-21 Thread Mark Munz
The trick is to set the SDK to 10.5 and then in the target build settings, set: Mac OS X Deployment Target to Mac OS X 10.4. (under Deployment) You'll want to set it for all your configurations: (Debug, Release, etc) On Sat, Jun 21, 2008 at 12:51 PM, Jacob Bandes-Storch <[EMAIL PROTECTED]> wrote

Leopard-specific functionality in non–Leopard -only project

2008-06-21 Thread Jacob Bandes-Storch
I'm working on a project (with another developer) that will target OSes older than 10.5, and I'd like to use the Leopard-only NSWindow method -setCollectionBehavior:. As far as I know, the best way to do this is to check for the method using -respondsToSelector:. I need to use the enum type

Re: getting the selected object from an NSTableView causes problems

2008-06-21 Thread Daniel Richman
Ah. So the typedef changes depending on the platform. Interesting, thanks. Nick Zitzmann wrote: On Jun 21, 2008, at 9:13 AM, Daniel Richman wrote: Thanks! I don't know why they introduced NSInteger. It sounds like it would be a subclass of NSNumber. They did that so that NSData, etc. can

Re: getting the selected object from an NSTableView causes problems

2008-06-21 Thread Nick Zitzmann
On Jun 21, 2008, at 9:13 AM, Daniel Richman wrote: Thanks! I don't know why they introduced NSInteger. It sounds like it would be a subclass of NSNumber. They did that so that NSData, etc. can hold a 63-bit amount of data in 64-bit applications while not shattering backward compatibility

Application Main window not appearing on application launch

2008-06-21 Thread Clayton Leitch
Core data document application: I edited the MyDocument.nib file to add a few fields to one view and now when I start the application, the main window does not appear. Also, the new menu fails to produce a window. What caused this and how do I avoid it. ___

Re: NSPanel should not close on command-W

2008-06-21 Thread Andrew Merenbach
On Jun 21, 2008, at 11:00 AM, Georg Seifert wrote: I use the panel as a palette. Something like the systems font chooser. They have the close button enabled, but do not responde to close commands from the keyboard. Using TextEdit as an example, the font panel *will* close on command-w, if

Re: NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
I wrote this earlier but send it directly to Marco. pleas excuse my carelessness. I just added a panel to my program. I do not want that the panel closes on command-W. I did setBecomesKeyOnlyIfNeeded:YES. So It does not close if there is a document window. But if the last one is closed (wit

Re: NSPanel should not close on command-W

2008-06-21 Thread Jason Stephenson
Georg Seifert wrote: I cannot reproduce this. If I close all documents in Textedit (or any other Mac-App) the font panel stays there and I get a NSBeep on hitting command-w. According to what I read in the docs and what I've experienced in my own applications, panels don't respond to Comman

Re: NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
I use the panel as a palette. Something like the systems font chooser. They have the close button enabled, but do not responde to close commands from the keyboard. Using TextEdit as an example, the font panel *will* close on command- w, if it becomes key. It is just that it won't become key

Re: Bindings Concept Question

2008-06-21 Thread Alex Wait
Ok. Pretty deep topic and I'm working to wrap my head around it. I have taken the liberty to paste my addData method that is called when the button is pressed (it's at the end of the message). I have tried to, in my init method, to do this id proxy = [controller mutableArrayValueForKey:@"arrayOf

Re: NSPanel should not close on command-W

2008-06-21 Thread Keary Suska
6/21/08 11:10 AM, also sprach [EMAIL PROTECTED]: > I use the panel as a palette. Something like the systems font chooser. > They have the close button enabled, but do not responde to close > commands from the keyboard. Using TextEdit as an example, the font panel *will* close on command-w, if it

Re: NSPanel should not close on command-W

2008-06-21 Thread Marco Masser
I just added a panel to my program. I do not want that the panel closes on command-W. I did setBecomesKeyOnlyIfNeeded:YES. So It does not close if there is a document window. But if the last one is closed (with keyboard: command-W) also the panel closes. I'm taking a stab in the dark here,

Re: NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
I just added a panel to my program. I do not want that the panel closes on command-W. I did setBecomesKeyOnlyIfNeeded:YES. So It does not close if there is a document window. But if the last one is closed (with keyboard: command-W) also the panel closes. How do I prevent this? I am not sur

Re: NSPanel should not close on command-W

2008-06-21 Thread Keary Suska
6/21/08 7:02 AM, also sprach [EMAIL PROTECTED]: > I just added a panel to my program. I do not want that the panel > closes on command-W. I did setBecomesKeyOnlyIfNeeded:YES. So It does > not close if there is a document window. But if the last one is closed > (with keyboard: command-W) also the p

Re: getting the selected object from an NSTableView causes problems

2008-06-21 Thread Daniel Richman
That's it! Thanks! Daniel Charles Srstka wrote: Don't do this: NSLog(@"selected row: %@", [tableView selectedRow]); Instead, do this: NSLog(@"selected row: %u", [tableView selectedRow]); Trying to interpret an int as an object is what's causing your crash. Charles On Jun 21, 2008, at 10:

Re: getting the selected object from an NSTableView causes problems

2008-06-21 Thread Charles Srstka
Don't do this: NSLog(@"selected row: %@", [tableView selectedRow]); Instead, do this: NSLog(@"selected row: %u", [tableView selectedRow]); Trying to interpret an int as an object is what's causing your crash. Charles On Jun 21, 2008, at 10:13 AM, Daniel Richman wrote: Thanks! I don't know w

Re: getting the selected object from an NSTableView causes problems

2008-06-21 Thread Daniel Richman
Thanks! I don't know why they introduced NSInteger. It sounds like it would be a subclass of NSNumber. That didn't seem to be the problem, though. The program still crashes only when you aren't deleting the first item. I made a movie of it; it's at http://danielrichman.com/tmp/ToDoList_Problem

Why does this https post request always return "404 Not Found"

2008-06-21 Thread an0
- (void) login { NSString *userName = [[userNameField stringValue] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSString *password = [[passwordField stringValue] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]; NSURL *url = [NSURL URLWithString:@"h

cutting an image into multiple images

2008-06-21 Thread Dharmendra
Hi, I am trying to get a user-defined image in specific format (m x nm) and want to generate an array with count n containing m x m sized images. I have written the following code, but would like to know if there is better way to do the same: m=...; NSImage *userImage=[[NSImage alloc] initWithCon

NSPanel should not close on command-W

2008-06-21 Thread Georg Seifert
Hello, I just added a panel to my program. I do not want that the panel closes on command-W. I did setBecomesKeyOnlyIfNeeded:YES. So It does not close if there is a document window. But if the last one is closed (with keyboard: command-W) also the panel closes. How do I prevent this? Tha

Re: Bindings Concept Question

2008-06-21 Thread mmalc Crawford
On Jun 20, 2008, at 10:16 PM, Alex Wait wrote: When the app starts, I see the data as expected. However, when I call my add function, which gets the strings from the textFields and makes the new "Data" object and adds it to the array, I do not see it in the table.

Re: CoreData local and on server sync

2008-06-21 Thread John C. Randolph
On Jun 21, 2008, at 3:33 AM, René v Amerongen wrote: Dear All, Does someone has any experience about having a local data store which is syncing wit the server store using Coredata? Rene, This is not what CoreData is intended to do. CoreData is for local storage of object maps, and real

CoreData local and on server sync

2008-06-21 Thread René v Amerongen
Dear All, Does someone has any experience about having a local data store which is syncing wit the server store using Coredata? We have a few 300+ laptop users and 50+ desktop users who are working in the same database. Now I have to make a similar database but then that the Laptop users

Re: Race in Apple's NSTreeContoller/NSOutlineView

2008-06-21 Thread John C. Randolph
On Jun 21, 2008, at 12:44 AM, Godfrey van der Linden wrote: Ok I gave up. No response was expected and I received what I expected. Godfrey, Being a former Apple engineer, you should know as well as any of us that nobody is assigned to glean bug reports from the mailing lists. Until a

Re: How do I draw text on a custom button?

2008-06-21 Thread John C. Randolph
Michael, By implementing -drawRect: in your view class, you become responsible for all drawing in that view. The code below doesn't attempt to draw the text, it only sets a value. To draw text in the current drawing context, see the - drawAtPoint:withAttributes: method of NSString for one

Re: Fundamental mistake in my understanding of use of classes/instances/encapsulation/messaging

2008-06-21 Thread Jason Wiggins
Hi Nathan, 1. Noted with thanks. 2. I have realised that as it's not actually connected to anything in the NIB. The only objects that need to instantiated in the NIB are classes that require hooking up in IB? 3. This was a quick and dirty app to understand the popup button thing and I knowi

Re: Fundamental mistake in my understanding of use of classes/instances/encapsulation/messaging

2008-06-21 Thread Jason Wiggins
The program *does* actually work (ref. the console output shown before. The line with "View..." is the output from the View Class instance method and the line with "Controller..." is the output from the Controller Class instance method). The popup button is connected to both Controller and

Re: Fundamental mistake in my understanding of use of classes/instances/encapsulation/messaging

2008-06-21 Thread Nathan Kinsinger
On Jun 20, 2008, at 6:48 AM, Jason Wiggins wrote: Hi everyone, Any help would be greatly appreciated. Jason Some pointers, 1) As has been stated already you don't need the View object at all. In this case the Window holds your view (if you look at the Nib in outline mode and open

How do I draw text on a custom button?

2008-06-21 Thread Michael A. Crawford
I'm using a CustomView that inherits from NSButton. I have no problem drawing the graphical representation of the button in the view but it is not immediately obvious to me how to draw text. setTitle does not work with my custom button. Can you point me to some examples? Here is the cod

Re: Race in Apple's NSTreeContoller/NSOutlineView

2008-06-21 Thread Godfrey van der Linden
Ok I gave up. No response was expected and I received what I expected. I suspect, but can't prove it, that there is a subtle race in the NSTreeContoller's bindings when the view that it is defined is is loaded late by programtically adding its outline view as a sub view of some container v

Re: SplashScreen issues

2008-06-21 Thread Damien Cooke
Jens, You make an excellent point. My app does take too long to load. Once I get closer to release I will see what I can do to reduce the load time. Perhaps move some stuff out of the MainMenu.xib. Thanks for your assistance. Regards Damien On 21/06/2008, at 9:11 AM, Jens Alfke wrote: