Help on Sparkle

2008-12-02 Thread Arnab Ganguly
Hi All, Can you tell me where can I get sample project with multiple nib files which uses Sparkle for update.I am trying to integrate sparkle but my Check for Update is always comes disabled.I have followed the documentation on the Sparkle's url but not able to proceed much. Thanks in advance

Re: best way to add transitions

2008-12-02 Thread M Pulis
Matt, Tried the IB trick, not sure what else to do to start it as now my images do not show up at all. My attract mode timer is still firing, calling setImageWithURL to change the picture every couple seconds, just nothing visual happens. Turn off IB fade, pictures show and change fine.

very different width for space character when not using screen fonts

2008-12-02 Thread Martin Wierschin
Hi everyone, I've a small mystery on my hands. When displaying text in the Italic Garamond font via an NSLayoutManager that has screen fonts disabled the horizontal space allocated for a normal space (good old 0x20) is too large. Here's a screenshot with screen fonts are enabled:

Re: ???amp ??? in ICARegisterForEventNotification Apple Code Sample

2008-12-02 Thread Steve Bird
On Dec 2, 2008, at 12:34 AM, M Pulis wrote: Folks, In the code below, from http://developer.apple.com/documentation/Carbon/Conceptual/ImageCaptureServicesProgrammingGuide/03HowtoWriteanImageCaptureApplication/chapter_3_section_1.html#/ /apple_ref/doc/uid/TP40005196-CH4-SW1 In the calls

Hide / show password in NSTextField / NSSecureTextField

2008-12-02 Thread Helder da Rocha
Hi! Does anybody know if there is a simple way to turn on/off the characters displayed in a Secure text Field? I didn't find any melhod in NSTextField or NSSecureTextField that does that. I would like to show bullets by default in a password box, but I offer a checkbox where the user can

NSTabView in my preference pane doesn't fill the view

2008-12-02 Thread Eric Czarny
Hello! I submitted this question to the CocoaDev forums, but didn't really get a good response: I am having a rather frustrating problem with an NSTabView in my preference pane. Basically, I have a simple NSWindow that contains an NSTabView. This NSTabView contains 4 empty tabs. I managed to

Creating and employing color constants

2008-12-02 Thread Helen Cooper
I have defined a color palette I want to access routinely as UIColor objects, but I am not convinced I am taking the right approach, particularly in regard to managing memory and minimizing memory used. I have defined a bunch of colors as follows, and am wondering if there is a better way to do

Writing Array of Dictionaries to Defaults (CFPreferences)

