Re: Live image preview, huge memory usage...

2008-12-03 Thread Jean-Nicolas Jolivet
Thanks a lot for this code Rob! Quick question (2 actually), right now Im drawing my CIImage in a custom view... would drawing the CIImage in my view's drawRect method achieve the same (leak-free) result as your piece of code??? i.e. something simple like: // previewImage is an

Controlled Font Substitution

2008-12-03 Thread Gerriet M. Denkmann
When NSTextView and its friends try to display characters and encounter a character not present in the current font (e.g. THAI CHARACTER MO MA in Monaco 10pt.) then they have to get a corresponding glyph from some other font. The problem: they sometimes pick up a font which is not

Customizing menu drawing

2008-12-03 Thread Joe Ranieri
I'm attempting to draw custom menus as part of a kiosk application where normal Mac OS X menus would look out of place. I can customize drawing of the individual menu items using a custom view (through -[NSMenuItem setView:]). However, there remains a region above and below the items where

NSPersistentDocument packages update

2008-12-03 Thread Paul Tomlin
I'm looking for the current best practice for convincing NSPersistentDocument to work with document packages. I've found quite a few references online[1] which indicate this is/was a known issue and there seem to be a few workarounds. What I'm wondering is if the stuff I've discovered is

Get an Specific sublayer of a view.

2008-12-03 Thread Gustavo Pizano
Hello , well I dunno if this message will arrive to you guys, I have place 2 but got no answer, anyway with those 2 I managed to solve the problem. I have a view which has 5 sub-layers, 6 in total with 1st layer which contains the other 5. Now I want to make a drag and drop operation,

Re: Killing a Thread

2008-12-03 Thread Mahaboob
On 11/27/08 9:52 PM, Scott Ribe [EMAIL PROTECTED] wrote: When I'm calling the thread for second time, the animation speed of progress bar get increased. It seems pretty clear that your function never terminates. As we all have been telling you, if the function returns the thread will

Re: NSPersistentDocument packages update

2008-12-03 Thread Mike Abdullah
My advice is not to bother. Just subclass NSDocument directly and implement the Core Data side of things there. It really isn't too much work. Mike. On 3 Dec 2008, at 09:42, Paul Tomlin wrote: I'm looking for the current best practice for convincing NSPersistentDocument to work with

Cant Load an Image into a CALayer

2008-12-03 Thread Gustavo Pizano
Hello, me again, I have another problem I hadn't been able to solve, Im trying to load an image which is in my bundle, and then put it in a sublayer of the Custom View of my app. I have been readign the previous posts and nothing seem to be working for me, I dunno what Im doing wrong,

Re: Button title irregularities

