Re: Deleting preference file from within the application

2008-04-28 Thread Andrew BusH
Hi all, thanks for the quick response. funny, I thought I had tried that and that it had failed, leading me to assume that removePersistentDomainforName was intended for something else (its not like the docs are particularly specific on what it does) but doing it again it seems to work perf

Re: Group rotation

2008-04-28 Thread Graham Cox
Implementing grouping that really works is quite hard. What about when groups are nested? This can go on indefinitely, so you need a mechanism that can take account of any number of nested groups. Since transforms from any level can be appended or prepended, this is the way to go I believe

Re: How to adopt a superclass's protocol?

2008-04-28 Thread Michael Vannorsdel
You can make the superclass's method look like this: - (void)doSomething { if([self conformsToProtocol:@protocol(Check)]) [(SuperClass *)self optionalMethodToImplement]; } The cast eliminates the compiler warning. As far as making it private it depends what you mean by

Re: Deleting preference file from within the application

2008-04-28 Thread Andy Lee
This would be better than hard-coding the bundle identifier... [[NSUserDefaults standardUserDefaults] removePersistentDomainForName: [[NSBundle mainBundle] bundleIdentifier]]; --Andy On Apr 29, 2008, at 2:18 AM, Andy Lee wrote: If you call this, the prefs file will b

Re: Problems with Launchd Daemon

2008-04-28 Thread JanakiRam
Will this work on 10.4 as well as 10.5 ? JanakiRam. On Tue, Apr 29, 2008 at 10:35 AM, Kyle Sluder < [EMAIL PROTECTED] <[EMAIL PROTECTED]>> wrote: > On Tue, Apr 29, 2008 at 12:52 AM, JanakiRam <[EMAIL PROTECTED]> > wrote: > > Dave, > > > > Thanks for the initial response. > > > > My Daemon will

Re: Deleting preference file from within the application

2008-04-28 Thread Andy Lee
If you call this, the prefs file will be deleted for you, and will stay deleted: [[NSUserDefaults standardUserDefaults] removePersistentDomainForName:@"bundle.identifier.for.your.app"]; I tested this by calling it in -applicationWillTerminate:. I assume you could call it so

Re: Problems with Launchd Daemon

2008-04-28 Thread Bill Bumgarner
On Apr 28, 2008, at 11:12 PM, JanakiRam wrote: My daemon should run in log-off mode as well , hence starting with root previlages. UI is required only if the user has been logged-in. In general, privilege escalation and -- much harder if not impossible -- de-escalation is an exceedingly dif

Re: autosizing problem

2008-04-28 Thread Kyle Sluder
On Mon, Apr 28, 2008 at 5:34 AM, Yann Disser <[EMAIL PROTECTED]> wrote: > I tried to put all the content in a simple window and everything worked > fine until I resized the window to a size too small for the table view to be > displayed at all. When I made it larger again, the same problem occured

Re: Problems with Launchd Daemon

2008-04-28 Thread JanakiRam
My daemon should run in log-off mode as well , hence starting with root previlages. UI is required only if the user has been logged-in. JanakiRam. On Tue, Apr 29, 2008 at 10:46 AM, Jens Alfke <[EMAIL PROTECTED]> wrote: > > On 28 Apr '08, at 9:52 PM, JanakiRam wrote: > > My Daemon will perform a

Re: Deleting preference file from within the application

2008-04-28 Thread Kyle Sluder
On Tue, Apr 29, 2008 at 12:22 AM, Andrew BusH <[EMAIL PROTECTED]> wrote: > is there anyway to stop the application from doing this? Ive looked > through NSUserDefaults but there is nothing there that looks up to the job. I'd write a simple shell tool that deletes the preferences. Register a fun

Group rotation