2008-12-02 Thread [EMAIL PROTECTED]
Hey All- I'm working on a Preference Pane for my app (System Preferences plugin) and need to write an array of dictionaries pulled from my NSTableView to defaults. I don't want to serialize it as data since I would like it to be editable from the command line as well (for easy network

[JOB] iPhone Developer, NYC | Full Time or Contract

2008-12-02 Thread Beau Gould
My client is a NYC-based creative company that focuses on imagining and making interactive things. They are looking for an iPhone Developer skilled in Objective-C and Cocoa/Xcode for either a full time, salaried position or contractual/hourly engagement. Salary / hourly depends on experience.

Drawing on to a WebView

2008-12-02 Thread Miles Tinsley
I am trying to draw on to a WebView. For example, I want to draw a box around a DOMNode. I have the node, but boundingBox seems to give very weird results, that are simply not useable. How do I best get the frame/bounds for a particular DOMNode, and then draw a box around it? If anyone

Re: Help on Sparkle

2008-12-02 Thread Steven Riggs
It's a little dated but check out the cocoacast video on sparkle: http://www.cocoacast.com/?q=node/49 Steven Riggs http://www.stevenriggs.com On Dec 2, 2008, at 7:00 AM, Arnab Ganguly wrote: Hi All, Can you tell me where can I get sample project with multiple nib files which uses Sparkle

Need help on parsing XML file and memory leaks

2008-12-02 Thread Vijay G. Ramachandran
Hi, I am new to iPhone application development. Not sure where to post my questions, hence mailing you. I am writing an iPhone application thats parses data returned in XML format by a server. I saw the Seismic sample program in iPhone development program as reference. I am not using multiple

Re: Viewing Documentation in Safari

2008-12-02 Thread Jeff Johnson
Gerriet, (This really belongs on the xcode-users mailing list rather than cocoa- dev, I think.) Following instructions I found on the web, I created the file ~/ Library/Preferences/com.apple.DownloadAssessment.plist with the following contents: ?xml version=1.0 encoding=UTF-8? !DOCTYPE

Re: Viewing Documentation in Safari

2008-12-02 Thread Patrick Mau
On 02.12.2008, at 15:43, Jeff Johnson wrote: Then I logged out and logged back in. This provides a permanent solution to the dialog problem, not only for Xcode docs but in general. If you want a more specific solution, try this: sudo find /Developer/Documentation/DocSets -exec xattr -d

FW: tracking down a table column...

2008-12-02 Thread Jon C. Munson II
Namaste! I’m getting an “ambiguous” error in my log that I can’t readily resolve. The error is: Cocoa bindings error:  Error accessing bound property of object NSTableColumn 0x196370: [NSTableColumn 0x196370 valueForUndefinedKey:]: this class is not key-value coding compliant for the key value

Re: Writing Array of Dictionaries to Defaults (CFPreferences)

2008-12-02 Thread Steven Riggs
Here's an example of how to do it with no code... http://www.stevenriggs.com/Site/Cocoa_Programming.html Good luck, Steven Riggs On Dec 1, 2008, at 8:08 PM, [EMAIL PROTECTED] wrote: Hey All- I'm working on a Preference Pane for my app (System Preferences plugin) and need to write an

Re: Time measurement

2008-12-02 Thread Dave DeLong
NSTimeInterval someInterval = [NSDate timeIntervalSinceReferenceDate]; From the docs: NSTimeInterval is always specified in seconds; it yields sub- millisecond precision over a range of 10,000 years. HTH, Dave On Dec 2, 2008, at 12:08 AM, Daniel Luis dos Santos wrote: Hello, Not sure I

Cocoa replacement for SetWindowModality

2008-12-02 Thread Russ
In my UI there's a spot where it's very useful for the user to be able to change a window from modal to modeless for a little while. In Carbon, I used SetWindowModality to do so. How can I do the same in Cocoa? It doesn't look like I can reconfigure a run loop to do this. Thanks.

Re: tracking down a table column...

2008-12-02 Thread Benjamin Stiglitz
I’m getting an “ambiguous” error in my log that I can’t readily resolve. The error is: Cocoa bindings error: Error accessing bound property of object NSTableColumn 0x196370: [NSTableColumn 0x196370 valueForUndefinedKey:]: this class is not key-value coding compliant for the key value I’d

Re: Xcode messes up my Log Files

2008-12-02 Thread Patrick Mau
Hi Gerriet Somebody wrote a nice Xcode plugin at: http://0xced.blogspot.com/2008/09/quietxcode.html I never tried it myself, but thought it was a cool idea when I googled for a similar problem. Regards, Patrick On 02.12.2008, at 08:26, Gerriet M. Denkmann wrote: Whenever Xcode is

Re: best way to add transitions

2008-12-02 Thread Matt Long
Gary, I have to apologize here as the IB interface to transitions seemed like a sure thing to me so I just replied without testing--something I try to avoid. Anyhow, I've also tried to implement it in IB as well as in code, but you're right, no dice. Can't make it work on my end either.

popup grid menu

2008-12-02 Thread Brian Williams
Hello, I'm trying to implement a popup menu with a 8x9 grid of small rectangles to choose from... I'm trying to use Cocoa's pre-defined functionality as much as possible, but it seems even from examples from Apple that doing grids in popups just isn't very Cocoa-ish... Seems the NSMenu is

Re: UIImageView drawRect not called

2008-12-02 Thread David Duncan
On Dec 1, 2008, at 6:45 PM, DKJ wrote: I have a subclass of UIImageView, MySubView, which is instantiated and added as a subview in the viewDidLoad method of a UIViewController. MySubView displays a picture without difficulty when its image property is set in its initWithFrame method. But

Re: Shouldn't NSOpenPanel media browser aliases be resolved before type check?

2008-12-02 Thread Corbin Dunn
Le Dec 1, 2008 à 5:32 PM, Nathan Vander Wilt a écrit : My Leopard-only application needs to be able to import any image supported by CGImageSource, so I create an NSOpenPanel and pass the array obtained from CGImageSourceCopyTypeIdentifiers() to runModalForTypes. This makes the Media

currentDocument

2008-12-02 Thread gMail.com
Hi, I use to get the currentDocument this way [[NSDocumentController sharedDocumentController] currentDocument] It works well but not in the following case My apps opens automatically a document with - (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError

Re: Hide / show password in NSTextField / NSSecureTextField

2008-12-02 Thread Helder da Rocha
Yes. I tried that. But it doens't show the characters. It simply toggles from showing nothing to showing bullets. I want to toggle from showing characters to showing bullets (I want to reveal what's under the bullets - it's a long passphrase and easy to mispell) Helder. On Dec 2, 2008,

RE: tracking down a table column...

2008-12-02 Thread Jon C. Munson II
OK, I gave that a shot...got nada. First, I got: No symbol id in current context. So, I took (id) out of the call. Then I got: Cannot access memory at address 0x0 I did try the call for the tableView, but got the same as id above. Sorry, I'm a bit new to XCode... Peace, Love, and

Re: very different width for space character when not using screen fonts

2008-12-02 Thread Douglas Davidson
On Dec 2, 2008, at 6:06 AM, Martin Wierschin wrote: I don't expect this is something I'll be able to work around, but even if I just wanted to report it to Apple, is this a problem with the font itself or the layout system? Any thoughts? Most likely this is a font issue, but go ahead and

Re: Rebuilding menus (menuNeedsUpdate:) and System Preferences keyboard shortcuts.

2008-12-02 Thread Keith Blount
Many thanks again for your reply, much appreciated, and for your suggestions. Actually, I think I might be able to improve things with a better use of -menuHasKeyEquivalent..., if I understand correctly. It's not quite as bad as all the menus are populated for every key combo. What is

Re: tracking down a table column...

2008-12-02 Thread Benjamin Stiglitz
OK, I gave that a shot...got nada. First, I got: No symbol id in current context. So, I took (id) out of the call. Then I got: Cannot access memory at address 0x0 I did try the call for the tableView, but got the same as id above. Did you paste the lines exactly as they were, or

RE: tracking down a table column...

2008-12-02 Thread Jon C. Munson II
I used the then-current hex vals. Peace, Love, and Light,   Jon C. Munson II And Jesus looking upon them saith, With men it is impossible, but not with God: for with God all things are possible. [Mark 10:27; KJV] I sign Peace, Love, and Light for at least two reasons.  First, it is my truest

Re: NSTabView in my preference pane doesn't fill the view

2008-12-02 Thread Raleigh Ledet
Eric, The pref pane window adjusts vertically, but has a static width. The contents of your window are always centered horizontally in the system preference pane window. (ie springs are not expected to work) The width of the system preference pane changed between Tiger and Leopard. It

Re: tracking down a table column...

2008-12-02 Thread Corbin Dunn
Do you have an identifier set for each column? Verify by looking in IB. Then repeat Ben's steps. (Also, I think the (id) is unnecessary). corbin Le Dec 2, 2008 à 8:57 AM, Jon C. Munson II a écrit : I used the then-current hex vals. Peace, Love, and Light, Jon C. Munson II And Jesus

RAOperationQueue, an open-source replacement for NSOperationQueue

2008-12-02 Thread Michael Ash
I've been talking a lot lately about how NSOperationQueue is broken (crashes) on Leopard. Rogue Amoeba, my employer, has decided to open source our replacement, and I wanted to announce it to the list. RAOperationQueue isn't a 100% replacement. It was written only to take care of our particular

Re: Cocoa replacement for SetWindowModality

2008-12-02 Thread j o a r
On Dec 2, 2008, at 7:28 AM, Russ wrote: In my UI there's a spot where it's very useful for the user to be able to change a window from modal to modeless for a little while. In Carbon, I used SetWindowModality to do so. How can I do the same in Cocoa? It doesn't look like I can reconfigure

Strange issue with NSTabView

2008-12-02 Thread Ian was here
I created a tab-less NSTabView with seven tabs. Each tab is selected programatically using selectTabViewItemWithIdentifier: (for testing purposes I have also used selectTabViewItemAtIndex: and selectedTabViewItem:). At first I noticed that the tabs weren't changing. It was stuck on the default

Is NSOperation right for this job?

2008-12-02 Thread Jean-Nicolas Jolivet
Basically I have an image preview window (that is simply bound to some data in my controller)... the size and brightness/control/saturation of the image can be changed with sliders... when a slider value is changed, the image data is updated (this is the operation that takes some time

Re: currentDocument

2008-12-02 Thread Jerry Krinock
On 2008 Dec, 02, at 8:06, gMail.com wrote: I really build my objects using the dictionary mDocDict. But at this point [[NSDocumentController sharedDocumentController] currentDocument] returns nil.. How to fix this? Looks like your document is not registered with the

Re: Cocoa replacement for SetWindowModality

2008-12-02 Thread Russ
I have a dialog that lets you experimentally make changes to the file based on statistical measures. It is modal because when you're messing with it, it is repeatedly undoing the prior changes then making new ones. It needs to keep a fairly tight lock on the situation to avoid creating many

Re: Strange issue with NSTabView

2008-12-02 Thread Ian was here
Yes, the tabview is connected with an IBOutlet. I just confirmed in the debugger that the tab view's outlet address is valid and that the tab view being passed into the delegate is the same as the outlet's. It all checks out OK. I'm thinking of binding the tab view to a variable instead. Maybe

Re: Rebuilding menus (menuNeedsUpdate:) and System Preferences keyboard shortcuts.

2008-12-02 Thread Peter Ammon
On Dec 2, 2008, at 8:47 AM, Keith Blount wrote: The trouble is - unless I'm doing something wrong, which is likely - that -menuHasKeyEquivalent... doesn't seem to work like this; it seems to be an all or nothing deal. I can return NO, in which case none of the menus get populated. But if

Re: very different width for space character when not using screen fonts

2008-12-02 Thread Ross Carter
On Dec 2, 2008, at 9:06 AM, Martin Wierschin wrote: Hi everyone, I've a small mystery on my hands. When displaying text in the Italic Garamond font via an NSLayoutManager that has screen fonts disabled the horizontal space allocated for a normal space (good old 0x20) is too large. I

RE: tracking down a table column...

2008-12-02 Thread Jon C. Munson II
Namaste! By identifier, I presume you mean a name other than the object ID? If so, I gave the possible columns names. I re-ran the app, paused, etc., retried Ben's steps. Same result (using the now-current hex vals). Sorry, don't mean to be pig-headed, still learning my way around this

Re: Writing Array of Dictionaries to Defaults (CFPreferences)

2008-12-02 Thread [EMAIL PROTECTED]
Thanks Steven- That's a helpful example, but does not work in my example. From my research of Apple's docs, NSUserDefaults, and the SharedDefaultsController can only save defaults to ~/Library/ Preferences and for the app that is running it (in your example case

RE: tracking down a table column...

2008-12-02 Thread Jon C. Munson II
OK, nevermind that last message... I found it. I undid the bindings for the table column and found a rogue value binding at the bottom of the inspector...don't know where that came from... Undoing that binding not only caused that item to completely disappear but also fixed the problem.

Re: best way to add transitions

2008-12-02 Thread M Pulis
Thanks, Matt, Your second effort is much appreciated. At least I can put this problem away for the moment I'll take a look at the swapping deal, but, it does seem a bit out of the way when IB implies functionality and the API's look the way they do. I'd hate to implement it just to have

Re: Rebuilding menus (menuNeedsUpdate:) and System Preferences keyboard shortcuts.

2008-12-02 Thread Keith Blount
Many thanks! Having a separate delegate for the large document-listing menus sounds a reasonable solution. That will just be one extra delegate in the MainMenu.nib to handle this and it should fix all my issues - so thank you! One final question, I promise: does this apply to contextual menus,

RE: tracking down a table column...

2008-12-02 Thread Jon C. Munson II
OK, figured out where the rogue value came from. Prior to my having placed a popup in the cell I had a value binding for the base cell. Now I know to remove those prior to dropping other cell types in, or, better, yet, don't bind until I have to...:) Peace, Love, and Light,   Jon C. Munson II

Re: Hide / show password in NSTextField / NSSecureTextField

2008-12-02 Thread Andre Masse
You could use a secure and plain text field bound to the same value and hide/show one as needed. Andre Masse On Dec 2, 2008, at 11:26, Helder da Rocha wrote: Yes. I tried that. But it doens't show the characters. It simply toggles from showing nothing to showing bullets. I want to toggle

Re: Rebuilding menus (menuNeedsUpdate:) and System Preferences keyboard shortcuts.

2008-12-02 Thread Peter Ammon
Context menus are not consulted when searching for key equivalents, unless they're actually open at the time, so you should not see the same problem. Also, all user key equivalents (what users can set in SysPrefs) are deliberately suppressed in context menus. This is because it would be

Re: Hide / show password in NSTextField / NSSecureTextField

2008-12-02 Thread Helder da Rocha
Hi Andre, That's what I ended up doing, but I thought it was a clumsy solution. It seems to me that to create two visual input objects with the same dimensions in the same position to handle the same information is at least unnecessary duplication. I was hoping there would be some

Button title irregularities

2008-12-02 Thread Randall Meadows
I am porting an iPhone app to the Mac, and the client desires the exact same look-and-feel on the Mac as they have on the iPhone. So I am doing some custom drawing to achieve that. It's mostly going OK, but I've found myself wasting far too much time on this one little detail, and it's

Live image preview, huge memory usage...

2008-12-02 Thread Jean-Nicolas Jolivet
(This is linked to my last post on the list, however it's a completely different topic so I posted it separately) To sum it up, my app allows to do some basic modifications to an image (brightness/contrast/saturation among others) those are applied via CIFilters, the app also allows to

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

2008-12-02 Thread glenn andreas
On Dec 2, 2008, at 5:29 PM, Jean-Nicolas Jolivet wrote: (This is linked to my last post on the list, however it's a completely different topic so I posted it separately) To sum it up, my app allows to do some basic modifications to an image (brightness/contrast/saturation among others)

Re: Rebuilding menus (menuNeedsUpdate:) and System Preferences keyboard shortcuts.

2008-12-02 Thread Keith Blount
Many thanks for both your informative answers and your patience. Your help has solved both the slowdown and key equivalent issues my program was having with menus, and I'm very grateful. Thanks again and all the best, Keith --- On Tue, 12/2/08, Peter Ammon [EMAIL PROTECTED] wrote: From: Peter

NSImageView antialiasing when scaling up images

2008-12-02 Thread Jonathon Kuo
I have some tiny images (4x3, etc) that I'm displaying in a large NSImageView. I set the view with setImageScaling:NSScaleToFit. This works, but instead of getting well-defined block 'pixels', I get sort of a 'shower-door' gradient effect within each pixel block. inline: Picture 59.png

Problems with custom handling of open AppleEvent

2008-12-02 Thread Sean McBride
Hi all, I have a document-based app. Doc opening is working well. Now my app also needs to be able to open .foo files. However, these are not document files, and there is no NSDocument subclass related to them. I want to treat .foo files specially (show a special window), and let Cocoa handle

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

2008-12-02 Thread Jean-Nicolas Jolivet
Well, right now I am using CoreImage (CIImage and CIImageFilters) to do the brightness/contrast adjustment... The problem is, I still have to put the result in my NSImageView after that (which is, I assume, what takes up all this ram??) On 2-Dec-08, at 6:38 PM, glenn andreas wrote: On

NSAnimation subclass calling display on a view

2008-12-02 Thread David Alter
I'm creating an animation using NSAnimation. I have created a subclass of NSAnimation that over loads setCurrentProgress. The delegate is a subclass of NSImageView. When setCurrentProgress gets called I call my delegate display method. My drawRect method in my subclass of NSImageView identifies if

SCNetworkReachabilityCreateWithName linking problem

2008-12-02 Thread Ariel Rodriguez
I;m trying to use SCNetworkReachabilityCreateWithName to test for reachability on my app, but i cannot get it to link the project. The linker complains about not finding the symbol. Obviously the directive #import SystemConfiguration/SystemConfiguration.h is on place. I have been able to

Re: Problems with custom handling of open AppleEvent

2008-12-02 Thread Quincey Morris
On Dec 2, 2008, at 15:49, Sean McBride wrote: 1) Subclassing NSDocumentController and implementing openDocumentWithContentsOfURL:display:error:. This almost works perfectly. I can detect .foo files and do my special handling, but when I return nil, Cocoa 'helpfully' displays a generic error

Re: Button title irregularities

2008-12-02 Thread Aki Inoue
You're using Helveitca 12.0 as your label font. Use [NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize: [yourButton controlSize]]] instead. Aki On 2008/12/02, at 13:39, Randall Meadows wrote: I am porting an iPhone app to the Mac, and the client desires the exact same

Creating a Bottom Bar on NSWindow

2008-12-02 Thread Mike Chambers
I am working on an app, and need to create a bottom bar for it. I could not find any control or info on how to do this, but I noticed that if I set the Appearance : Texture attribute to true in Interface Builder (for the window), I seemed to get a bottom bar. You can see a screenshot here:

Re: Creating a Bottom Bar on NSWindow

2008-12-02 Thread Andre Masse
If you're targeting Leopard, you can put these 2 lines in your controller's -awakeFromNib: method: [[self window] setAutorecalculatesContentBorderThickness:YES forEdge:NSMinYEdge]; [[self window] setContentBorderThickness: 32.0 forEdge: NSMinYEdge]; Cheers, Andre Masse On Dec 2, 2008, at

Re: NSImageView antialiasing when scaling up images

2008-12-02 Thread Mike Abdullah
You'll want to subclass NSImageView and implement your own -drawRect: method. Call super's implementation, but beforehand, do something like: [[NSGraphicsContext currentContext] set setImageInterpolation: NSImageInterpolationNone]; On 2 Dec 2008, at 23:45, Jonathon Kuo wrote: I have some

Re: Button title irregularities

2008-12-02 Thread Randall Meadows
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 systemFontSizeForControlSize: [yourButton controlSize]]]

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

2008-12-02 Thread douglas welton
Jean-Nicolas, I haven't followed all of your previous post, so I may be proposing something that you have dismissed already... Is there a reason that you are using NSImageView to display the image instead of drawing directly (in a custom view) from the CIImage that is output from the

Re: NSImageView antialiasing when scaling up images

2008-12-02 Thread Jonathon Kuo
Totally awesome! Thank you! On Dec 2, 2008, at 5:11 PM, Mike Abdullah wrote: You'll want to subclass NSImageView and implement your own - drawRect: method. Call super's implementation, but beforehand, do something like: [[NSGraphicsContext currentContext] set setImageInterpolation:

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

2008-12-02 Thread Jean-Nicolas Jolivet
Interesting... I thought about it but dismissed the idea (can't really remember why)... The thing is, though, that I am also doing some fancier stuff with the pic ( i.e re-sizing and/or cropping, adding a border etc..).. I wrote all these methods already without CIImage (basically Im using

NSURL bug with IPv6 addresses

2008-12-02 Thread Larry Campbell
This snippet: url = [[[NSURL alloc] initWithString:@http:// [2001:4860:0:2001::68]/] autorelease]; NSLog(@url host=\[EMAIL PROTECTED], absolute string=\[EMAIL PROTECTED], [url host], [url absoluteString]); url = [[[NSURL alloc] initWithScheme:@http host:@2001:4860:0:2001::68

Re: Viewing Documentation in Safari

2008-12-02 Thread Gerriet M. Denkmann
On 2 Dec 2008, at 22:53, Johnson [EMAIL PROTECTED] wrote: Gerriet, (This really belongs on the xcode-users mailing list rather than cocoa- dev, I think.) I do not think so. Viewing the documentation is an integral part of programming in Cocoa. And I never use Xcode to read

Re: Xcode messes up my Log Files

2008-12-02 Thread Gerriet M. Denkmann
On 2 Dec 2008, at 17:36, Patrick Mau wrote: Somebody wrote a nice Xcode plugin at: http://0xced.blogspot.com/2008/09/quietxcode.html I never tried it myself, but thought it was a cool idea when I googled for a similar problem. I just tried it: works perfectly. But it is (at least to me)

import static library

2008-12-02 Thread BirdSong
Hi all,I have an external c++ static library and want to use it in my cocoa project. I just drag the .a file into my project but seems my code didn't find the methods in the library. I guess maybe I need to set some link path or so, but I don't know how to set and which parameter, does anyone

Re: import static library

2008-12-02 Thread Nick Zitzmann
On Dec 2, 2008, at 9:19 PM, BirdSong wrote: Hi all,I have an external c++ static library and want to use it in my cocoa project. I just drag the .a file into my project but seems my code didn't find the methods in the library. I guess maybe I need to set some link path or so, but I don't

Re: Writing Array of Dictionaries to Defaults (CFPreferences)

2008-12-02 Thread Ken Thomases
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 forTableColumn:(NSTableColumn *)aTableColumn row: (NSInteger)rowIndex {

Re: Accessing objects in NSMutableArray directly or using the NSArrayController?

2008-12-02 Thread Ken Thomases
On Dec 2, 2008, at 5:48 PM, Mikael Wämundson wrote: In my project I'm using instances of NSMutableArray containing various objects. The arrays are used in the user interface through NSArrayControllers with binding. In IB I'm thus accessing the objects in the array through the controller.

Re: currentDocument

2008-12-02 Thread Michael Ash
On Tue, Dec 2, 2008 at 11:06 AM, gMail.com [EMAIL PROTECTED] wrote: Hi, I use to get the currentDocument this way [[NSDocumentController sharedDocumentController] currentDocument] It works well but not in the following case My apps opens automatically a document with -

Re: Hide / show password in NSTextField / NSSecureTextField

2008-12-02 Thread Michael Ash
On Tue, Dec 2, 2008 at 4:10 PM, Helder da Rocha [EMAIL PROTECTED] wrote: Hi Andre, That's what I ended up doing, but I thought it was a clumsy solution. It seems to me that to create two visual input objects with the same dimensions in the same position to handle the same information is at

Re: NSURL bug with IPv6 addresses

2008-12-02 Thread Kyle Sluder
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 to get it to work? Interestingly enough, the documentation only refers to RFC 1808,

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

2008-12-02 Thread Jean-Nicolas Jolivet
mmm thanks for the info, I'm trying right now to draw directly in a custom view... unfortunately I still get the same result... on average each time I regenerate the preview the memory usage in Activity monitor goes up by approx. 10mb (real memory), and never comes down... at this rate it

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

2008-12-02 Thread Jean-Nicolas Jolivet
hmmm while playing with Instruments and Activity Monitor I realized two things...first, Activity Monitor (as I knew already) is not really a good indication for finding leaks... Also, It seems like the memory usage is climbing only when I make usage of CIImage... if I only re-size/crop

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

2008-12-02 Thread Jean-Nicolas Jolivet
Hmm I just found an older post that mentions a big memory leak problem when drawing CIImage offscreen I guess I'll have to do this differently... On 3-Dec-08, at 2:20 AM, Jean-Nicolas Jolivet wrote: hmmm while playing with Instruments and Activity Monitor I realized two

Re: Button title irregularities

2008-12-02 Thread Benjamin Dobson
On 3 Dec 2008, at 01:15:32, Randall Meadows wrote: And I'm using that because that's what my client used on their iPhone app, and they want the Mac app to have the exact same look and feel. Then why not use Helvetica? ___ Cocoa-dev mailing list