2008-12-03 Thread Ricky Sharp
On Dec 2, 2008, at 7:15 PM, Randall Meadows wrote: On Dec 2, 2008, at 5:31 PM, Aki Inoue wrote: You're using Helveitca 12.0 as your label font. Actually, it's: (gdb) po labelFont ArialMT 12.00 pt. P [] (0x001c0e30) fobj=0x162670a0, spc=3.33 Use [NSFont systemFontOfSize:[NSFont

Re: Creating a Bottom Bar on NSWindow

2008-12-03 Thread Ross Carter
There's also some info on bottom bars in the HIG. http://developer.apple.com/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGWindows/chapter_18_section_4.html On Dec 2, 2008, at 9:32 PM, Brandon Walkin wrote: You can use my BWToolkit plugin for Interface Builder to add a bottom

Re: Any reason to avoid GCC-4.2 for Leopard and later targeted code?

2008-12-03 Thread Robert Monaghan
How about with Tiger users? Do the applications work there, too? Bob Sent from my iPhone On Dec 3, 2008, at 6:47 AM, Luca Ciciriello [EMAIL PROTECTED] wrote: No Idea, but I use currently GCC-4.2 for my Apps. I've to say that my applications are C++ and Objective-C++ apps. I haven't

RE: Any reason to avoid GCC-4.2 for Leopard and later targeted code?

2008-12-03 Thread Luca Ciciriello
Probably not. But we are speaking about linking against 10.5 SDK and in this framework I don't see any restriction to use GCC-4.2. Luca. From: [EMAIL PROTECTED]: [EMAIL PROTECTED]; [EMAIL PROTECTED]: Re: Any reason to avoid GCC-4.2 for Leopard and later targeted code?Date: Wed, 3 Dec 2008

Re: Cant Load an Image into a CALayer

2008-12-03 Thread Benjamin Stiglitz
NSImage * image = [[NSImage alloc] initByReferencingFile:@Destroyer.png]; Your conditional statement is failing because the image can't be located; you need to pass the path to your image relative to the current working directory; see the documentation:

Re: Rollover on custom Cells

2008-12-03 Thread Andreas Mayer
Am 29.11.2008 um 21:44 Uhr schrieb Gustavo Pizano: Can somebody please give me and advise of what Im might be doing wrong? No, because you didn't give any relevant information (aka source code). or any efficient method to achieve this purpose ? You may want to have a look at my

Re: NSURL bug with IPv6 addresses

2008-12-03 Thread Larry Campbell
I've opened radar #6414752. - lc On Dec 3, 2008, at 12:34 AM, Kyle Sluder wrote: On Tue, Dec 2, 2008 at 10:59 PM, Larry Campbell [EMAIL PROTECTED] wrote: The first line is the correct, desired result; the next two are totally borked. So is this just known to be broken? Or is there some way

Re: Customizing menu drawing

2008-12-03 Thread Benjamin Dobson
I can offer you just two options: – Use Aqua menus. – Draw a custom view instead of a menu. Other people may have more ideas. On 3 Dec 2008, at 08:57:35, Joe Ranieri wrote: I'm attempting to draw custom menus as part of a kiosk application where normal Mac OS X menus would look out of place.

re: Size of the resize indicator

2008-12-03 Thread Eric Gorr
I posted this question awhile ago, but never received a response. I asked the same question on another mailing list and received the answer that what I want to do is simply not possible. If anyone has a solution that involves being able to use a NSPanel, I would be very interested. I

Determining unreleased objects after Quit

2008-12-03 Thread Jon C. Munson II
Namaste! In my application, when I choose File-Quit, the application appears to terminate. HOWEVER, it doesn't. SOMETHING(s) is(are) left unreleased. Is there a handy way to determine what the object(s) is(are)?  Peace, Love, and Light,   Jon C. Munson II And Jesus looking upon them saith,

Re: Determining unreleased objects after Quit

2008-12-03 Thread Nick Zitzmann
On Dec 3, 2008, at 9:38 AM, Jon C. Munson II wrote: In my application, when I choose File-Quit, the application appears to terminate. HOWEVER, it doesn't. SOMETHING(s) is(are) left unreleased. Is there a handy way to determine what the object(s) is(are)? Can you please elaborate?

Re: Determining unreleased objects after Quit

2008-12-03 Thread Michael Ash
On Wed, Dec 3, 2008 at 11:38 AM, Jon C. Munson II [EMAIL PROTECTED] wrote: Namaste! In my application, when I choose File-Quit, the application appears to terminate. HOWEVER, it doesn't. SOMETHING(s) is(are) left unreleased. Is there a handy way to determine what the object(s) is(are)?

Re: Rollover on custom Cells

2008-12-03 Thread Gustavo Pizano
Hey Hello, thanks for the reply. Well after a day of reading and working on it I figure it out how to do it. I dunno if I did it good, but so far its working, and the Leaks instrument program is showing no leaks, what Im concerned now its another issue with the images I want to show in the

Re: Determining unreleased objects after Quit

2008-12-03 Thread Randall Meadows
On Dec 3, 2008, at 9:38 AM, Jon C. Munson II wrote: Namaste! In my application, when I choose File-Quit, the application appears to terminate. HOWEVER, it doesn't. SOMETHING(s) is(are) left unreleased. Is there a handy way to determine what the object(s) is(are)? When your app quits,

Re: Controlled Font Substitution

2008-12-03 Thread Aki Inoue
Mac OS X ships with Thonburi as the Thai system font, and that's the font usually you get for Thai character substitution. The font substitution system is applying sophisticated algorithm to closely match font traits, and it appears it's causing the random fallback. Probably the system

Custom Window Resize Image

2008-12-03 Thread Mr. Gecko
Hello, I'm writing a custom window for my application, but I can't figure out how to make a custom resize image... Any help? Thanks, Mr. Gecko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Cant Load an Image into a CALayer Solved

2008-12-03 Thread Gustavo Pizano
I just wanted to say tha tI solved the problem, I realize where I was making my mistake, I guess I was trying to put the image in the init method, and somehow it wasn't working (my guess is that in the init the view wasn't initialized yet), so I put it in the awakeFromNib method and it did

Special Characters Edit Menu Item

2008-12-03 Thread David Blanton
I searched the archives and found no useful information on how to remove the Special Characters menu item from the edit menu. I want to remove this item ... is removing this item a good or bad practice? If bad, why? David Blanton ___

[NSTextView complete:] popup menu delay before hiding

2008-12-03 Thread Jesse Grosjean
When I hit F5 to do complete: in text edit the menu of completions shows indefinitely, until I select an item or type a new letter. Same thing happens when I do F5 in Safari's search field. But if I do F5 in Xcodes's toolbar search field the popup of choices only shows for about a second, and then

Re: Special Characters Edit Menu Item

2008-12-03 Thread Ken Thomases
On Dec 3, 2008, at 2:09 PM, David Blanton wrote: I searched the archives and found no useful information on how to remove the Special Characters menu item from the edit menu. I want to remove this item ... is removing this item a good or bad practice? If bad, why? I can't make any

Re: Special Characters Edit Menu Item

2008-12-03 Thread David Duncan
On Dec 3, 2008, at 12:09 PM, David Blanton wrote: I searched the archives and found no useful information on how to remove the Special Characters menu item from the edit menu. There is no sure fire way to remove this menu item. I want to remove this item ... is removing this item a good or

Re: Special Characters Edit Menu Item

2008-12-03 Thread Joseph Crawford
I do not understand why you would want to remove something that is put in place by Apple for a reason. All of my OS X apps have that menu item, if I were to use that menu item and be used to all apps having it I would hate your app for not having it. Is there a real reason you wish to

Re: Special Characters Edit Menu Item

2008-12-03 Thread David Blanton
There is no text entry capability in my app so this menu item looks like I don't know what I am doing. On Dec 3, 2008, at 1:30 PM, Joseph Crawford wrote: I do not understand why you would want to remove something that is put in place by Apple for a reason. All of my OS X apps have that

Re: Special Characters Edit Menu Item

2008-12-03 Thread Joseph Crawford
To any familiar mac user they will know ;) it's the newcomers that will probably wonder, then again they will probably understand once they see that ever app has it. On Dec 3, 2008, at 3:35 PM, David Blanton wrote: There is no text entry capability in my app so this menu item looks like I