2008-04-28 Thread Ghufran Ahamad
Hi All, I want to do group rotation for various objects. Objects are getting rotate correctly on their center but when I group them the rotated object has got shift. Note: In case of group only rotated object has got shift. Below is the code snippet. Let me know I doing correct or not. -(NS

Re: Problems with Launchd Daemon

2008-04-28 Thread Jens Alfke
On 28 Apr '08, at 9:52 PM, JanakiRam wrote: My Daemon will perform activity using Foundation Kit API. While it starts the activity , i am opening the Appkit Window and updating the progress. If it only performs activity while a user is logged in, does it really need to run as root? In

Re: Problems with Launchd Daemon

2008-04-28 Thread Kyle Sluder
On Tue, Apr 29, 2008 at 12:52 AM, JanakiRam <[EMAIL PROTECTED]> wrote: > Dave, > > Thanks for the initial response. > > My Daemon will perform activity using Foundation Kit API. While it starts > the activity , i am opening the Appkit Window and updating the progress. > > Please let us know th

[moderator] Re: job posting on Cocoa-dev......

2008-04-28 Thread Scott Anguish
You actually just did. Once again, if you have job postings, please run them past the admins before posting. [EMAIL PROTECTED] thanks scott anguish moderator On Apr 28, 2008, at 6:18 PM, Kristan Kennedy wrote: I am looking for JUNIOR TO MID-LEVEL Cocoa talent for a Full-TIme Position in

Re: Problems with Launchd Daemon

2008-04-28 Thread JanakiRam
Dave, Thanks for the initial response. My Daemon will perform activity using Foundation Kit API. While it starts the activity , i am opening the Appkit Window and updating the progress. Please let us know the alternatives to perform the same activity. JanakiRam. On Tue, Apr 29, 2008 at 12:56

Re: Debugger at odds with reality? [SOLVED]

2008-04-28 Thread Chris Hanson
On Apr 27, 2008, at 1:43 PM, Jerry Krinock wrote: Graham, welcome to the apparently small club (about 3-4 oddballs) who care about what version and configuration of their private framework gets packaged or run. That group includes most everybody. Everybody wants their tools to work, and

Re: View Getting MouseUp Without Corresponding MouseDown

2008-04-28 Thread Rob Petrovec
FYI, same thing happens in Carbon. Its technically a feature for Drag support. --Rob On Apr 28, 2008, at 8:51 PM, Peter Zegelin wrote: Hi Graham, I don't think so as they are my own rulers - I'm not using NSRulerView. I wasn't even going to mention the rulers! They are just custom sibl

Deleting preference file from within the application

2008-04-28 Thread Andrew BusH
Hi all, I am attempting to add an 'Uninstall' option to an application, to do this I remove all the support files and then finally delete the preferences file and terminate the application. unfortunately (albeit unsurprisingly) the last thing the application does before it quits is write

Re: app "do not enter" sign?

2008-04-28 Thread Daniel Child
It turns out that the exact same configuration WILL build a release version but NOT a debug version. How is that even possible? On Apr 28, 2008, at 4:12 PM, Ricky Sharp wrote: On Apr 28, 2008, at 2:57 PM, Daniel Child wrote: I am building a sample input method and the build succeeds, but t

Re: View Getting MouseUp Without Corresponding MouseDown

2008-04-28 Thread Peter Zegelin
Hi Graham, I don't think so as they are my own rulers - I'm not using NSRulerView. I wasn't even going to mention the rulers! They are just custom sibling views. It's just weird that I can mousedown in one sibling and get a mouseup in another if the mouse happens to be over it on release.

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

2008-04-28 Thread Evan Gross
On 28/04/08 1:55 AM, "Ying Bian" <[EMAIL PROTECTED]> wrote: > I am thinking of developing my own dictionary tool which can detects the word > under the cursor and automatically (or when a modifier key is pressed) popup > a translation window. > > After researching for a while, I find it more tr

Re: View Getting MouseUp Without Corresponding MouseDown

2008-04-28 Thread Graham Cox
Peter, could it be because of: - (void)rulerView:(NSRulerView *)aRulerView handleMouseDown:(NSEvent *)theEvent; ?? G. On 29 Apr 2008, at 12:05 pm, Peter Zegelin wrote: I have a view that creates a 'Tool' on MouseDown and then releases it on MouseUp. This view also has siblings (my own

Re: app depends on itself (???)

2008-04-28 Thread Daniel Child
Thanks! That took care of it. On Apr 28, 2008, at 11:20 PM, Luke Pike wrote: That error usually means the application is included as part of the target. To fix this, just find the application in the Xcode project and uncheck the target checkbox. Luke On Apr 28, 2008, at 11:10 PM, Daniel

Re: How to adopt a superclass's protocol?

2008-04-28 Thread K. Darcy Otto
Okay, I have done this, and things are compiling and running correctly. Thank you. Two additional questions then. First, I still get the warning that the superclass "may not respond" to the method (and to be sure, it is only implemented in the subclass, but the superclass calls it after

Re: app depends on itself (???)

2008-04-28 Thread Luke Pike
That error usually means the application is included as part of the target. To fix this, just find the application in the Xcode project and uncheck the target checkbox. Luke On Apr 28, 2008, at 11:10 PM, Daniel Child wrote: Trying to fix the previous problem of an illegitimate app, I swi

app depends on itself (???)

2008-04-28 Thread Daniel Child
Trying to fix the previous problem of an illegitimate app, I switched to a build configuration of Xcode 3.0 and SDK 10.5 and got the following message: File /../.../.../...xxx.app depends on itself. This target might include its own product. Googling this hasn't helped. Is this a bug? Th

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

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

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

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

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

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: 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

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: 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: 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: 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: 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

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

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

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

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

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: 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

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: 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: 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: 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: 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: 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: 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: 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 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: 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: 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

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: 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

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 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 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: 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

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: 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

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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

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: 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: 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

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: 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

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 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 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: 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: 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

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: 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

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: 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
> 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

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: 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

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: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 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

  1   2   >