Re: Leopard on PPC

2008-04-28 Thread Lorenzo
Hi Clark, I had time to go back on this trouble again. My client, who has never been able to run my app on his PPC with Leopard, sent me a new crash log. This time I didn't use CFNumberRef but I used just NSNumber. NSNumber*width = [NSNumber numberWithInt:(int)(size.width)]; options = [NSDicti

Re: Leopard on PPC

2008-04-28 Thread Nick Zitzmann
On Apr 28, 2008, at 1:31 AM, Lorenzo wrote: 8 com.apple.Foundation 0x951a1ba0 _NSOutOfMemoryErrorHandler + 60 Are you sure your program is not trying to exceed the 4 GB memory limit? Does this happen on PPC64 as well? Nick Zitzmann __

Re: Leopard on PPC

2008-04-28 Thread Lorenzo
Hi Nick, my client sent me this info about his machine. Model Name:Power Mac G4 (Mirror Door) Model Identifier: PowerMac3,6 Processor Name:PowerPC G4 (3.2) Processor Speed: 1.25 GHz Number Of CPUs:2 L2 Cache (per CPU):256 KB L3 Cache (per CPU):2 MB M

Re: Leopard on PPC

2008-04-28 Thread Jean-Daniel Dupas
An invalid byte swap may result in allocation of a big memory block (ie. malloc(mySize) and "mySize" was not swapped). This is the kind of issues you may have between Intel and PPC version. Is it possible that this problem occurs somewhere in your code ? Le 28 avr. 08 à 09:48, Lorenzo a écr

Re: Leopard on PPC

2008-04-28 Thread Jean-Daniel Dupas
Sorry for the noise. I should read the whole topics before replying. If it works on Tiger, this is not a swapping issus. Le 28 avr. 08 à 09:58, Jean-Daniel Dupas a écrit : An invalid byte swap may result in allocation of a big memory block (ie. malloc(mySize) and "mySize" was not swapped).

Re: Calculating file size

2008-04-28 Thread Gerriet M. Denkmann
On 28 Apr 2008, at 07:44, [EMAIL PROTECTED] wrote: Others have answered with good suggestions for other APIs, but I will point out for the record that you can do it in Cocoa, too, because the file system has a path-based mechanism in which "..namedfork/rsrc" is appended to the path. For examp

autosizing problem

2008-04-28 Thread Yann Disser
I am having a problem setting up autosizing for a NSTableView (the type of the view does in fact not matter) inside a drawer. Here is how I set it up in IB: http://i281.photobucket.com/albums/kk225/YtamshG/Picture2.png?t=1209374628 Here is how it turns out: http://i281.photobucket.com/albums/

Re: How is "Apple + Ctrl + D" implemented?

2008-04-28 Thread Ying Bian
Graham, Thanks for your reply! But how can I "find the range of the word" given the glyph index? I just can not find an API doing so. So I don't think this is the underlying implementation. Any comments from others? On Mon, Apr 28, 2008 at 2:51 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > I ima

Re: Calculating file size

2008-04-28 Thread Jean-Daniel Dupas
Le 28 avr. 08 à 11:27, Gerriet M. Denkmann a écrit : On 28 Apr 2008, at 07:44, [EMAIL PROTECTED] wrote: Others have answered with good suggestions for other APIs, but I will point out for the record that you can do it in Cocoa, too, because the file system has a path-based mechanism in w

Re: edit file

2008-04-28 Thread Hamish Allan
On Sat, Apr 26, 2008 at 3:21 AM, Christopher <[EMAIL PROTECTED]> wrote: > How exactly would I go about replacing the DefaultDesktop.jpg image in core > services with a objective c cocoa app. I'm just starting with cocoa, so any > help is greatly appreciated. You might want to start by considering

Re: How is "Apple + Ctrl + D" implemented?

2008-04-28 Thread Graham Cox
NSTextView has this: - (NSRange)selectionRangeForProposedRange:(NSRange)proposedSelRange granularity:(NSSelectionGranularity)granularity So if the proposedSelRange is a zero-length range at the character index determined before, and granularity is NSSelectByWord, it should return the rang

Re: How is "Apple + Ctrl + D" implemented?

2008-04-28 Thread Graham . Lee
Graham Cox wrote on 2008-04-28 11:36:32: > Bear in mind that the question "what is a word?" is far from trivial > to universally answer. So in fact determining the boundaries of a word > can be complex. As far as I can glean from the docs, this job falls to > NSTypesetter, though there isn't an