Re: Customizing menu drawing

2008-12-03 Thread Peter Ammon
On Dec 3, 2008, at 12:57 AM, Joe Ranieri wrote: I'm attempting to draw custom menus as part of a kiosk application where normal Mac OS X menus would look out of place. I can customize drawing of the individual menu items using a custom view (through -[NSMenuItem setView:]). However, there

NSSavePanel mishandling extensions

2008-12-03 Thread Russ
I have a NSSavePanel set up for the user to select a file name to store a file. The user can store it in several different formats. I have a NSPopUpButton configured to allow the user to select the desired format; upon a change, it calls the setRequiredFileType function with that single file

Re: Special Characters Edit Menu Item

2008-12-03 Thread David Blanton
OK. I'll leave it. Thanks all. On Dec 3, 2008, at 1:29 PM, David Duncan wrote: On Dec 3, 2008, at 12:09 PM, David Blanton wrote: I searched the archives and found no useful information on how to remove the Special Characters menu item from the edit menu. There is no sure fire way to

[MEET] CocoaHeads Mac Developer Meetings

2008-12-03 Thread Stephen Zyszkiewicz
Greetings, CocoaHeads is an international Mac programmer's group. We specialize in Cocoa, but everything Mac programming related is welcome. Why Should I Attend? Meeting other Mac OS X developers in person is both fun and immensely useful. There's no better way to learn Cocoa or get help with

Re: NSSavePanel mishandling extensions

2008-12-03 Thread Corbin Dunn
Have you tried: [savePanel setRequiredFileType:@txt]; [savePanel setAllowsOtherFileTypes:YES]; This is what TextEdit does. Does TextEdit work in a way similar to what you want to do? -corbin Le Dec 3, 2008 à 12:58 PM, Russ a écrit : I have a NSSavePanel set up for

