Re: including cocoa in cpp file

2009-06-05 Thread MacUser S
Thanks.It is working!!! From: Kyle Sluder To: MacUser S Cc: cocoa-dev@lists.apple.com Sent: Friday, June 5, 2009 1:39:48 AM Subject: Re: including cocoa in cpp file On Thu, Jun 4, 2009 at 3:15 AM, MacUser S wrote: > I', trying to compile a cpp file.i jus

Changing Menu item under application menu

2009-06-05 Thread Nikhil Khandelwal
Hi List, I want to change the name of application in the main menu programmatically. Using the following line of code I am able to get reference to other menu items like File, Insert, draw etc but not getting reference to application menu. [[NSApp mainMenu] itemWithTitle:@"File"]; By name of ap

Re: Changing Menu item under application menu

2009-06-05 Thread Rob Keniger
On 05/06/2009, at 6:46 PM, Nikhil Khandelwal wrote: I want to change the name of application in the main menu programmatically. Using the following line of code I am able to get reference to other menu items like File, Insert, draw etc but not getting reference to application menu. [[NSA

finding bundle identifiers

2009-06-05 Thread Rick C.
hello, is there a way to find all bundle identifiers that are installed? i do know how to get the bundle identifier of an app for example, but i'm looking for a way to find all identifiers on a system. thanks, rick ___ Cocoa-dev mailing li

debugging iPhone application from another Mac book

2009-06-05 Thread Shraddha Karwan
Hi, I have developed an application which I want to debug from a different Mac machine. I tried importing the private key to another Mac but I get an error: "Unable to import an item. The content of this item cannot be retrieved." Any idea what can be going wrong? -- Regards, Shraddha Karwan ___

RE: finding bundle identifiers

2009-06-05 Thread Nikhil Khandelwal
Thanks Rick. Its working -- Nikhil -Original Message- From: cocoa-dev-bounces+nikhil_khandelwal=persistent.co...@lists.apple.com [mailto:cocoa-dev-bounces+nikhil_khandelwal=persistent.co...@lists.apple.com] On Behalf Of Rick C. Sent: Friday, June 05, 2009 2:55 PM To: cocoa dev Subject

RE: Changing Menu item under application menu

2009-06-05 Thread Nikhil Khandelwal
Thanks Rob. Its working --Nikhil -Original Message- From: cocoa-dev-bounces+nikhil_khandelwal=persistent.co...@lists.apple.com [mailto:cocoa-dev-bounces+nikhil_khandelwal=persistent.co...@lists.apple.com] On Behalf Of Rob Keniger Sent: Friday, June 05, 2009 2:26 PM To: Cocoa Dev Subject

Set icon for files created

2009-06-05 Thread Nikhil Khandelwal
Hi Everyone, How I can set the icon for files created from my application? --- Nikhil DISCLAIMER == This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it i

Re: XIB and AppleGlot

2009-06-05 Thread Eric Slosser
On Jun 4, 2009, at 8:46 PM, Jonathan Hess wrote: On Jun 4, 2009, at 6:28 AM, Eric Slosser wrote: (Sorry if this is OT, I couldn't find a better apple-hosted list...) How does one use AppleGlot and XIBs? I have an app, "My.app", that was previously localized. I'm working on version 2.0.

Re: KVO and master-detail NSTableViews

2009-06-05 Thread Stefan Reitshamer
I think you're manually using KVO when you could (and perhaps should) be using bindings. I also think you're setting up the observations in the wrong direction. I wouldn't have the app controller observe properties of the array controller. Mediating controllers should bind to (thus, impl

Making an NSButton appear selected.

2009-06-05 Thread Shraddha Karwan
I have a series of buttons of type NSButton. When a particular button is selected, I want to make it appear gray as in this button is selected. When another button is selected, I need to change the color of the previously selected button from Gray to normal. By gray I mean textured. How do I achiev

Re: Nested AutoRelease Pools Crash

2009-06-05 Thread Reinhard Segeler
Maybe you solved the problem in the meantime, otherwise I recommend to use the solution below, which I use in my app - without the if condition with break - and works fine Am 26.04.2009 um 18:37 schrieb Trygve Inda: - (void)threadMethod:(id)anObject { NSAutoreleasePool* outterPool = [[NSAu

Re: Set icon for files created

2009-06-05 Thread Jerry Krinock
On 2009 Jun 05, at 03:28, Nikhil Khandelwal wrote: How I can set the icon for files created from my application? The short answer is CFBundleTypeIconFile. This, and other important information you'll need to know, is stored in the Info.plist file in the bundle. You should read these docum

Wich one is faster, compare or isEqualToString? (NSString methods)

2009-06-05 Thread Ignacio Enriquez
Hi there; Suppose I have NSString *char = [[NSString alloc] initWithString:@"a"]; So, I wonder which is faster? if([char isEqual:@"a"]) NSLog("it was a"); or if([char compare:@"a"]==NSOrderSame) NSLog("it was a"); or maybe is another faster than this two? thanks in advance... Ignacio __

Re: Touchscreens and control scaling

2009-06-05 Thread Ben
On 4 Jun 2009, at 18:01, Michael Ash wrote: On Thu, Jun 4, 2009 at 3:44 AM, Ben wrote: Hi list, I've been sketching out an application and could do with a little advice on which cocoa-direction to take. It's a full-screen (kiosk) type app, running in a very controlled environment (not fo

Re: Wich one is faster, compare or isEqualToString? (NSString methods)

2009-06-05 Thread Michael Ash
On Fri, Jun 5, 2009 at 8:20 AM, Ignacio Enriquez wrote: > Hi there; > Suppose I have > > NSString *char = [[NSString alloc] initWithString:@"a"]; > > So, I wonder which is faster? > > if([char isEqual:@"a"]) > NSLog("it was a"); > > or > > if([char compare:@"a"]==NSOrderSame) > NSLog("it was a");

Re: Wich one is faster, compare or isEqualToString? (NSString methods)

2009-06-05 Thread Bill Cheeseman
On Jun 5, 2009, at 9:51 AM, Michael Ash wrote: On Fri, Jun 5, 2009 at 8:20 AM, Ignacio Enriquez wrote: Hi there; Suppose I have NSString *char = [[NSString alloc] initWithString:@"a"]; So, I wonder which is faster? if([char isEqual:@"a"]) NSLog("it was a"); or if([char compare:@"a"]==NSO

Re: Set icon for files created

2009-06-05 Thread Randall Meadows
On Jun 5, 2009, at 5:48 AM, Jerry Krinock wrote: On 2009 Jun 05, at 03:28, Nikhil Khandelwal wrote: How I can set the icon for files created from my application? The short answer is CFBundleTypeIconFile. This, and other important information you'll need to know, is stored in the Info.plis

Hiding Glyphs

2009-06-05 Thread Philip White
Hello, Is there any easy way, maybe using NSGlyphInfoAttributeName, to have a glyph not be drawn at all? Like maybe replacing it with some kind of empty glyph? You can't seem to get glyphs for invisible characters, so I don't really know how to go about this. I did a pretty extensive sea

Searching in NSArray

2009-06-05 Thread Pierce Freeman
Hi Everyone: I am most likely overlooking this function, but I just can't seem to find it in the documentation. I am looking for some way to search an NSArray listing for one string that is part of multiple objects in the array. This search then returns the number of objects that contained that

Re: Searching in NSArray

2009-06-05 Thread KK
I'm not sure if this is what you're looking for, but Objective-C 2.0 has this: NSArray *a = [NSArray arrayWithObjects:@"Hello",@"Goodbye",nil]; for (NSString *s in a) { if ([s isEqualToString:@"Goodbye"]) { NSLog(@"it is equal"); } } And you can have an additional int (or NSInteg

Re: Searching in NSArray

2009-06-05 Thread Keary Suska
On Jun 5, 2009, at 9:36 AM, Pierce Freeman wrote: Hi Everyone: I am most likely overlooking this function, but I just can't seem to find it in the documentation. I am looking for some way to search an NSArray listing for one string that is part of multiple objects in the array. This sear

Re: Searching in NSArray

2009-06-05 Thread Kyle Sluder
Look at the predicate programming guide, documentation for NSPredicate, and -[NSArray filteredArrayUsingPredicate:]. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the lis

Re: Searching in NSArray

2009-06-05 Thread Pierce Freeman
Hi KK: I was aware of this method to do so, but can this be done if you needed to search for, say, ³Good² and wanted it to return Goodbye? Thanks for your help. On 6/5/09 8:50 AM, "KK" wrote: > I'm not sure if this is what you're looking for, but Objective-C 2.0 has this: > > NSArray *a = [N

Re: debugging iPhone application from another Mac book

2009-06-05 Thread Fritz Anderson
On 5 Jun 2009, at 4:34 AM, Shraddha Karwan wrote: I have developed an application which I want to debug from a different Mac machine. I tried importing the private key to another Mac but I get an error: "Unable to import an item. The content of this item cannot be retrieved." Any idea what

Re: Searching in NSArray

2009-06-05 Thread Pierce Freeman
Kyle: This looks like an interesting lead, I'll look into it later. On 6/5/09 8:52 AM, "Kyle Sluder" wrote: > Look at the predicate programming guide, documentation for > NSPredicate, and -[NSArray filteredArrayUsingPredicate:]. > > --Kyle Sluder

Re: Hiding Glyphs

2009-06-05 Thread Kyle Sluder
On Fri, Jun 5, 2009 at 8:36 AM, Philip White wrote: >  I should point out that I want to hide characters in a text view that do > not cause any advancement: diacriticals and such. Not sure what you mean here. That would make it very hard for someone to enter diacritics, wouldn't it? And even so,

Re: Searching in NSArray

2009-06-05 Thread KK
instead of [s isEqualToString:], you could use [s compare:] On Fri, Jun 5, 2009 at 11:53 AM, Pierce Freeman wrote: > Hi KK: > > I was aware of this method to do so, but can this be done if you needed to > search for, say, “Good” and wanted it to return Goodbye? > > Thanks for your help. > > > O

Re: Making an NSButton appear selected.

2009-06-05 Thread Benjamin Dobson
On 5 Jun 2009, at 12:41:10, Shraddha Karwan wrote: I have a series of buttons of type NSButton. When a particular button is selected, I want to make it appear gray as in this button is selected. When another button is selected, I need to change the color of the previously selected button fr

Re: Searching in NSArray

2009-06-05 Thread Kyle Sluder
On Fri, Jun 5, 2009 at 8:56 AM, Pierce Freeman wrote: > This looks like an interesting lead, I'll look into it later. Not to discourage you from reading the documentation, but this is how you would use it: -(NSArray *)itemsInArray:(NSArray *)inArray containingSubstring:(NSString *)substring { r

Re: Hiding Glyphs

2009-06-05 Thread Philip White
Hi, Well the text view is read-only for the user. I regret saying "diacriticals". I actually want to hide niqqudot and tashkil in Hebrew and Arabic. As far as I know, these are all separate characters. On Jun 5, 2009, at 9:56 AM, Kyle Sluder wrote: On Fri, Jun 5, 2009 at 8:36 AM, Philip

Re: Help Book: "Ask a Question" Fails

2009-06-05 Thread Fritz Anderson
On 4 Jun 2009, at 7:24 PM, K.Darcy Otto wrote: I have created a Help Book that is indexed and recognised as part of the Help function, running under Leopard. The Spotlight search works fine (when the user types search terms directly into the help menu). However, when the Help application

Re: Hiding Glyphs

2009-06-05 Thread Kyle Sluder
If it's read only for the user, why don't you just remove those characters from the text storage? NSTextStorage is a subclass of NSMutableAttributedString. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: How to animate an object in a circle, but preserve it's orientation

2009-06-05 Thread Miles
Awesome -- I'll give it a go. That makes total sense. Thanks so much! On Thu, Jun 4, 2009 at 9:04 PM, Graham Cox wrote: > > On 05/06/2009, at 1:48 PM, Miles wrote: > > Thanks for the quick response! >> >> I've mostly been reading trying to see what would work. I did mess with >> changing the an

Re: Hiding Glyphs

2009-06-05 Thread Philip White
That is certainly possible, but it doesn't seem like the elegant solution to me. I want the user to be able to turn these on and off at will. I can keep a backup of the original text and work off of that, but when texts start to be get long that will be a lot copying and deleting of charact

Re: Hiding Glyphs

2009-06-05 Thread glenn andreas
On Jun 5, 2009, at 11:06 AM, Philip White wrote: Hi, Well the text view is read-only for the user. I regret saying "diacriticals". I actually want to hide niqqudot and tashkil in Hebrew and Arabic. As far as I know, these are all separate characters. If they are read-only, why not j

detecting the in-line microphone switch

2009-06-05 Thread Bob Stuller
Folks, Greetings! Is there any way of detecting when the user clicks the in-line microphone switch? Peace, Bob Stuller As a rule, one should avoid generalizations. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Snow leopard cocoa application with setgid launching problem

2009-06-05 Thread Arun
Hi All, I have an cocoa application in which the binari has setgid bit set. This when launched in Leopard works fine. If i launch the same application in Snow Leopard, the application asks for admin authentication. Any reason why this is behaving in Snow leopard? Thanks Arun __

Re: XIB and AppleGlot

2009-06-05 Thread Jonathan Hess
On Jun 5, 2009, at 3:38 AM, Eric Slosser wrote: On Jun 4, 2009, at 8:46 PM, Jonathan Hess wrote: On Jun 4, 2009, at 6:28 AM, Eric Slosser wrote: (Sorry if this is OT, I couldn't find a better apple-hosted list...) How does one use AppleGlot and XIBs? I have an app, "My.app", that was pr

dragging window when selecting an NSImageView

2009-06-05 Thread iseecolors
I have a static NSImageView in a window and need to be able to have the user drag the window around when clicking on the image. This works for a static NSTextField in the window, but not the NSImageView? It seems like there should be a way to set the NSImageView be ignored by the event sy

Re: How to lock an object?

2009-06-05 Thread Greg Parker
On Jun 4, 2009, at 9:03 PM, cocoa learner wrote: How can I use mlock() for NSString and NSTextField? As argument to mlock is address of memory area and length. I have address of memory area but I do not have the length (as these are objects). class_getInstanceSize() will tell you how big an i

Cocoa Developers in DFW area

2009-06-05 Thread Jagmit Singh
Informal meeting of developers to share and learn. See link for details - http://cocoaheads.org/us/DallasTexas/index.html ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Scheduling an application

2009-06-05 Thread Tom Hohensee
You are going to have to programmatically load the plist. On Jun 3, 2009, at 4:52 AM, rethish wrote: hi, I want to launch my application using a time based scheduling. I have created a plist by setting the keys: Label, onDemand, ProgramArguments and startCalenderInterval. And I placed the pl

Update bound dictionary based on NSTextFieldCel l’s edited value

2009-06-05 Thread Justin Williams
I'm working on porting some ancient code (10.2 era) from NSCoding/ plist based archiving to using Core Data. I have an NSOutlineView with a custom NSTextFieldCell. The outline view is bound to an NSTreeController to provide the data. The bindings model looks like this: NSTreeController: Ma

get a window in front by clicking on a menu item

2009-06-05 Thread Martin Batholdy
hi! I have a problem, getting a window in front by clicking a menu item; In my xcode project I have a menuHandler, which has methods to create a menu, add items to that menu, delete items and so on. My AppController knows about the menuHandler and creates an instance of it in the awakeFrom

(newbie) help with combining navigation controller and tab bar controller

2009-06-05 Thread Beth Freeman
Hi,I'm just learning Cocoa. I need to build an app that has a navigation controller and a tab bar controller. Similar to the Huffington Post app: the initial view for the tab bar will be a table view, and each row in the table view will open up a detail view, and of course the nav bar at the top

Re: (newbie) help with combining navigation controller and tab bar controller

2009-06-05 Thread Luke the Hiesterman
The short answer is that any view inside your tab bar controller that you want to have navigation, you set the tab bar controller's viewController for that view to be an instance of UINavigationController. The following should help you. http://developer.apple.com/iphone/library/featuredarti

Re: get a window in front by clicking on a menu item

2009-06-05 Thread Alexander Spohr
Is myWindow nil? and it is called a method, not a function ;) atze Am 05.06.2009 um 18:03 schrieb Martin Batholdy: hi! I have a problem, getting a window in front by clicking a menu item; In my xcode project I have a menuHandler, which has methods to create a menu, add items to t

Re: (newbie) help with combining navigation controller and tab bar controller

2009-06-05 Thread Jonathan Hess
Hey Beth - You should be able to drag a navigation controller from IB's Library directly into the on screen editor (window) for the UITabBarController. Assuming you started with the default tab bar controller, at this point you will have produced a document with this structure: MainWind

Re: get a window in front by clicking on a menu item

2009-06-05 Thread Andy Lee
On Jun 5, 2009, at 12:03 PM, Martin Batholdy wrote: The method that generates this item in the menuHandler refers to the function "showWindow" inside itself (setTarget:self). Did you also do setAction:? If so, are you sure you capitalized and spelled the name of the action method correctly

Re: (newbie) help with combining navigation controller and tab bar controller

2009-06-05 Thread Randall Meadows
On Jun 5, 2009, at 11:18 AM, Beth Freeman wrote: Hi,I'm just learning Cocoa. I need to build an app that has a navigation controller and a tab bar controller. Similar to the Huffington Post app: the initial view for the tab bar will be a table view, and each row in the table view will open

Re: (newbie) help with combining navigation controller and tab bar controller

2009-06-05 Thread mmalc Crawford
On Jun 5, 2009, at 10:18 AM, Beth Freeman wrote: I haven't been able to find any examples online that show how to do this. ?? The documentation for UITabBarController links to two samples.

Re: How to lock an object?

2009-06-05 Thread Scott Ribe
> For example, NSString often uses > another allocation internally to hold the string data, and you have no > way to know where that is. Even if you use initWithBytesNoCopy:, you have no way to know whether some part of the system will need a string in a different encoding and make a copy. (Or mak

Re: get a window in front by clicking on a menu item

2009-06-05 Thread Alexander Spohr
Ah, wait! Am 05.06.2009 um 18:03 schrieb Martin Batholdy: My AppController [...] creates an instance of it in the awakeFromNib function. [...] I have created a window in the Interface Builder and have connected it with an IBOutlet NSWindow variable in the MenuHandler. If you create your

Re: XIB and AppleGlot

2009-06-05 Thread Eric Slosser
On Jun 5, 2009, at 1:25 PM, Jonathan Hess wrote: On Jun 5, 2009, at 3:38 AM, Eric Slosser wrote: On Jun 4, 2009, at 8:46 PM, Jonathan Hess wrote: On Jun 4, 2009, at 6:28 AM, Eric Slosser wrote: How does one use AppleGlot and XIBs? I have an app, "My.app", that was previously localized. I'm

Re: get a window in front by clicking on a menu item

2009-06-05 Thread Martin Batholdy
If you create your menuHandler in awakeFromNib, how can you connect it to the window in IB? It not there when you try to connect the outlet. You seem to connect to another / a wrong menuHandler instance. Yeah ... I think that is what is going wrong; what I know is, that the method (showWin

Re: Snow leopard cocoa application with setgid launching problem

2009-06-05 Thread Clark Cox
On Fri, Jun 5, 2009 at 10:23 AM, Arun wrote: > Hi All, > I have an cocoa application in which the binari has setgid bit set. This > when launched in Leopard works fine. > If i launch the same application in Snow Leopard, the application asks for > admin authentication. > Any reason why this is beha

Re: (newbie) help with combining navigation controller and tab bar controller

2009-06-05 Thread Beth Freeman
Hi Randall, Jon, Luke - Thanks so much for your fast responses, I truly appreciate it. Randall, your link to the twilloapp blog did the trick - that is exactly what I needed - thank you so much! And so much easier to understand and follow than the Apple documentation. Now I feel like I conceptua

crashing web browser with openURL call

2009-06-05 Thread iseecolors
I am making a call to openURL (in NSWorkspace) that works great as long as the default browser is already running and has a window open. However, if I make the call when the default browser is either not running, or does not have a window open, the get the console output below. I am guess

understanding problem; creation of instances of objects; xCode vs. Menu Builder

2009-06-05 Thread Martin Batholdy
hi, I think I have a major understanding problem ... And I just don't know how to solve the problem. I have a methodfile X and a methodfile Y And I have a window that I have set up in the Interface Builder. The window is connected with the method Y. So, when the program starts, the window

Re: get a window in front by clicking on a menu item

2009-06-05 Thread Alexander Spohr
A nib/xib contains frozen objects. If you load them they are thawed. You can load a nib multiple times with a new instance of its owner every time. Am 05.06.2009 um 21:52 schrieb Martin Batholdy: If you create your menuHandler in awakeFromNib, how can you connect it to the window in IB? It

Re: get a window in front by clicking on a menu item

2009-06-05 Thread Martin Batholdy
[menuItem setTarget:myWindowOutlet]; [menuItem setAction:@selector(makeKeyAndOrderFront:)]; ok, that makes sense to me. But now, the menuItem is inactive (so I cant click on it). here my code; hope someone can give me a clue what is wrong with the code... AppController.h #import "Men

Getting a frame number in a QTMovieView/QTMovie

2009-06-05 Thread Jean-Nicolas Jolivet
Hi there! I was wondering if there's a way to go to a specific frame number (or get the frame number of the QTMovieView's currentLocation) I can get a QTTime easily but apparently there's no easy way to convert this to a frame number... and getting the frame rate (FPS) of a video is just

Profiling a drag and drop operation

2009-06-05 Thread Tron Thomas
I have a program whereby when I drag and drop a certain file onto the application's window, the application will take a few seconds before it displays the file contents. An older program that this newer program was based on and uses a lot of the same code, will display the same file data in ab

Re: Getting a frame number in a QTMovieView/QTMovie

2009-06-05 Thread douglas welton
Did you check out the Q&A for computing a movie's static frame rate? Alternately, have you considered simply adding a timecode track (as seen in the example code ) and extracting the cou

Re: Profiling a drag and drop operation

2009-06-05 Thread Nick Zitzmann
On Jun 5, 2009, at 4:11 PM, Tron Thomas wrote: What could allow me to determine why the new program is much slower when trying to deal with this dropped file? Have you tried reproducing the problem with Shark running and sampling the app? Shark comes with the developer tools, unless you d

Re: Making an NSButton appear selected.

2009-06-05 Thread Tom Hohensee
I think what you want is to set the button to enabled or not through the action of another button? Since NSButton is a subclass on NSControl you could use the setEnabled method. interface IBOutlet NSButton *Abutton; IBOutlet NSButton *Bbutton; implementation -(IBAction)someA

Re: Profiling a drag and drop operation

2009-06-05 Thread Tron Thomas
Nick Zitzmann wrote: On Jun 5, 2009, at 4:11 PM, Tron Thomas wrote: What could allow me to determine why the new program is much slower when trying to deal with this dropped file? Have you tried reproducing the problem with Shark running and sampling the app? Shark comes with the developer

Re: Hiding Glyphs

2009-06-05 Thread Martin Wierschin
Is there any easy way, maybe using NSGlyphInfoAttributeName, to have a glyph not be drawn at all? Like maybe replacing it with some kind of empty glyph? You might read this post (and Aki's followup): http://www.cocoabuilder.com/archive/message/cocoa/2008/3/10/200928 The link for sou

Replacing a tableView Cell with null

2009-06-05 Thread Steven Hamilton
Hi, I have an NSTableview populated by bindings to Core Data. In one column I have a popupbutton (bad idea as its slow, I know) and in another I have a checkbox. I only want the checkbox to be available when certain items from the popupbutton are selected. To try and do this I've implement

Re: Hiding Glyphs

2009-06-05 Thread Philip White
On Jun 5, 2009, at 4:58 PM, Martin Wierschin wrote: Is there any easy way, maybe using NSGlyphInfoAttributeName, to have a glyph not be drawn at all? Like maybe replacing it with some kind of empty glyph? You might read this post (and Aki's followup): http://www.cocoabuilder.com/a

Re: Hiding Glyphs

2009-06-05 Thread Douglas Davidson
On Jun 5, 2009, at 8:36 AM, Philip White wrote: Is there any easy way, maybe using NSGlyphInfoAttributeName, to have a glyph not be drawn at all? Like maybe replacing it with some kind of empty glyph? You can't seem to get glyphs for invisible characters, so I don't really know how to go

Re: Replacing a tableView Cell with null

2009-06-05 Thread Corbin Dunn
On Jun 5, 2009, at 4:01 PM, Steven Hamilton wrote: Hi, I have an NSTableview populated by bindings to Core Data. In one column I have a popupbutton (bad idea as its slow, I know) and in another I have a checkbox. I only want the checkbox to be available when certain items from the popupbu

Re: Hiding Glyphs

2009-06-05 Thread Martin Wierschin
The link for source code still seems to be working. You know, that's the post I found a few months ago. Something is wrong with the linked file, of three compression program, one was able to decompress it but the result contained no source code. Hrm, I can't decompress it either. You might

Backtabbing into an NSTableView

2009-06-05 Thread K . Darcy Otto
I have an application where a 2-column NSTableView subclass is the main visual element. Users can select rows only, not columns. When the user has a row selected, and presses [Tab], the table automatically starts editing the first column. I want to make it so that when the user has a row

Re: Hiding Glyphs

2009-06-05 Thread glenn andreas
On Jun 5, 2009, at 6:45 PM, Martin Wierschin wrote: The link for source code still seems to be working. You know, that's the post I found a few months ago. Something is wrong with the linked file, of three compression program, one was able to decompress it but the result contained no sour

Re: understanding problem; creation of instances of objects; xCode vs. Menu Builder

2009-06-05 Thread Graham Cox
On 06/06/2009, at 7:20 AM, Martin Batholdy wrote: I think I have a major understanding problem ... And I just don't know how to solve the problem. I have a methodfile X and a methodfile Y And I have a window that I have set up in the Interface Builder. The window is connected with the metho

A couple questions about graphics

2009-06-05 Thread Development
Ok. I want to Know two things about graphics in cocoa since I've never much worked with them outside of adding icons to menus and tableviews. First, Do I have to learn OpenGL in order to utilize 3d data? I was hoping maybe there would be a way to use things I have built in Blender via coco

Re: Profiling a drag and drop operation

2009-06-05 Thread Michael Ash
On Fri, Jun 5, 2009 at 6:56 PM, Tron Thomas wrote: > Nick Zitzmann wrote: >> >> On Jun 5, 2009, at 4:11 PM, Tron Thomas wrote: >> >>> What could allow me to determine why the new program is much slower when >>> trying to deal with this dropped file? >> >> >> Have you tried reproducing the problem w

Re: dragging window when selecting an NSImageView

2009-06-05 Thread Michael Ash
On Fri, Jun 5, 2009 at 1:50 PM, iseecolors wrote: > I have a static NSImageView in a window and need to be able to have the user > drag the window around when clicking on the image.  This works for a static > NSTextField in the window, but not the NSImageView?  It seems like there > should be a way

Re: get a window in front by clicking on a menu item

2009-06-05 Thread Graham Cox
On 06/06/2009, at 2:03 AM, Martin Batholdy wrote: I have a problem, getting a window in front by clicking a menu item; In my xcode project I have a menuHandler, which has methods to create a menu, add items to that menu, delete items and so on. Since you're new to Cocoa and to OO programmi

Re: Replacing a tableView Cell with null

2009-06-05 Thread Steven Hamilton
Begin forwarded message: From: Steven Hamilton Date: 6 June 2009 11:59:18 AM To: Corbin Dunn Subject: Re: Replacing a tableView Cell with null On 06/06/2009, at 9:33 AM, Corbin Dunn wrote: On Jun 5, 2009, at 4:01 PM, Steven Hamilton wrote: Hi, I have an NSTableview populated by binding

Re: Hiding Glyphs

2009-06-05 Thread Philip White
Thank you very much, I think my situation makes some of the potential problems you mentioned probably not too problematic. None of the markings I want to suppress are precomposed, I believe. Also, the text shouldn't have any other decorations such as you mentioned and the text won't be us

Re: A couple questions about graphics

2009-06-05 Thread douglas welton
Hi April, In regard to your second question, the answer may be found by having an RTFM moment. Try reading through the aptly named QuickTime Video Effects and Transitions Guide. Try the chapter titled Built-in QuickTime Video Effects. regards, douglas On Jun 5, 2009, at 9:29 PM, Deve

re: A couple questions about graphics

2009-06-05 Thread Mr. George Warner
On Fri, 5 Jun 2009 18:29:52 -0700, Development > wrote: > First, Do I have to learn OpenGL in order to utilize 3d data? I was > hoping maybe there would be a way to use things I have built in > Blender via cocoa some how. Or is it possible to some how use a 3d > format of some type in an NSImage o

Re: Wich one is faster, compare or isEqualToString? (NSString methods)

2009-06-05 Thread Ken Thomases
On Jun 5, 2009, at 9:22 AM, Bill Cheeseman wrote: On Jun 5, 2009, at 9:51 AM, Michael Ash wrote: On Fri, Jun 5, 2009 at 8:20 AM, Ignacio Enriquez wrote: Hi there; Suppose I have NSString *char = [[NSString alloc] initWithString:@"a"]; So, I wonder which is faster? if([char isEqual:@"a"])

Re: A couple questions about graphics

2009-06-05 Thread Andrew Farmer
On 5 Jun 2009, at 20:46, Mr. George Warner wrote: On Fri, 5 Jun 2009 18:29:52 -0700, Development > wrote: > First, Do I have to learn OpenGL in order to utilize 3d data? I was > hoping maybe there would be a way to use things I have built in > Blender via cocoa some how. Or is it possible to some

Re: A couple questions about graphics

2009-06-05 Thread Development
Ok well I've seen a glut example that builds a 3d 'mech' and allows it's movement via the keyboard. So I suppose I'll be learning opengl with a focus on the glut library then. On Jun 5, 2009, at 8:53 PM, Andrew Farmer wrote: On 5 Jun 2009, at 20:46, Mr. George Warner wrote: On Fri, 5 Jun 20

Some objects swallow mouse events

2009-06-05 Thread Alejandro Rodriguez
Hello all, I'm working with a NSCollectionView that has a set of views inside it. I want the NSCollectionView to handle selections so I need to let it handle mouse events and yet my own views need to handle both mouseDown and mouseUp events. The problems arises because if the NSCollection