Re: How is "Apple + Ctrl + D" implemented?

2008-04-28 Thread Graham Cox
Bear in mind that the question "what is a word?" is far from trivial to universally answer. So in fact determining the boundaries of a word can be complex. As far as I can glean from the docs, this job falls to NSTypesetter, though there isn't an obvious method that simply returns a word.

Re: Initial value of on/off buttons

2008-04-28 Thread Hamish Allan
On Fri, Apr 25, 2008 at 5:13 PM, Yann Disser <[EMAIL PROTECTED]> wrote: > I realize that my buttons are generally not affected by the changes I make > to the bool-values. Only the other way around. On Sun, Apr 27, 2008 at 10:59 AM, Yann Disser <[EMAIL PROTECTED]> wrote: > The problem was, that

AddressBook.framework & binding

2008-04-28 Thread Robert Cerny
hi everybody, I searched the web but I'm probably not asking the right question :/ Is there a way how to use AddressBook data with bindings directly (I mean without writing glue code for extracting values wrapped with properties)? I mean I can write bunch of repeating code and add it to AB

Re: NSMenuItem and images

2008-04-28 Thread Kristopher Matthews
I don't see any way to do it, but my initial concern is that user could modify their system to change that height - maybe for visually impaired users. Also, as Adam points out - there's no guarantee that this height will not change in a future release. Oh well, #define kMenuItemImageSize

Re: NSMenuItem and images

2008-04-28 Thread Hamish Allan
On Mon, Apr 28, 2008 at 12:39 PM, Kristopher Matthews <[EMAIL PROTECTED]> wrote: > I don't see any way to do it, but my initial concern is that user could > modify their system to change that height - maybe for visually impaired > users. You could perhaps use [[yourPopupButton menu] menuBarHeight

Re: NSMenuItem and images

2008-04-28 Thread Kristopher Matthews
I gave that a try, but it seems to always return 0. After googling, it's a seemingly common problem that's been around for while. That said [NSMenuView menuBarHeight] does work (returning 22) - but is marked deprecated in the documentation. On Apr 28, 2008, at 7:12 AM, Hamish Allan wrote:

Re: How is "Apple + Ctrl + D" implemented?

2008-04-28 Thread John Joyce
Graham, Thanks for your reply! But how can I "find the range of the word" given the glyph index? I just can not find an API doing so. So I don't think this is the underlying implementation. Any comments from others? The range of the word is up to you to find and depends on the language.

Re: NSMenuItem and images

2008-04-28 Thread Adam R. Maxwell
On Apr 28, 2008, at 5:28 AM, Kristopher Matthews wrote: I gave that a try, but it seems to always return 0. It's documented to return 0 for all menus except -[NSApp mainMenu]. Maybe all other items are the same height as the main menu? After googling, it's a seemingly common problem that

Re: How is "Apple + Ctrl + D" implemented?