Re: Determining unreleased objects after Quit

2008-12-03 Thread Joseph Kelly
On Dec 3, 2008, at 9:06 AM, Randall Meadows wrote: On Dec 3, 2008, at 9:38 AM, Jon C. Munson II wrote: Namaste! In my application, when I choose File-Quit, the application appears to terminate. HOWEVER, it doesn't. SOMETHING(s) is(are) left unreleased. Is there a handy way to

Binding/KVO question

2008-12-03 Thread Jean-Nicolas Jolivet
This might be an obvious question but I don't think I've ever had to do it...I'll try to keep the example as simple as possible: I have 2 classes; An AppController with a bunch of properties (lets say propA, probB and probC, all integers) that are bound to my main window's controls...

Setting NSTableView column header with Cocoa bindings

2008-12-03 Thread Larry Campbell
I'm having trouble setting the column header title in an NSTableView using Cocoa bindings. No matter what my value method returns, the header title displays as a single open parenthesis. I know, by setting a breakpoint, that my value method is getting called. All other uses of bindings

Re: NSSavePanel mishandling extensions

2008-12-03 Thread Russ
It works as desired when only a single permissible file extension is involved. (I have setAllowsOtherFileType:NO) But the issue is that the user has the option to save jpg, tif, bmp, png etc files---a specific supported list of types; the popup selects which type will be saved, and the

Re: Binding/KVO question