2008-04-28 Thread Ying Bian
Graham, Thanks so much. I will try it out based on your suggestions and will keep the result posted. On Mon, Apr 28, 2008 at 6:42 PM, Graham Cox <[EMAIL PROTECTED]> wrote: > NSTextView has this: > > - (NSRange)selectionRangeForProposedRange:(NSRange)proposedSelRange > granularity:(NSSelectionGr

Using an NSTableHeaderView as a Custom View

2008-04-28 Thread Peter Zegelin
I would like to use the gradiant image found in the standard NSTableHeaderView as the background image of my own view. I thought I could just create a subclass of NSTableVIew and draw my own stuff after letting the view draw itself first, however just a NSTableHeaderView on its own crashes

CALayer + flickering redraw.

2008-04-28 Thread John Clayton
Hi I've created a borderless NSWindow that is used to draw a grid (via CALayer instances - each line is a CALayer instance). The window is shown at the Screen Saver window level, thus overlapping everything. In my tests there are 3 or 4 lines in either direction, i.e. we're not talking

Re: NSMenuItem and images

2008-04-28 Thread Hamish Allan
On Mon, Apr 28, 2008 at 2:21 PM, Adam R. Maxwell <[EMAIL PROTECTED]> wrote: > It's documented to return 0 for all menus except -[NSApp mainMenu]. Maybe > all other items are the same height as the main menu? Even if not, it's probably still a better bet than hard-coding it... Hamish __

Re: NSMenuItem and images

2008-04-28 Thread Kristopher Matthews
Thanks for all the help. What I'm doing now is [[NSApp menu] menuBarHeight]. I find that I still have to subtract some hard coded value (6 is what I picked) - because of course I want the image contained in the menu, not sticking out. That said, I feel much better about hardcoding that vs.

Re: NSMenuItem and images

2008-04-28 Thread Adam R. Maxwell
On Apr 28, 2008, at 6:33 AM, Hamish Allan wrote: On Mon, Apr 28, 2008 at 2:21 PM, Adam R. Maxwell <[EMAIL PROTECTED]> wrote: It's documented to return 0 for all menus except -[NSApp mainMenu]. Maybe all other items are the same height as the main menu? Even if not, it's probably still

Re: NSMenuItem and images

2008-04-28 Thread Hamish Allan
On Mon, Apr 28, 2008 at 2:48 PM, Adam R. Maxwell <[EMAIL PROTECTED]> wrote: > I just don't trust that method, since the main menu bar has always looked > taller than a menu item, and it could easily change without changing menu > item height. What I want is something akin to -[NSMenuView > rectO

Re: NSMenuItem and images

2008-04-28 Thread Adam R. Maxwell
On Apr 28, 2008, at 7:00 AM, Hamish Allan wrote: On Mon, Apr 28, 2008 at 2:48 PM, Adam R. Maxwell <[EMAIL PROTECTED]> wrote: I just don't trust that method, since the main menu bar has always looked taller than a menu item, and it could easily change without changing menu item height.

Re: NSMenuItem and images

2008-04-28 Thread glenn andreas
On Apr 27, 2008, at 11:44 PM, Adam R. Maxwell wrote: On Apr 27, 2008, at 9:29 PM, Seth Willits wrote: On Apr 27, 2008, at 4:03 PM, Kristopher Matthews wrote: I have an NSPopUpButton populated with some NSMenuItems that have images. I'm trying to determine the proper dimensions for the i

Re: NSMenuItem and images

2008-04-28 Thread Adam R. Maxwell
On Apr 28, 2008, at 7:18 AM, glenn andreas wrote: On Apr 27, 2008, at 11:44 PM, Adam R. Maxwell wrote: Sure, but you have no way of knowing what the correct size is for an NSMenuItem (assuming you want a normal size). I set all menu item images to 16x16 since that looks approximately cor

Why is my NSTableView empty?

2008-04-28 Thread Robert Cerny
Hi, I'm kind of stupid today, my question is probably very easy to answer. I haven't been in programming for some time and somehow cannot manage solution for my following simple problem.. I got an array 'peeps' populated in apps delegate: peeps = [[NSArray arrayWithArray:[[ABAddressBook sha

Re: Why is my NSTableView empty?

2008-04-28 Thread I. Savant
> and I'm trying to display all last names in the table. > - I created NSArrayController ABPeople and set content to my delagate, key > path: peeps This is imprecise - if there is a problem with this, we won't know to tell you about it without the specifics of how this works in your applicati

Re: Why is my NSTableView empty?

2008-04-28 Thread Robert Cerny
Hello IS, thanks for your reply. On 28.4.2008, at 16:46, I. Savant wrote: and I'm trying to display all last names in the table. - I created NSArrayController ABPeople and set content to my delagate, key path: peeps This is imprecise - if there is a problem with this, we won't know to t

Re: Why is my NSTableView empty?

2008-04-28 Thread I. Savant
> I did drop content binding for table and checked that lastName was a typo. > > I created a textfield and did set it up to: > binding: ABPeople > controller key: arrangedObjects > model:@count > > and got correct 388 count of ppl in AB. So is it the same result as last time (you get the r

Re: Failure on unarchiving a NSBezierPath

2008-04-28 Thread Michael Ash
On Mon, Apr 28, 2008 at 2:24 AM, Kyle Sluder <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 5:10 AM, an0 <[EMAIL PROTECTED]> wrote: > > Thanks a lot if you or others can give me some more hint. > > You really aren't getting the point. > > You're returning NO from -readFromData:ofType:erro

NSPredicateEditorRowTemplate and templateView delegates

2008-04-28 Thread Jim Turner
I've a NSPredicateEditor with some basic popup-popup-view style templates (where the view is a NSTextField). I am attempting to set the text field's delegate to one of my objects so I can be notified when the control text changes. Everything appears to be setup correctly except my controlTextDidC

Re: Why is my NSTableView empty?

2008-04-28 Thread Robert Cerny
On 28.4.2008, at 17:03, I. Savant wrote: I did drop content binding for table and checked that lastName was a typo. I created a textfield and did set it up to: binding: ABPeople controller key: arrangedObjects model:@count and got correct 388 count of ppl in AB. So is it the same result

Re: Why is my NSTableView empty?

2008-04-28 Thread I. Savant
> I got table populated with description of ABPerson records like: > ABPerson (0xbc14600) { > ABPersonFlags : 16 > Creation : 2008-01-12 18:30:22 +0100 > Email : { > * work [EMAIL PROTECTED] > } > First : John > Last

Re: Failure on unarchiving a NSBezierPath

2008-04-28 Thread Michael Ash
On Mon, Apr 28, 2008 at 11:43 AM, Kyle Sluder <[EMAIL PROTECTED]> wrote: > On Mon, Apr 28, 2008 at 11:03 AM, Michael Ash <[EMAIL PROTECTED]> wrote: > > I don't think you're getting the point yourself. The reason he's > > returning NO is because his unarchiving fails, and it shouldn't fail. > > C

Re: Failure on unarchiving a NSBezierPath

2008-04-28 Thread Kyle Sluder
On Mon, Apr 28, 2008 at 11:03 AM, Michael Ash <[EMAIL PROTECTED]> wrote: > I don't think you're getting the point yourself. The reason he's > returning NO is because his unarchiving fails, and it shouldn't fail. > Certainly the code *should* set the error (if outError is non-nil) but > this is a se

Re: Failure on unarchiving a NSBezierPath

2008-04-28 Thread Kyle Sluder
On Mon, Apr 28, 2008 at 11:45 AM, Michael Ash <[EMAIL PROTECTED]> wrote: > Nothing is being obstructed. The logged errors happen after the > primary problem occurs. If the primary problem were logging errors, > they would appear before the ones that are caused by the lack of an > error assignment.

Re: Failure on unarchiving a NSBezierPath

2008-04-28 Thread Kyle Sluder
On Wed, Apr 23, 2008 at 11:42 AM, an0 <[EMAIL PROTECTED]> wrote: > I was building a very simple drawing application, but met problems > when reading the file saved by my application. > > The two functions as to archiving/unarchiving are as follows: > - (NSData *)dataOfType:(NSString *)typeName erro

Zip Files in Objective-C?

2008-04-28 Thread Karl Moskowski
Going through the list archives, I've found that the topic of creating and using zip files in a Cocoa app has come up a few times over the years. A frequently-mentioned approach is to use NSTask wrapped around a command-line tool such as ditto or zip/unzip. However, besides the concern ab

Re: Using an NSTableHeaderView as a Custom View

2008-04-28 Thread Corbin Dunn
On Apr 28, 2008, at 6:26 AM, Peter Zegelin wrote: I would like to use the gradiant image found in the standard NSTableHeaderView as the background image of my own view. I thought I could just create a subclass of NSTableVIew and draw my own stuff after letting the view draw itself first, ho

Re: Failure on unarchiving a NSBezierPath

2008-04-28 Thread I. Savant
> You know what? I don't think you've ever said that you know that > view.drawing != nil. Check that. Though NSArchiver says this scenario would produce an exception, NSKeyedArchiver does not seem to do the same (the documentation doesn't say what will happen and a quick test with an NSBezie

Re: Zip Files in Objective-C?

2008-04-28 Thread I. Savant
> Does anyone have any suggestions or examples for doing this in a > Leopard-only application? Thanks. Not Leopard-only, but ... http://code.google.com/p/zip-framework/ Depending on what you're using it for, it may work well for you. I use it for reading archives (not writing them) in pro

Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?

2008-04-28 Thread Mohsan Khan
I tried to run the code in my main method which worked well, but not in my AppController.m - does it matter? Thanks. On sö 27 apr 2008, at 22.57, Mohsan Khan wrote: The debugger kicks in and stops at "#0 0x7fff80e73d50 in _objc_fixupMessageRef" in a long call stack. Do I need do include

flat_namespace?

2008-04-28 Thread David Springer
Folks, Is there a way to tell if a lib/dylib was built with flat_namespace turned on? otool perhaps? Thanks, - Dave.S ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Leopard on PPC

2008-04-28 Thread Michael Vannorsdel
Could you post the rest of the crash log? I suspect there might be input managers or some other 3rd party code loaded into the program that might be causing this. Also, the crash log shows it's crashing when trying to use the data source for a table view, specifically when it asks your dat

Re: Calculating file size

2008-04-28 Thread Aaron Burghardt
On Apr 28, 2008, at 5:27 AM, Gerriet M. Denkmann wrote: This is documented in the Mac OS X system documentation. Where exactly? I have found a mention of "namedfork" in man RezWack and some #defines in /usr/include/sys/paths.h - but no other documentation. Kind regards, Gerriet. When

Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?

2008-04-28 Thread I. Savant
On Mon, Apr 28, 2008 at 12:40 PM, Mohsan Khan <[EMAIL PROTECTED]> wrote: > I tried to run the code in my main method which worked well, but not in my > AppController.m - does it matter? What Jean-Daniel was asking is what is the specific signal that was sent when the app crashed? EXC_BAD_ACCESS

Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?

2008-04-28 Thread Adam R. Maxwell
On Monday, April 28, 2008, at 09:41AM, "Mohsan Khan" <[EMAIL PROTECTED]> wrote: >I tried to run the code in my main method which worked well, but not >in my AppController.m - does it matter? Are you using garbage collection? If so, see http://www.cocoabuilder.com/archive/message/cocoa/2008/4

Re: Zip Files in Objective-C?

2008-04-28 Thread Karl Moskowski
On 28-Apr-08, at 12:38 PM, I. Savant wrote: Does anyone have any suggestions or examples for doing this in a Leopard-only application? Thanks. Not Leopard-only, but ... http://code.google.com/p/zip-framework/ Depending on what you're using it for, it may work well for you. I use it for

Re: Why is my NSTableView empty?

2008-04-28 Thread Robert Cerny
On 28.4.2008, at 17:20, I. Savant wrote: I got table populated with description of ABPerson records like: ABPerson (0xbc14600) { ABPersonFlags : 16 Creation : 2008-01-12 18:30:22 +0100 Email : { * work [EMAIL PROTECTED] } First :

Re: Why is my NSTableView empty?

2008-04-28 Thread I. Savant
> > ... so is your category method -lastName being called? > > > I'm able to get the correct value from gdb but it looks like my method > isn't called or is wrong implemented... If the method isn't called, that's the more important problem (since whether it's correctly implemented

Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?

2008-04-28 Thread Mohsan Khan
Sorry for my short messages, I was trying to keep it simple & clean. Garbage collection is off. GCC_ENABLE_OBJC_GC = unsupported Here is my code: "User clicks a button..." - (IBAction)testAppleScript: (id)sender { [self callAppleScript]; } - (void)callAppleScript { NSDiction

Re: Zip Files in Objective-C?

2008-04-28 Thread Scott Ribe
> is this a concern on Leopard, BTW? IIRC, the BSD > subsystem is no longer optional Actually, I know it was not optional on 10.4, and I think it might not have been optional on 10.3. Anybody here remember for sure??? -- Scott Ribe [EMAIL PROTECTED] http://www.killerbytes.com/ (303) 722-0567 voi

Re: NSMenuItem and images

2008-04-28 Thread Kristopher Matthews
// size the image for our menu NSSize size; size.width = [[NSFont menuFontOfSize:0] pointSize]; size.height = size.width; This works like a charm. On Apr 28, 2008, at 9:39 AM, Adam R. Maxwell wrote: On Apr 28, 2008, at 7:18 AM, glenn andreas wrote: On Apr 27

Re: Why is my NSTableView empty?

2008-04-28 Thread Robert Cerny
On 28.4.2008, at 19:19, I. Savant wrote: ... so is your category method -lastName being called? I'm able to get the correct value from gdb but it looks like my method isn't called or is wrong implemented... If the method isn't called, that's the more important problem (since

Re: Zip Files in Objective-C?

2008-04-28 Thread I. Savant
> Actually, I know it was not optional on 10.4, and I think it might not have > been optional on 10.3. Anybody here remember for sure??? It was still optional on 10.3; I had a 10.3 app that relied on the BSD subsystem and at first did not realize it was an optional part of the install (or that

Re: Need a native guide through "Cannot remove an observer" woods

2008-04-28 Thread Jack Repenning
On Apr 25, 2008, at 7:42 PM, Keary Suska wrote: on 4/25/08 6:49 PM, [EMAIL PROTECTED] purportedly said: - (void) setEntry:(SVNWCEntry *)value { [self willChangeValueForKey:@"entry"]; [value retain]; [entry release]; entry = value; [self didChangeValueForKey:@"entry"]; } If you haven't tur

Re: Why is my NSTableView empty?

2008-04-28 Thread I. Savant
> it's not getting called at all. Is it because my method is defined in > category? As I wrote already, I'm able to call my methods from gdb so my > category is up and running > > NSLog(@"%@", [[[ppl arrangedObjects] objectAtIndex:0] lastName]); > > as opposed to > Value (ABPeople.arrangedObjec

Problems with Launchd Daemon

2008-04-28 Thread JanakiRam
Hi All, I am developing a Mac cocoa application suite which has a launchd daemon ( which is a pure cocoa application ). I'm able to launch the cocoa daemon using launchctl command properly. But when i place the plist in /Librart/LaunchDaemons ,after system restart , my system log shows the follo

Re: Problems with Launchd Daemon

2008-04-28 Thread Nick Zitzmann
On Apr 28, 2008, at 1:00 PM, JanakiRam wrote: *_RegisterApplication(), FAILED TO establish the default connection to the WindowServer,_CGSDefaultConnection() is NULL. * Activity Monitor shows my daemon is running with root privileges. Can any one help me to solve this problem. Please help

NSTextField with NSLevelIndicator

2008-04-28 Thread Philip Bridson
Hi there, I want to create a password analysis tool that updates an NSLevelIndicator with each character entered into a NSSecureTextField. I know how to update the NSLevelIndicator once the user has finished entering text but how do i update it per character? To give you a bit more info: T

Re: NSPredicateEditorRowTemplate and templateView delegates

2008-04-28 Thread Peter Ammon
On Apr 28, 2008, at 8:12 AM, Jim Turner wrote: I've a NSPredicateEditor with some basic popup-popup-view style templates (where the view is a NSTextField). I am attempting to set the text field's delegate to one of my objects so I can be notified when the control text changes. Everything appe

Re: Problems with Launchd Daemon

2008-04-28 Thread Michael Vannorsdel
Unfortunately launch daemons can't be Cocoa applications or applications that rely on the window server in general (and other higher APIs). You'll be better off launching it as a user login item (accounts prefs). These are launched in the user's context and after the window server is load

Re: NSTextField with NSLevelIndicator

2008-04-28 Thread Michael Vannorsdel
Set a delegate for your text field and have it respond to controlTextDidChange: (NSControl). That will be called every time the text in the text field is modified. On Apr 28, 2008, at 1:17 PM, Philip Bridson wrote: I want to create a password analysis tool that updates an NSLevelIndicator

Re: Problems with Launchd Daemon

2008-04-28 Thread Dave Camp
On Apr 28, 2008, at 12:00 PM, JanakiRam wrote: I am developing a Mac cocoa application suite which has a launchd daemon ( which is a pure cocoa application ). I'm able to launch the cocoa daemon using launchctl command properly. But when i place the plist in /Librart/LaunchDaemons ,after s

Re: NSTextField with NSLevelIndicator

2008-04-28 Thread Andy Lee
Give your text field a delegate, and in the delegate implement - controlTextDidChange:. See the docs for more details. --Andy On Apr 28, 2008, at 3:17 PM, Philip Bridson wrote: Hi there, I want to create a password analysis tool that updates an NSLevelIndicator with each character entered i

app "do not enter" sign?

2008-04-28 Thread Daniel Child
I am building a sample input method and the build succeeds, but the icon on the executable has a weird circle with bar (like a European do not enter sign) over it. When I try copying it into Library/Input Methods it indeed behaves very slowly...practically useless. I can't figure out what t

Re: Why is my NSTableView empty?

2008-04-28 Thread Quincey Morris
On Apr 28, 2008, at 11:32, Robert Cerny wrote: Actually, it's not getting called at all. Is it because my method is defined in category? As I wrote already, I'm able to call my methods from gdb so my category is up and running NSLog(@"%@", [[[ppl arrangedObjects] objectAtIndex:0] lastName

Re: Why is my NSTableView empty?

2008-04-28 Thread I. Savant
> This suggests to me that ABRecord (the superclass of ABPerson, the > documentation says) may override valueForKey: with new behavior that doesn't > call custom accessors or return anything useful. If that's so, I can only > speculate that it's to prevent you using valueForKey when you're "suppos

Re: app "do not enter" sign?

2008-04-28 Thread Ricky Sharp
On Apr 28, 2008, at 2:57 PM, Daniel Child wrote: I am building a sample input method and the build succeeds, but the icon on the executable has a weird circle with bar (like a European do not enter sign) over it. When I try copying it into Library/Input Methods it indeed behaves very slowl

Re: app "do not enter" sign?

2008-04-28 Thread Randall Meadows
On Apr 28, 2008, at 2:12 PM, Ricky Sharp wrote: Also, if this is under Leopard, aren't input managers/methods not allowed? Still allowed, but more restricted. An older post on the subject, but I think it's still relevant: _

Re: app "do not enter" sign?

2008-04-28 Thread Daniel Child
I will be using the InputMethodKit framework. I was trying to build for Xcode 2.4, with target SDK set to current OS, which happens to be Leopard on an Intel. I tried setting for Xcode 3.0, but that made no difference. I am hoping to debug this running on a PowerPC running Leopard via remo

Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?

2008-04-28 Thread Christopher Nebel
On Apr 28, 2008, at 10:24 AM, Mohsan Khan wrote: 2008-04-28 19:16:46.910 MyApp[945:10b] Error loading /Library/ ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit Types.osax/ Contents/MacOS/Adobe Unit Types, 262): no suitab

Re: Problems with Launchd Daemon

2008-04-28 Thread John Clayton
Hi All, It can be done, with caveats. For an example, heres a developer example showing how a banner can be displayed on login, and that links with Cocoa.framework: /Developer/Examples/Security/bannersample However, caveat 1: This is actually an Authorization Plugin, and as such

Re: CALayer + flickering redraw.

2008-04-28 Thread John Clayton
More info, This migh be ovious, but: I have found out that if I don't modify any of the layers while dragging a window about - then things stay very stable and look good. Probably no great surprise. But as soon as I change the colour of a line for example, flickering occurs like mad. I

Re: NSTextField with NSLevelIndicator

2008-04-28 Thread Philip Bridson
Ok. Thanks for the reply - this may sound stupid but I haven't dealt with delegates much. If I make the window controller the delegate would I just declare a method in that window controller's files as below? - (void)controlTextDidChange:(NSNotification)notification { runMyFunction();

Re: Using AppleScript Scripts in Cocoa Applications - TN2084 error or just me?

2008-04-28 Thread Mohsan Khan
I uninstalled LCC, restarted and ran my code - and it just works! Wow, that sure was the fix! I won't be using LCC anymore. Thank you Chris and everybody. /MK On må 28 apr 2008, at 22.44, Christopher Nebel wrote: Bingo. Get rid of LCC Scroll Enhancer. It's a known cause of a variety o

Re: flat_namespace?

2008-04-28 Thread Jean-Daniel Dupas
otool -hv library.dylib I don't know if the "flags" section of the output contains something when linking using flat name space, but it echo TWOLEVEL if the library uses two level name space. Le 28 avr. 08 à 18:44, David Springer a écrit : Folks, Is there a way to tell if a lib/dylib wa

Re: Need a native guide through "Cannot remove an observer" woods

2008-04-28 Thread Keary Suska
on 4/28/08 12:49 PM, [EMAIL PROTECTED] purportedly said: > Thanks. I think your hint worked. That is, I'm not sure what you were > suggesting, but I took a guess, and it seems to have worked. But I > still don't quite grasp what's going on, so I'm begging for a touch of > background? > > What I

Snazzy open-source slideshow controls

2008-04-28 Thread Ben Kazez
Hi everyone, An app I'm developing has a full-screen slideshow-like view that would benefit greatly from controls like those shown for Finder and Mail photo slideshows -- fade in/out on mouse movement, display white buttons, partial transparency, etc. (though I only need back/forward/ exit

Re: NSTextField with NSLevelIndicator

2008-04-28 Thread Andy Lee
Yup, that's right. An object that has a delegate sends certain pre-defined messages to the delegate at certain times. Those times are described by the name of the delegate method. For example, "controlTextDidChange:" is sent after the text in an NSControl changes. The naming convention i

job posting on Cocoa-dev......

2008-04-28 Thread Kristan Kennedy
I am looking for JUNIOR TO MID-LEVEL Cocoa talent for a Full-TIme Position in Santa Monica. One of your members indicated I could post this job here...can I? Kristan Kennedy Manager/Technical/Marketing Talent Jivaro Professional Headhunters Southern California Division 310.649.2640 x 121 [EMA

AppKiDo, delegates, known bugs

2008-04-28 Thread Andy Lee
There was a question here recently that asked for clarification on the use of a delegate method. I thought I'd mention that one of the goals of my application AppKiDo was to help people see what delegates are. In the Quicklist drawer, you can click on "Classes with delegates" to see all cl

How to adopt a superclass's protocol?

2008-04-28 Thread K. Darcy Otto
I need to have a subclass optionally extend a method already in the superclass. After some research, my best guess is that an optionally defined protocol is the best way to go about this. So, what I have in the superclass is: @interface ClassA : NSObject { ... } ... @end @protocol Check

Re: Failure on unarchiving a NSBezierPath

2008-04-28 Thread Jens Alfke
On 28 Apr '08, at 8:56 AM, Kyle Sluder wrote: Not necessarily true in the general case. The semantics of buffered output may interfere, especially if instead of just sending unrecognized selectors to a random object the code were sending messages to a pointer off in la-la land. It's always a

Re: Calculating file size

2008-04-28 Thread Chris Suter
On 29/04/2008, at 2:58 AM, Aaron Burghardt wrote: When I learned of it, roughly in the timeframe of Jaguar or Panther, there was a document with a title like "Mac OS X System Overview", or something similar--I think that it where I read about it. I'm sure it was documented in somewhere in

Re: How to adopt a superclass's protocol?

2008-04-28 Thread Jens Alfke
On 28 Apr '08, at 5:00 PM, K. Darcy Otto wrote: I need to have a subclass optionally extend a method already in the superclass. After some research, my best guess is that an optionally defined protocol is the best way to go about this. If you really want a fully abstract method, use a cat

Re: How to adopt a superclass's protocol?

2008-04-28 Thread Michael Vannorsdel
You can specify that a class adopts a protocol by defining it as: @interface ClassB : ClassA { ... } ... @end This will tell the compiler that ClassB implements the Check protocol. You can put multiple protocols by separating them with a comma: @interface ClassB : ClassA { ... } ... @e

Re: Link errors against _HIShapeContainsPoint

2008-04-28 Thread Rick Mann
On Apr 28, 2008, at 17:29:53, Philip Aker wrote: Should be here (both project and target build settings): Yeah, in retrospect that's obvious. I tried searching for "min", I thought the search would turn up stuff by command-line option name, too. -- Rick _

Re: Link errors against _HIShapeContainsPoint

2008-04-28 Thread Rick Mann
Ugh, sorry...mistyped, got bit by address auto complete. On Apr 28, 2008, at 17:57:25, Rick Mann wrote: On Apr 28, 2008, at 17:29:53, Philip Aker wrote: Should be here (both project and target build settings): Yeah, in retrospect that's obvious. I tried searching for "min", I thought the

Tiger bug on NSXMLParser?

2008-04-28 Thread Lorenzo Thurman
I'm using NSXMLParser to read an XML document from a server via initiWithContentsOfURL. This works just fine under Leopard. I can read and parse the data just fine, but under Tiger, I get an empty document error: NSXMLParserErrorDomain = 4 (Empty document). There are several posts in the archives a

Re: Tiger bug on NSXMLParser?

2008-04-28 Thread Jens Alfke
On 28 Apr '08, at 6:42 PM, Lorenzo Thurman wrote: NSString* urlString = [str stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]; You shouldn't need this step if 'str' is already a string representation of the URL. For example, it would convert a "?" or "#" in the URL into a

Something like "validation," only not?

2008-04-28 Thread Jack Repenning
My app presents a table of values to the user. The table has two columns, "name" and "value," which are managed by an NSDictionaryController bound to an NSDictionary. I have enabled my users to edit these values (their changes propagate back to the underlying NSDictionary, and I can then

View Getting MouseUp Without Corresponding MouseDown

2008-04-28 Thread Peter Zegelin
I have a view that creates a 'Tool' on MouseDown and then releases it on MouseUp. This view also has siblings (my own rulers) that are hidden and shown under user control. When the rulers are shown the tool creating view gets shifted to accommodate the ruler views. I have noticed that when

Re: app "do not enter" sign?

2008-04-28 Thread Daniel Child
If input methods were not allowed, that would mean no one could type Chinese, Japanese, Korean. I find that hard to believe. The post seems to be about Input Managers, not input methods. On Apr 28, 2008, at 4:52 PM, [EMAIL PROTECTED] wrote: Also, if this is under Leopard, aren't input manag

Re: Tiger bug on NSXMLParser?

2008-04-28 Thread Lorenzo Thurman
On Mon, Apr 28, 2008 at 8:57 PM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 28 Apr '08, at 6:42 PM, Lorenzo Thurman wrote: > > NSString* urlString = [str stringByAddingPercentEscapesUsingEncoding: > > NSUTF8StringEncoding]; > > > > You shouldn't need this step if 'str' is already a string repre

  1   2   >