2008-12-03 Thread Keary Suska
On Dec 3, 2008, at 2:35 PM, Jean-Nicolas Jolivet wrote: In the same NIB file I have a second window with a custom view inside (Let's call it MyCustomView, in MySecondWindow) is there a way for MyCustomView to have properties that will be bound to my AppController's propA, propB and propC

Re: Binding/KVO question

2008-12-03 Thread Kyle Sluder
On Wed, Dec 3, 2008 at 4:35 PM, Jean-Nicolas Jolivet [EMAIL PROTECTED] wrote: An AppController with a bunch of properties (lets say propA, probB and probC, all integers) that are bound to my main window's controls... (all sliders..) when the main windows sliders are changed, the properties of

Re: Writing Array of Dictionaries to Defaults (CFPreferences)

2008-12-03 Thread [EMAIL PROTECTED]
I will begin by saying that I figured this out at about 9:30 last night. On Dec 1, 2008, at 7:08 PM, [EMAIL PROTECTED] wrote: // Notifies of change of data in table view. Make sure to reflect changes in datasource. - (void)tableView:(NSTableView *)aTableView setObjectValue: (id)anObject

Re: Binding/KVO question

2008-12-03 Thread Jean-Nicolas Jolivet
Well I'm trying to declare an outlet to my app controller in my custom view but as soon as I added it, the app wouldn't build anymore... (I get 2 errors, one where AppController declares an outlet to my custom view, and one where my custom view declares an outlet to my AppController) Not

Re: Special Characters Edit Menu Item

2008-12-03 Thread Randy Bradley
David, I think there must be a way since this menu item doesn¹t show up in my Entourage compose mail window.To be honest, I never noticed this before. It seems to me that there are many cases where special characters are not appropriate. If it really bothered me I guess I would try to

Re: Special Characters Edit Menu Item

2008-12-03 Thread Randall Meadows
On Dec 3, 2008, at 3:41 PM, Randy Bradley wrote: David, I think there must be a way since this menu item doesn’t show up in my Entourage compose mail window.To be honest, I never noticed this before. It seems to me that there are many cases where special characters are not

Trouble with array controller - array

2008-12-03 Thread jmunson
Namaste! OK, I'm confounded... I've got an outlet (tblUser) that's an NSArrayController. It is pointing at an Array Controller in my NIB called tblUser. That is point at an Entity called tblUser. The MOC is set up correctly. In my code, I've assigned an (NSArray *) aUser to [tblUser

Re: Binding/KVO question

2008-12-03 Thread Keary Suska
On Dec 3, 2008, at 3:39 PM, Jean-Nicolas Jolivet wrote: Well I'm trying to declare an outlet to my app controller in my custom view but as soon as I added it, the app wouldn't build anymore... (I get 2 errors, one where AppController declares an outlet to my custom view, and one where my

Adding an application to the login items

2008-12-03 Thread Bill Janssen
I'm writing an installer that adds an application to the login items, but my script (see below) keeps failing, with a bus error, like this: Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: KERN_PROTECTION_FAILURE at 0x Crashed Thread: 0 Thread 0 Crashed: 0

Re: Adding an application to the login items

2008-12-03 Thread Jason Coco
On Dec 3, 2008, at 19:36 , Bill Janssen wrote: I'm writing an installer that adds an application to the login items, but my script (see below) keeps failing, with a bus error, like this: You're dereferencing a null pointer. Assert that url is not null after CFURLRef.alloc()... returns.

Re: Live image preview, huge memory usage...

2008-12-03 Thread Rob Keniger
On 03/12/2008, at 6:22 PM, Jean-Nicolas Jolivet wrote: Quick question (2 actually), right now Im drawing my CIImage in a custom view... would drawing the CIImage in my view's drawRect method achieve the same (leak-free) result as your piece of code??? i.e. something simple like: snip

Re: Adding an application to the login items

2008-12-03 Thread Bill Janssen
Jason Coco [EMAIL PROTECTED] wrote: I'm writing an installer that adds an application to the login items, but my script (see below) keeps failing, with a bus error, like this: You're dereferencing a null pointer. Assert that url is not null after CFURLRef.alloc()... returns. I believe

Re: Live image preview, huge memory usage...

2008-12-03 Thread Jean-Nicolas Jolivet
Mmm I guess I was doing something wrong then! When I tried the code you posted, my image covered my main window... which, I assumed was not the expected behavior hehe (I did modify it a bit though... the thing is, I need to get a BitmapImageRep out of it and I'm not so sure how to do

Re: Trouble with array controller - array

2008-12-03 Thread jmunson
Ne'er mind, it somehow fixed itself... And I didn't change the code... Weird... Quoting [EMAIL PROTECTED]: Namaste! OK, I'm confounded... I've got an outlet (tblUser) that's an NSArrayController. It is pointing at an Array Controller in my NIB called tblUser. That is point at an Entity

Insertion bug in NSTreeController?

2008-12-03 Thread Rob Keniger
Hi all, I have a very simple model object that I want to use as a tree node in an NSTreeNode hierarchy. It has a NSMutableArray that I am using as the children key for NSTreeController. I'm having a problem when I call - insertObject:atArrangedObjectIndexPath: on NSTreeController where the

Re: NSSavePanel mishandling extensions

2008-12-03 Thread Rob Keniger
On 04/12/2008, at 8:09 AM, Russ wrote: This is a builtin feature in Windows, btw, it's a bit silly to have to spend my time to reproduce such a common function. Something like setAllowedFileTypes that takes an NSDictionary of extensions and user-readable equivalents would let NSSavePanel

Re: NSSavePanel mishandling extensions

2008-12-03 Thread Kyle Sluder
On Wed, Dec 3, 2008 at 10:05 PM, Rob Keniger [EMAIL PROTECTED] wrote: Seems like a good idea to me, you should file a bug. To be honest, NSSavePanel and NSOpenPanel should be using UTIs for this by now. I don't know why they're not. --Kyle Sluder ___

Big picture relationships between NSConnection, NSInputStream, NSOutputStream etc

2008-12-03 Thread Ken Tozier
Hi I'm working my way through the Distributed Objects documentation and am confused about when to use NSConnection, NSInputStream, NSOutputStream etc. The PictureBrowser example project doesn't even seem to use NSConnection and does its thing just fine. Reading the NSConnection docs, I

Programmatically loading an NSImage via other field

2008-12-03 Thread jmunson
Namaste! OK, I'm beat for the day... I'm struggling with how to load an image into an NSImage via another field's value. I have a field that contains a path name of an image file. The user can type it in or select it via OpenFile sheet. This works just fine and I'm setting the

How to make a RunLoop patiently do nothing?

2008-12-03 Thread Chris Idou
I want to have a separate thread in my app which does time consuming things. I want to assign tasks to this thread using performSelector:onThread. Now you can't have a runloop with no input sources, or it exits immediately. So how do I start a thread with a runloop that does nothing except

Re: Programmatically loading an NSImage via other field

2008-12-03 Thread Sean McBride
[EMAIL PROTECTED] ([EMAIL PROTECTED]) on 2008-12-03 10:23 PM said: I'm struggling with how to load an image into an NSImage via another field's value. I have a field that contains a path name of an image file. The user can type it in or select it via OpenFile sheet. This works just fine and

Re: How to make a RunLoop patiently do nothing?

2008-12-03 Thread Roland King
could you stick a useless, firing in a million years, timer in it? how willl you eventually make it shut down even if you do do that, or will it just hang out there until the application terminates? Chris Idou wrote: I want to have a separate thread in my app which does time consuming

Re: How to make a RunLoop patiently do nothing?

2008-12-03 Thread Sean McBride
Chris Idou ([EMAIL PROTECTED]) on 2008-12-03 10:44 PM said: I want to have a separate thread in my app which does time consuming things. I want to assign tasks to this thread using performSelector:onThread. Now you can't have a runloop with no input sources, or it exits immediately. So how do I

Re: Programmatically loading an NSImage via other field

2008-12-03 Thread Ken Tozier
Something like this should get you in the ballpark MyController : NSObject { IBOutlet NSTextField*imagePathField; IBOutlet NSImageView*imageView; } // register controller to receive messages from the text field - (void) awakeFromNib { [imagePathField

Re: How to make a RunLoop patiently do nothing?

2008-12-03 Thread Chris Idou
--- On Wed, 3/12/08, Roland King [EMAIL PROTECTED] wrote: could you stick a useless, firing in a million years, timer in it? Ok. how will you eventually make it shut down even if you do do that, or will it just hang out there until the application terminates? Good question. I had assumed

How to display simple dialog at application startup?

2008-12-03 Thread Sean McBride
Hi all, From the 'should be easy department'... :) I'd like my app to (sometimes) display a modal dialog at launch. It should appear before anything else, and no other interaction should be possible until it is dismissed. Something like the licence agreement each new version of iTunes makes

Re: How to make a RunLoop patiently do nothing?

2008-12-03 Thread Sean McBride
Chris Idou ([EMAIL PROTECTED]) on 2008-12-03 11:00 PM said: how will you eventually make it shut down even if you do do that, or will it just hang out there until the application terminates? Good question. I had assumed that something like [myThread performSelector:@selector(exit)

Re: Big picture relationships between NSConnection, NSInputStream, NSOutputStream etc

2008-12-03 Thread Ken Tozier
Thanks John. That cleared up a few things. Ultimately, what I want to do, is talk directly to a MySQL database without the need for the MySQL libraries. The libraries target specific processors and OS versions which makes maintenance a royal pain. I was thinking I could bypass the whole

Re: How to display simple dialog at application startup?

2008-12-03 Thread Chris Idou
Maybe you could launch your own untitled document, if that's what you need? --- On Wed, 3/12/08, Sean McBride [EMAIL PROTECTED] wrote: From: Sean McBride [EMAIL PROTECTED] Subject: How to display simple dialog at application startup? To: cocoa-dev@lists.apple.com Received: Wednesday, 3

Re: Special Characters Edit Menu Item

2008-12-03 Thread Michael Ash
On Wed, Dec 3, 2008 at 5:41 PM, Randy Bradley [EMAIL PROTECTED] wrote: David, I think there must be a way since this menu item doesn¹t show up in my Entourage compose mail window.To be honest, I never noticed this before. It seems to me that there are many cases where special

Re: How to make a RunLoop patiently do nothing?

2008-12-03 Thread Michael Ash
On Wed, Dec 3, 2008 at 11:11 PM, Sean McBride [EMAIL PROTECTED] wrote: You said you wanted your thread to 'patiently wait for performSelector:onThread: calls'? When do you want it to stop waiting? If at app quit time, then just leave it around. If earlier, then just send it a message to

Windows-Friendly Attachments

2008-12-03 Thread John MacMullin
I have the following NSAppleScript code that works as part of a loop that goes through an array to send emails with an attachment: [emailStriptString setString:[NSString stringWithFormat:@tell application \Mail\\n set newMessage to make new outgoing message with properties {subject:\[EMAIL

Re: Big picture relationships between NSConnection, NSInputStream, NSOutputStream etc

2008-12-03 Thread John Pannell
Hi Ken- You've got it: the intent with NSConnection is to vend proxy objects and get proxy objects for the DO system, facilitating communication via obj-c messaging. I can't speak from much experience on your other options. Apple seems to provide a number of levels of networking

custom view binding to NSTreeController

2008-12-03 Thread Matthew Johnson
I am creating a custom view which I would like to bind to NSTreeController. I have tried observing both [treeController arrangedObjects] and [[treeController arrangedObjects] childNodes]. Both seem to only notify that a change has occurred and do not provide any details about the change

Beginner memory management question

2008-12-03 Thread Jacob Rhoden
I am not sure how one would go about working this, Im writing my first test os/x applications and I am thinking this is probably not right. Am I doing the retain in the correct place? I tried reading the documentation on NSTextField but it didnt give me a clue about if I needed to retain.

Correct location to store application data.

2008-12-03 Thread Jacob Rhoden
I have an application which contains a dictionary file of sorts. Users can add/alter/and remove entries from a dictionary. I assume I will have the default dictionary stored as part of the application bundle somehow, and I should be saving a copy of some sort in a second hidden location, ie it

Linking CFBundle with static libraries

2008-12-03 Thread frank
Hi All, I'm developing a CFBundle plugin and would like to link it with some static libraries as I want only to distribute the CFBundle without the need to also distribute shared libraries (.dylib). The reason I have elected to use CFBundle is that I require the ability to load and unload

self = [super init];

2008-12-03 Thread EVS
self = [super init]; Why does the above line of code not cause a memory leak or memory fault? ___ 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

NSOutlineView initial expansion

2008-12-03 Thread Andrew Shamel
I've trolled through the archives looking for help on this, but I can't seem to find anything that quite works. I'm trying to set it up such that an NSOutlineView starts out fully expanded. In the delegate, I have the following code: - (void)awakeFromNib { [outline

Re: Custom Window Resize Image

2008-12-03 Thread Aby
Hi, NSDrawNinePartImage may do the job... Regards Abin On 12/4/08, Mr. Gecko [EMAIL PROTECTED] wrote: Hello, I'm writing a custom window for my application, but I can't figure out how to make a custom resize image... Any help? Thanks, Mr. Gecko

Re: self = [super init];

2008-12-03 Thread Stephen J. Butler
On Wed, Dec 3, 2008 at 1:14 PM, EVS [EMAIL PROTECTED] wrote: self = [super init]; Why does the above line of code not cause a memory leak or memory fault? Why do you think it should leak memory or cause a memory fault? ___ Cocoa-dev mailing list

Re: Big picture relationships between NSConnection, NSInputStream, NSOutputStream etc

2008-12-03 Thread Michael Ash
On Wed, Dec 3, 2008 at 11:14 PM, Ken Tozier [EMAIL PROTECTED] wrote: Thanks John. That cleared up a few things. Ultimately, what I want to do, is talk directly to a MySQL database without the need for the MySQL libraries. The libraries target specific processors and OS versions which makes

Re: Beginner memory management question

2008-12-03 Thread Nick Zitzmann
On Dec 3, 2008, at 3:13 AM, Jacob Rhoden wrote: I am not sure how one would go about working this, Im writing my first test os/x applications and I am thinking this is probably not right. Am I doing the retain in the correct place? Yes, but that's not your problem. I tried reading the

Re: Beginner memory management question

2008-12-03 Thread Luke Hiesterman
What you should do is declare newName as a property and then do self.newName = [stockName stringValue]; The synthesized property will take care of retaining and releasing for you. Luke Sent from my iPhone. On Dec 3, 2008, at 2:13 AM, Jacob Rhoden [EMAIL PROTECTED] wrote: I am not sure

Re: self = [super init];

2008-12-03 Thread Luke Hiesterman
What makes you think that it would? Sent from my iPhone. On Dec 3, 2008, at 11:14 AM, EVS [EMAIL PROTECTED] wrote: self = [super init]; Why does the above line of code not cause a memory leak or memory fault? ___ Cocoa-dev mailing list

Re: Linking CFBundle with static libraries

2008-12-03 Thread Nick Zitzmann
On Dec 3, 2008, at 7:33 AM, frank wrote: The reason I have elected to use CFBundle is that I require the ability to load and unload plugins and as far as I have seen, this is not possible with NSBundle. See: It doesn't matter; CFBundle and NSBundle are two sides of a coin. They aren't

Re: self = [super init];

2008-12-03 Thread Nathan Day
Usually self does not change, when the instance returned is different to the initially self then it is because the super init has decided that the initial self is not what it whats so it releases the initially self and returns a different object. This can happen for singltons or cluster

Re: custom view binding to NSTreeController

2008-12-03 Thread Rob Keniger
On 03/12/2008, at 11:51 AM, Matthew Johnson wrote: I am creating a custom view which I would like to bind to NSTreeController. I have tried observing both [treeController arrangedObjects] and [[treeController arrangedObjects] childNodes]. Both seem to only notify that a change has

Re: How to make a RunLoop patiently do nothing?

2008-12-03 Thread Adam R. Maxwell
On Dec 3, 2008, at 11:24 PM, Michael Ash wrote: On Wed, Dec 3, 2008 at 11:11 PM, Sean McBride [EMAIL PROTECTED] wrote: You said you wanted your thread to 'patiently wait for performSelector:onThread: calls'? When do you want it to stop waiting? If at app quit time, then just leave it

How to draw rounded Images

2008-12-03 Thread SridharRao M
Hi, How to draw rounded images (like application icons) for iPhone. Regards, SRIDHAR. ___ 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

Re: NSOutlineView initial expansion

2008-12-03 Thread Ashley Clark
If your outline's data is being populated from an NSTreeController then the fetch isn't happening until the next iteration of the event loop. If I understand it correctly this is done so that it can present any errors as a sheet on your window. Try delaying your call to expandItem: in your

Re: NSOutlineView initial expansion

2008-12-03 Thread Andrew Shamel
Ahh, brilliant!! It worked a treat. Thanks so much! Try delaying your call to expandItem: in your awakeFromNib. - (void)expandAllItems { [outline expandItem:nil expandChildren:YES]; } - (void)awakeFromNib { /* snip */ [self performSelector:@selector(expandAllItems)

Re: Correct location to store application data.

2008-12-03 Thread Nathan Day
If the data in the dictionary is simple you could perhaps look at NSUserDefaults, you could use your dictionary file to initialise NSUserDefaults, alternatively you could create a separate file in preferences. Be warned that you can only stick property list types in NSUserDefaults. On

[MEET] Cocoa Heads Sydney - Inaugural Christmas Drinks - Wednesday 17th at 6:30 pm

2008-12-03 Thread Mark Aufflick
Hi all, You are cordially invited to the Cocoa Heads Sydney Inaugural Christmas Drinks event with the following details. Wednesday December 17th at 6:30 pm Redoak Boutique Beer Cafe 201 Clarence Street, Sydney, NSW 2000 Australia Map: http://is.gd/aakN Bar food menu:

Re: Big picture relationships between NSConnection, NSInputStream, NSOutputStream etc

2008-12-03 Thread Ken Tozier
Thanks Mike Still trying to get my head around this stuff, but here's how I interpret what I need to do... Create a connection to MySQL #define DEFAULT_MYSQL_PORT_NUMBER 3306 socket = [[NSSocketPort alloc] initRemoteWithTCPPort: DEFAUT_MYSQL_PORT_NUMBER host: @some host];

Re: How to draw rounded Images

2008-12-03 Thread Peter N Lewis
How to draw rounded images (like application icons) for iPhone. The normal way is to create a rounded NSBezierPath, set the clipping, and then do your drawing. I believe rounded rect NSBezierPath was added in 10.5. I use the following category code for 10.4. NSBezierPath*

Re: Special Characters Edit Menu Item

2008-12-03 Thread Benjamin Dobson
On 4 Dec 2008, at 04:17:22, Michael Ash wrote: Consider that the special characters palette is system-wide, not app-specific. A user may activate it in another app and then bring yours up with the palette still available, even though it's not appropriate. A user may also wish to activate it

Help Menu

2008-12-03 Thread David Blanton
I have been required to develop and build with Xcode 2.41 on 10.4.11. In testing on 10.5.5 I get two help menus. Is there something I need to do for Help on 10.5.x ? David Blanton ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please