Problem with NSWindow setFrame

2008-06-18 Thread kalpana k
Hi all, I am working with dual monitor application. I want to extend the NSWindow to dual monitor. But the problem is that its height is not extending. i.e. the height of the window is set to height of a single monitor. for example : Monitor 1 : origin: (0,0) size : (1024, 640) - Window is

getting free space available in a drive

2008-06-18 Thread Angelo Chen
Hi, how to get the total free space available in a drive? thanks, Angelo ___ YM - 離線訊息 就算你沒有上網,你的朋友仍可以留下訊息給你,當你上網時就能立即看到,任何說話都冇走失。 http://messenger.yahoo.com.hk ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

Where does the undo manager come from?

2008-06-18 Thread Graham Cox
In a non-document based app, I can get the undo manager from any view, which appears to be inherited from NSResponder. The docs for that say: "NSResponder’s implementation simply passes this message to the next responder." But NSApplication, which I think is the next responder, doesn't have

Tab-based ("document"-based?) application

2008-06-18 Thread Jacob Bandes-Storch
I'm creating an application that will have an arbitrary number of basically identical windows (document-like) which each have tabs (or something of the sort) in them that represent the actual "documents," per se. Would it be best to start out with a Document-Based Application or just a regu

CFWriteStreamWrite Blocking if we give invalid Host.

2008-06-18 Thread SridharRao M
Hi, I am using CFWriteStreamWrite to write some command on server and using CFReadStreamRef to retrieve some value from server. CFWriteStreamWrite is blocking if we give invalid host address,instead it should return -1 as result.But it's blocking, In the documentation it 's given as use CFWriteStr

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Michael Ash
On Wed, Jun 18, 2008 at 11:48 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: > On Jun 18, 2008, at 2:41 PM, Michael Ash wrote: >> >> Although it partially defeats the purpose of using NSCoder, you'll >> avoid this whole path if you stuff all four doubles into a single >> NSData. Don't forget to use

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Markus Spoettl
On Jun 18, 2008, at 2:41 PM, Michael Ash wrote: Although it partially defeats the purpose of using NSCoder, you'll avoid this whole path if you stuff all four doubles into a single NSData. Don't forget to use the byte-swapping functions to ensure that they all have a consistent representation acr

Re: [NSOutlineView/NSTableView] Returning nil enables auto-edition?

2008-06-18 Thread Stephane Sudre
On Jun 13, 2008, at 11:23 AM, Corbin Dunn wrote: You probably mean, editing (not edition). Certainly. [...] - (BOOL) outlineView:(NSOutlineView *) inOutlineView shouldEditTableColumn:(NSTableColumn *) inTableColumn item:(id)inItem First off -- 10.4 *requires* a double click to begin an

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Markus Spoettl
On Jun 18, 2008, at 5:04 PM, Adam R. Maxwell wrote: It's not recommended, but have you tried using old-style archiving as another approach? It used to be considerably faster than keyed archiving under some circumstances. I have thought about trying this until I read it's deprecated since

Re: Drawing in CALayers

2008-06-18 Thread Gordon Apple
Addendum: I did implement my own transform to flip the drawing. As far as I can tell, the "initialFlippedState" parameter in NSGraphicsContext *)graphicsContextWithGraphicsPort:(void *)graphicsPort flipped:(BOOL)initialFlippedState has no impact whatsoever. Bug report time? Another thi

Re: Getting double-clicks on NSTextField

2008-06-18 Thread Andy Lee
On Jun 18, 2008, at 8:25 PM, Steve Nicholson wrote: I have an NSTextField on my window that is neither editable nor selectable. Is there a way for my window controller to be notified when the user double-clicks on the field? I don't know if there's a better way, but this works: NSTextField

Services menu invoke from the command line?

2008-06-18 Thread Glen Low
Hi All Is there any command-line tool that will invoke a Services menu command with standard input as the data to be transformed? Cheers, Glen Low --- pixelglow software | simply brilliant stuff www.pixelglow.com aim: pixglen ___ Cocoa-dev ma

Getting double-clicks on NSTextField

2008-06-18 Thread Steve Nicholson
I have an NSTextField on my window that is neither editable nor selectable. Is there a way for my window controller to be notified when the user double-clicks on the field? -Steve ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Adam R. Maxwell
On Jun 18, 2008, at 7:31 PM, Markus Spoettl wrote: On Jun 18, 2008, at 2:50 PM, Quincey Morris wrote: I suppose you could byte-move each group of 4 doubles in one NSData and give that to the archiver instead. Or do it further upstream and make a bigger array of numbers in a NSData. (But you

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Quincey Morris
On Jun 18, 2008, at 16:31, Markus Spoettl wrote: I'm not exactly sure about the speed, blocking the UI for 15 seconds isn't the best idea and the real data will be even bigger. So, a cure for NSKeyedArchiver's optimization would be great. The fastest, easiest approach would be to put your

Binding the current table view selection to property in my controller

2008-06-18 Thread Rick Mann
I have a window controller that provides a list of ports displayed in a table view. The master-detail view I set up works fine, and I can adjust attributes of individual ports as you would expect. However, I want my window controller to have a "current port" property that reflects the curre

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Markus Spoettl
On Jun 18, 2008, at 2:50 PM, Quincey Morris wrote: I suppose you could byte-move each group of 4 doubles in one NSData and give that to the archiver instead. Or do it further upstream and make a bigger array of numbers in a NSData. (But you'll have to deal with endianness and -- egads! -- fl

Re: Working if Cocoa Core Data

2008-06-18 Thread Thiago Rossi
An idea… If the transaction object knows the previous one, the get balance method would return the current transaction amount +++plus the previous transaction (if it is not nil). It would be more than an array, but a list… But in core data it is not that simple, I guess. On Wed, Jun 18, 2008 at 7:5

Re: Working if Cocoa Core Data

2008-06-18 Thread Thiago Rossi
It was not that clear on the tutorial. =) I was studying Objective C and I had started to implement the classes of my project by hand when I saw that tutorial about Core Data. That was when I moved my "DTO" to Core Data. I think I have to make them by hand. And about the amount/balance and so on…

Re: NSOpenPanel setDirectory to a package

2008-06-18 Thread Ken Thomases
On Jun 18, 2008, at 5:18 PM, Dale Jensen wrote: I have an "application picker" bit in my preferences, which allows the user to select an app to do something. 90% of the time, I presume, this will be a package, not a single file. My code is thus: [oPanel setTreatsFilePackagesAsDirectories:

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Markus Spoettl
On Jun 18, 2008, at 2:50 PM, Quincey Morris wrote: I suppose you could byte-move each group of 4 doubles in one NSData and give that to the archiver instead. Or do it further upstream and make a bigger array of numbers in a NSData. (But you'll have to deal with endianness and -- egads! -- fl

NSOpenPanel setDirectory to a package

2008-06-18 Thread Dale Jensen
I have an "application picker" bit in my preferences, which allows the user to select an app to do something. 90% of the time, I presume, this will be a package, not a single file. My code is thus: [oPanel setTreatsFilePackagesAsDirectories: NO]; NSString *filePath = @"/Applications/Preview

NSPathControl, Bindings and Shared User Defaults

2008-06-18 Thread Jeremy Matthews
Anyone out there binding multiple NSPathControls in IB? I can do it programatically, but when I attempt to use multiple NSPathControls the only item that ends up in the users' plist is the most recent one modified... I'm using a "newer" version of Xcode Tools, but the same thing happens u

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Quincey Morris
On Jun 18, 2008, at 14:17, Markus Spoettl wrote: Exactly and the test data isn't particularly big. Any ideas how to tell the archiver not to do this with my doubles (that doesn't involve conversion to strings and back)? I suppose you could byte-move each group of 4 doubles in one NSData

Re: [Q] UTF-8, stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding, weirdness

2008-06-18 Thread Michael Ash
On Wed, Jun 18, 2008 at 5:07 PM, JongAm Park <[EMAIL PROTECTED]> wrote: > Thank you for the additional information. > > Interestingly I found a similar method in NSFileManager, > fileSystemRepresentationWithPath. > So, is there any document on which file system uses which representation? "Filesyst

Re: disappearing NSSpellingStateAttributeName

2008-06-18 Thread Martin Wierschin
Does anyone know what causes the _clearTemporaryAttributesForCharacterRange method to get called... and have theories on why it's being called in my app and why the NSSpellingStateAttributeName that it is clearing isn't being replaced? I believe that method should only be called when the ch

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Michael Ash
On Wed, Jun 18, 2008 at 5:17 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: > On Jun 18, 2008, at 1:59 PM, Quincey Morris wrote: >> >> Yes, but look at where the time is *really* being spent. At a guess, >> finishEncoding is comparing every number object against every other number >> object to see i

Re: [Q] UTF-8 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding weirdness

2008-06-18 Thread JongAm Park
I even didn't think about the normalization. Wow.. it is quite complicated. I tried the 4 methods, -precomposedStringWith[Canonical/Compatibility]Mapping and -decomposedStringWith[Canonical/Compatibility]Mapping. The result was that [NSString UTF8String] returns "precomposed" version That'

Re: Working if Cocoa Core Data

2008-06-18 Thread Quincey Morris
On Jun 18, 2008, at 13:04, Ben Trumbull wrote: *Amount* is an calculated field and it depends on the previous transactions. I don't know how to do it! It is not a value I can save on database, for example, because it changes all the time (I guess I have to mark the transient field at Core D

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Markus Spoettl
On Jun 18, 2008, at 1:59 PM, Quincey Morris wrote: Yes, but look at where the time is *really* being spent. At a guess, finishEncoding is comparing every number object against every other number object to see if it can archive just one object of each distinct numeric value. With the number o

Re: [Q] UTF-8, stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding, weirdness

2008-06-18 Thread JongAm Park
Thank you for the additional information. Interestingly I found a similar method in NSFileManager, fileSystemRepresentationWithPath. So, is there any document on which file system uses which representation? Also, is there any reason why a program, like the FCP, prefers the decomposed string ov

Re: [Q] UTF-8 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding weirdness

2008-06-18 Thread Ken Thomases
On Jun 18, 2008, at 3:47 PM, JongAm Park wrote: Thank you very much for the information. You're welcome. I even didn't think about the normalization. Wow.. it is quite complicated. I tried the 4 methods, -precomposedStringWith[Canonical/ Compatibility]Mapping and -decomposedStringWith[Can

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Quincey Morris
On Jun 18, 2008, at 13:06, Markus Spoettl wrote: I did profile it but it's not my code that is slow. It's the call to [archiver finishEncoding] that's taking so long (see the Shark trace below. Regards Markus 3.5% 57.0% CoreFoundation __CFSetFindBucke

Re: Rethinking my approach; rather overwhelmed.

2008-06-18 Thread Shawn Erickson
On Tue, Jun 17, 2008 at 9:28 PM, Josh de Lioncourt <[EMAIL PROTECTED]> wrote: > Hi Louis and Andy, > > I'm certainly looking at this suggestion, but another developer suggested > that I may be better served by hooking into the keyboard input functionality > of OpenGL. Assuming that have focus on a

Re: Getting all subclasses

2008-06-18 Thread Christopher Nebel
That depends on what you mean by "automatically". If you read the documentation, you'll see this bit: "The load message is sent to classes and categories that are both dynamically loaded and statically linked, but only if the newly loaded class or category implements a method that can resp

Re: [Q] UTF-8 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding weirdness

2008-06-18 Thread JongAm Park
Thank you very much for the information. I even didn't think about the normalization. Wow.. it is quite complicated. I tried the 4 methods, -precomposedStringWith*[Canonical/Compatibility]*Mapping and -decomposedStringWith*[Canonical/Compatibility]*Mapping. The result was that [NSString UTF8S

Re: Working if Cocoa Core Data

2008-06-18 Thread Hamish Allan
On Wed, Jun 18, 2008 at 7:33 PM, Thiago Rossi <[EMAIL PROTECTED]> wrote: > *Amount* is an calculated field and it depends on the previous transactions. > I don't know how to do it! It is not a value I can save on database, for > example, because it changes all the time (I guess I have to mark the

Re: [Q] UTF-8 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding weirdness

2008-06-18 Thread Christopher Nebel
On Jun 18, 2008, at 12:24 PM, Ken Thomases wrote: On Jun 18, 2008, at 1:49 PM, JongAm Park wrote: Can anyone tell me why the two different data source are displayed as same "자연", while what it contains are different? I haven't looked into the specific character sequences in-depth, but I s

Re: unexpected nil outlet

2008-06-18 Thread Aron Nopanen
On 19/06/2008, at 7:21 AM, Nathan wrote: On Wed, Jun 18, 2008 at 4:41 AM, Michael Kaye <[EMAIL PROTECTED]> wrote: wow, I'm another one just starting the same challenge...how many of us newbies are there working through Hillegaas at the moment? /me raises hand. I'm currently stuck on chal

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Markus Spoettl
On Jun 18, 2008, at 12:35 PM, Michael Ash wrote: I saw no mention in your message; have you profiled your app yet? Even though the time is not being spent in your code, a profile can give you an idea of what's taking up all this time, and may give you hints as to how to make it go faster. First r

re: Working if Cocoa Core Data

2008-06-18 Thread Ben Trumbull
*- I'm a Java programmer who wants to migrate to ObjC/Cocoa.* Welcome. Unlike some of the others, I don't think Core Data requires an advanced degree in Cocoa. However, in my experience, trying to learn both Cocoa Bindings and Core Data simultaneously overwhelms many people new to Cocoa.

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Michael Ash
On Wed, Jun 18, 2008 at 2:13 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: > Hello List, > > I'm having a problem with a performance problem in NSKeyedArchiver which I > can't find a cause for. I saw no mention in your message; have you profiled your app yet? Even though the time is not being spe

Re: Trying to get hang of PDO

2008-06-18 Thread Waldo Lee Sharvey
I'm getting SIGBUS errors when my [connection rootProxy] is called. On Wed, Jun 18, 2008 at 3:00 PM, I. Savant <[EMAIL PROTECTED]> wrote: > On Wed, Jun 18, 2008 at 2:54 PM, Waldo Lee Sharvey > <[EMAIL PROTECTED]> wrote: > > Whoops, I had a typo on ClientController's nameserver's portname (it was

Re: [Q] UTF-8 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding weirdness

2008-06-18 Thread Ken Thomases
On Jun 18, 2008, at 1:49 PM, JongAm Park wrote: Can anyone tell me why the two different data source are displayed as same "자연", while what it contains are different? I haven't looked into the specific character sequences in-depth, but I suspect the difference is in Normalization Forms. Sp

Re: unexpected nil outlet

2008-06-18 Thread Nathan
On Wed, Jun 18, 2008 at 4:41 AM, Michael Kaye <[EMAIL PROTECTED]> wrote: > wow, I'm another one just starting the same challenge...how many of us > newbies are there working through Hillegaas at the moment? /me raises hand. I'm currently stuck on challenge 1 in chapter 8 (pg 135): Make the appli

[ANN] NYC CocoaHeads meeting Thu 6/19

2008-06-18 Thread Andy Lee
WHAT: Cathy Shive will talk about creating IB plugins. Afterwards, food and beer as usual. WHEN: Thursday, June 19, 6:00PM (special date this month due to WWDC) WHERE: The basement at Tekserve, at 119 West 23rd between 6th and 7th, http://www.tekserve.com/ __

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Markus Spoettl
On Jun 18, 2008, at 11:25 AM, Kyle Sluder wrote: On Wed, Jun 18, 2008 at 2:13 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: 2) I also noticed that when I use the NSPropertyListXMLFormat_v1_0 instead of binary, the process speeds up considerably, taking just below 10 seconds. The problem with

Re: unexpected nil outlet

2008-06-18 Thread David Reynolds
On 18 Jun 2008, at 13:31, David Reynolds wrote: Sure, I can email it to you I get home from work if you like? For anyone following, here is my version of the code: Controller.h: #import @interface Controller : NSObject { } @end No instance variables and no methods- is this bad? Controll

Re: Trying to get hang of PDO

2008-06-18 Thread I. Savant
On Wed, Jun 18, 2008 at 2:54 PM, Waldo Lee Sharvey <[EMAIL PROTECTED]> wrote: > Whoops, I had a typo on ClientController's nameserver's portname (it was > supposed to be "CommServerPort" and not "ChatterPort") > Fixed this, but now I'm getting crashes when the debugger hits [[connect > rootProxy] r

Re: Trying to get hang of PDO

2008-06-18 Thread Waldo Lee Sharvey
Whoops, I had a typo on ClientController's nameserver's portname (it was supposed to be "CommServerPort" and not "ChatterPort") Fixed this, but now I'm getting crashes when the debugger hits [[connect rootProxy] retain]. On Wed, Jun 18, 2008 at 2:40 PM, Waldo Lee Sharvey < [EMAIL PROTECTED]> wrote

[Q] UTF-8 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding weirdness

2008-06-18 Thread JongAm Park
Hello, all. I found a very interesting and strange behaviour of the NSString:stringByAddingPercentEscapedUsingEncoding. I got a UTF-8 string from a Final Cut Pro project file, which is exported as an XML. There is a video clip named "자연", which means "Nature" in Korean. And its pathurl is f

Re: Working if Cocoa Core Data

2008-06-18 Thread I. Savant
> Can anyone please help me? No. At least not at present. There have been many discussions (several very long ones recently) about the fact that - as stated in the documentation - Core Data is most emphatically NOT a beginner technology. Any effort spent trying to help you run before you can cra

Re: Working if Cocoa Core Data

2008-06-18 Thread Hal Mueller
1. You really need to master the basics of Cocoa before you tackle Core Data. 2. I would move "amount" over on the "Account" entity, and rename it "balance". 3. See #1. Hal ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Trying to get hang of PDO

2008-06-18 Thread Waldo Lee Sharvey
For the last several days I've been trying to use Distributed Objects in my application to no avail. I've scanned and scoured for multiple pieces of documentation over just about everywhere, I've tried one variation of code after another, initially trying to use NSSocketPort with domain sockets and

Working if Cocoa Core Data

2008-06-18 Thread Thiago Rossi
Hello, guys! I've been studying the Cocoa Core Data and I have a question about it. I went through a blog tutorial I got at the Internet and I build my first Cocoa Application. So I decided to do something by my own: a financial controller. To make it simple, I used Account and Transaction object

Re: Swapping splitview subviews

2008-06-18 Thread I. Savant
> Is there a way to swap these subviews? (invert the position). > Any hint? Remove the subviews, then re-add them in the desired order? -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator com

Re: NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Kyle Sluder
Assuming you don't fix the issue: On Wed, Jun 18, 2008 at 2:13 PM, Markus Spoettl <[EMAIL PROTECTED]> wrote: > 2) I also noticed that when I use the NSPropertyListXMLFormat_v1_0 instead > of binary, the process speeds up considerably, taking just below 10 seconds. > The problem with this is that t

Re: Road to 80 cores ( Was Re: Grand Central Details)

2008-06-18 Thread Kyle Sluder
On Wed, Jun 18, 2008 at 1:50 PM, Pierce T. Wetter III <[EMAIL PROTECTED]> wrote: > The problem is that creating a thread, destroying a thread, and switching > threads in and out have a LOT of overhead. The above thread is going to > spend most of its time waiting for I/O, but the OS has no way of

Re: NSThread, NSAutoreleasePool and mach_trap_msg

2008-06-18 Thread Bill Bumgarner
On Jun 18, 2008, at 11:10 AM, Georg Schuster wrote: I'm sorry that I can't post any real code, but does anybody know if there are some special things I should keep an eye on when programming the WorkerClass? I tried to read every doc about threads and autoreleasepools I could get my hands on

NSKeyedArchiver finishEncoding takes forever

2008-06-18 Thread Markus Spoettl
Hello List, I'm having a problem with a performance problem in NSKeyedArchiver which I can't find a cause for. Let me first describe the data I'm storing: It's a simple object hierarchy consisting of the following Root custom < NSCoding > compliant object |-- ANodes (NSMutableArray)

NSThread, NSAutoreleasePool and mach_trap_msg

2008-06-18 Thread Georg Schuster
Hi, as I'm fairly new to cocoa-programming, I've stumbled across a problem that I can't quite understand. - I've made a class (let's call it ThreadClass) that is a subclass of NSThread. - This class gets invoked from somewhere else via [theThreadClass start]. - That invokes Threa

Re: Race condition with awakeFromNib?

2008-06-18 Thread Kyle Sluder
On Wed, Jun 18, 2008 at 1:04 PM, David Carlisle <[EMAIL PROTECTED]> wrote: > I have a navigator object which maintains a stack of NSViewControllers. > When I create a new NSViewController and push it to the navigator, I want > the view's back button to show the name of the previous view. If the >

Swapping splitview subviews

2008-06-18 Thread dexter morgan
Hello, I'm using NSSplitView with two subviews in both vertical and horizontal mode. In awakeFromNib of my code I use -addSubView to fill the first subview (the other is just filled because I've created it in IB). Is there a way to swap these subviews? (invert the position). Any hint? Thanks. _

Race condition with awakeFromNib?

2008-06-18 Thread David Carlisle
I have a navigator object which maintains a stack of NSViewControllers. When I create a new NSViewController and push it to the navigator, I want the view's back button to show the name of the previous view. If the navigator tries to set the title of the button, the button is still null b

disappearing NSSpellingStateAttributeName

2008-06-18 Thread Jesse Grosjean
I have an NSTextView. Check spelling as you type is enabled. If I misspell a word it is correctly underlined with a red line immediately after I type the word followed by a whitespace. But then the underline is removed when I begin typing a new word. I'm guessing this is related to some thi

Road to 80 cores ( Was Re: Grand Central Details)

2008-06-18 Thread Pierce T. Wetter III
Topic/focus changed to please the moderator. Too bad you can't avoid blocking at least occasionally with the event-driven APIs, meaning you still have to use threads to avoid it completely. And I fail to see what's so bad about having one thread per socket. Is it because Threads Are Ha

Re: Getting all subclasses

2008-06-18 Thread Jean-Daniel Dupas
IIRC, +initialize call the super implementation if the child class does not override it, but not the +load method that is called exactly once per class and per categorie. So +load will not be called automatically. Le 18 juin 08 à 18:57, Mike Abdullah a écrit : Another option would be to w

Re: Core Data / Bindings problem: context not notified of add: ?

2008-06-18 Thread Quincey Morris
On Jun 18, 2008, at 03:31, Alain Schartz wrote: My model consists of an abstract entity A and an entity B, with A being B's parent. Each entity is managed by it's own NSArrayController (mode set to Entity and correctly bound to the context), and each NSArrayController is bound to a NSTable

Re: Getting all subclasses

2008-06-18 Thread Mike Abdullah
Another option would be to write a +load method in your abstract superclass that will be automatically called for any subclasses and register them with the superclass. Mike. On 18 Jun 2008, at 16:45, Laurent Cerveau wrote: Fantastic! Thanks to you and Omar. laurent On Jun 18, 2008, at 9:

Re: does NSTextField always use UTF8 encoding

2008-06-18 Thread Alastair Houghton
On 18 Jun 2008, at 07:25, Andrew Farmer wrote: NSStrings are encoding-independent. They represent strings, not sequences of bytes. Not *entirely*. The docs are a little sloppy on this, unfortunately, both for Cocoa and Core Foundation; in both cases they talk about "Unicode characters" a

Re: Send Key Event to Focused Window

2008-06-18 Thread Bill Cheeseman
on 2008-06-18 7:25 AM, Daniel at [EMAIL PROTECTED] wrote: > I should be able to > click on a button (representing a key stroke) and sending the event > (e.g. Safari) to the right application. As joar says, look at the Quartz Event Taps API and the Accessibility API. To try out examples of applic

Re: Getting all subclasses

2008-06-18 Thread Laurent Cerveau
Fantastic! Thanks to you and Omar. laurent On Jun 18, 2008, at 9:28 AM, Graham Cox wrote: If you need a list of subclasses of a class, there isn't a built-in function - you have to test them one at a time. However I had the exact same need recently and wrote a little helper class to do it.

Core Animation and Live Resize Problems

2008-06-18 Thread Milen Dzhumerov
Hi all, I've hit a very nasty problem when using Core Animation and doing a live resize. Even though I've disabled animations, Core Animation messes up the layer when resized for a couple of frames. So, here's what I think happens: - I resize several sublayers and reposition them - Since t

Re: Send Key Event to Focused Window

2008-06-18 Thread j o a r
On Jun 18, 2008, at 4:25 AM, Daniel wrote: Basically, I've noticed that the code I'm using works (as it sends the right event), but it is sent to the wrong "receiver". That means I'm sending it to my current application, instead I should be able to click on a button (representing a key stroke)

Re: disable manual resizing of NSWindow

2008-06-18 Thread Uli Kusterer
Am 18.06.2008 um 15:15 schrieb Angelo Chen: In a NSWindow, I'd like to disable manual resizing(don't allow user to drag the lower right corner to resize the window), only by clicking 'max' and 'restore' icons, possible? the reason is, I put a QuickTIme's movieview in the window and the pres

Re: disable manual resizing of NSWindow

2008-06-18 Thread Jean-Daniel Dupas
Le 18 juin 08 à 15:15, Angelo Chen a écrit : Hi, Is there a way to do following: In a NSWindow, I'd like to disable manual resizing(don't allow user to drag the lower right corner to resize the window), only by clicking 'max' and 'restore' icons, possible? the reason is, I put a QuickTI

Re: Running a daemon

2008-06-18 Thread Ivan C Myrvold
Den 18. juni. 2008 kl. 14:22 skrev [EMAIL PROTECTED]: Ivan C Myrvold wrote on 2008-06-18 13:07:50: I have developed a daemon that have an Objective-C class "ApplicationWatcher" which checks the foreground applications with NSWorkspace. In my main I create the ApplicationWatcher, and the clas

Re: disable manual resizing of NSWindow

2008-06-18 Thread Apparao Mulpuri
If you are creating Window in IB, then in window inspector Uncheck the reResize checkbox. In programmatic approach, you have to set the Window's style mask. - Apparao. 2008/6/18 Angelo Chen <[EMAIL PROTECTED]>: > Hi, > > Is there a way to do following: > > In a NSWindow, I'd like to disable manu

disable manual resizing of NSWindow

2008-06-18 Thread Angelo Chen
Hi, Is there a way to do following: In a NSWindow, I'd like to disable manual resizing(don't allow user to drag the lower right corner to resize the window), only by clicking 'max' and 'restore' icons, possible? the reason is, I put a QuickTIme's movieview in the window and the preserving aspe

Re: unexpected nil outlet

2008-06-18 Thread David Reynolds
On 18 Jun 2008, at 11:41 am, Michael Kaye wrote: wow, I'm another one just starting the same challenge...how many of us newbies are there working through Hillegaas at the moment? I would love to see your solution...when I complete it maybe we should exchange off list? Sure, I can email

Re: Running a daemon

2008-06-18 Thread Graham . Lee
Ivan C Myrvold wrote on 2008-06-18 13:07:50: > I have developed a daemon that have an Objective-C class > "ApplicationWatcher" which checks the foreground applications with > NSWorkspace. > > In my main I create the ApplicationWatcher, and the class starts an > NSTimer. > This is probably a st

Re: does NSTextField always use UTF8 encoding

2008-06-18 Thread Ken Thomases
On Jun 18, 2008, at 1:25 AM, Andrew Farmer wrote: On 17 Jun 08, at 23:16, Wayne Shao wrote: In my UI, a user may type in any string into a NSTextField, e.g. Chinese characters. Do I assume the return value from NSString * value = [textField stringValue] is always encoded with UTF8? NSStrin

Running a daemon

2008-06-18 Thread Ivan C Myrvold
I have developed a daemon that have an Objective-C class "ApplicationWatcher" which checks the foreground applications with NSWorkspace. In my main I create the ApplicationWatcher, and the class starts an NSTimer. This is probably a stupid question, but I want the daemon to continue runni

Re: Send Key Event to Focused Window

2008-06-18 Thread Daniel
Thank you! I'll read through them. Basically, I've noticed that the code I'm using works (as it sends the right event), but it is sent to the wrong "receiver". That means I'm sending it to my current application, instead I should be able to click on a button (representing a key stroke) and sending

Displaying high PPI image at proper size

2008-06-18 Thread Loren Ryter
Hello all. I'm trying to make sure any image included in an RSS feed is displayed at the proper size. I've found some images, such as netflix, store 300 dpi images, which when displayed (in a Growl notification) appear at about 24% of their "actual" size. The example I'm working with is this:

Re: unexpected nil outlet

2008-06-18 Thread Michael Kaye
wow, I'm another one just starting the same challenge...how many of us newbies are there working through Hillegaas at the moment? I would love to see your solution...when I complete it maybe we should exchange off list? Regards, Michael. On 18 Jun 2008, at 09:25, David Reynolds wrote: O

Core Data / Bindings problem: context not notified of add: ?

2008-06-18 Thread Alain Schartz
Hello list. I need help with a problem I suspect being a Core Data / Bindings hickup : My model consists of an abstract entity A and an entity B, with A being B's parent. Each entity is managed by it's own NSArrayController (mode set to Entity and correctly bound to the context), and each NSArr

Re: [MODERATOR] Re: Two basic questions regarding UITableViewController and ObjC-2.0

2008-06-18 Thread Stefan Wolfrum
thanks & sorry, didn't know. 2008/6/18 Scott Anguish <[EMAIL PROTECTED]>: > As explained multiple times today, including in the list guidelines that > were posted on June 15 with the tag "MUST READ" and are sent to every new > subscriber... > > > Discussing NDA Projects (Snow Leopard and iPhone O

Binding the enabled property of a NSMatrix instance to wether or not a multiple selection on a array controller is made.

2008-06-18 Thread Eloy Duran
Hi list, I have a NSArrayController and a form (collection of controls) that displays attributes for a individual object in the array controller. One attribute is bound to a NSMatrix (radio buttons) with the "Selected Index" binding. This works great. But now I want to disable the NSMatrix

NSURLRequest conditional GET

2008-06-18 Thread Marc Monguio
Some weird things seem to happen with NSURLRequest when used with NSURLRequestUseProtocolCachePolicy : 1) The documentation I've found about "Conditional GET" in the web says I should be sending "If-Modified-Since" and "If-None-Match" headers with the contents of "Last-Modified" and ETag" h

[MODERATOR] Re: Two basic questions regarding UITableViewController and ObjC-2.0

2008-06-18 Thread Scott Anguish
As explained multiple times today, including in the list guidelines that were posted on June 15 with the tag "MUST READ" and are sent to every new subscriber... Discussing NDA Projects (Snow Leopard and iPhone OS) and Private API ==

Re: Grand Central Details

2008-06-18 Thread Scott Anguish
And again On Jun 17, 2008, at 8:47 PM, Pierce T. Wetter III wrote: On Jun 17, 2008, at 5:31 PM, David Wilson wrote: WWDC is still under NDA, I'm pretty sure no one's allowed to say anything here beyond whatever mentions have been made to the press. Well, Apple people are, once they obtain t

[MODERATOR] Re: Grand Central Details

2008-06-18 Thread Scott Anguish
On Jun 17, 2008, at 8:17 PM, Pierce T. Wetter III wrote: I had a release the week before, plus we didn't have enough tickets since WWDC was sold out, so I didn't go. Are there any details on Grand Central? Discussing NDA Projects (Snow Leopard and iPhone OS) and Private API ===

Re: Drawing in CALayers

2008-06-18 Thread Scott Anguish
On Jun 17, 2008, at 4:50 PM, Erik Buck wrote: I am a little bit confused by Scott's statement that "if you use layers-hosting views, then you should not rely on view drawing at all ... conversely, if you use layer-backed views then you should not directly access the views." and you sho

Re: Where to store document window specific setup data

2008-06-18 Thread Bill Cheeseman
on 2008-06-17 9:36 PM, Markus Spoettl at [EMAIL PROTECTED] wrote: > Also, if that data is it stored on a per document basis, is it stored > as a part of the document data or in the user defaults data. Storing > in the user default database (or someplace else) would remember all > documents opened

Two basic questions regarding UITableViewController and ObjC-2.0

2008-06-18 Thread Stefan Wolfrum
Hi all, I hope this is the correct mailing list for iPhone OS questions, too? If not, please redirect me to a more appropriate forum/list. I'm currently learning some basic Cocoa touch stuff and my first app is to be a very simple table view with a detail view for each row. I'm studying the

Re: Passing CGImageSourceRef to IKImageView

2008-06-18 Thread Jonathan Dann
Thanks Douglas, Nice to know I'm not going mad! Jon On 16 Jun 2008, at 17:51, douglas a. welton wrote: Jonathan, I don't think you missed anything. I do believe that documentation is somewhat misleading for this class. I was in the same situation as you, so I simply decided to get a C

Re: capture modifier key events

2008-06-18 Thread Mattias Arrelid
Hi Apparao, On Wed, Jun 18, 2008 at 7:55 AM, Apparao Mulpuri <[EMAIL PROTECTED]> wrote: > I have a NSTextField, in which i have to update with new string > value when ever user presses Cmd, Control or Option keys. I have tried > with keyDown and controlDidChange methods. These are working with > c

Re: Rethinking my approach; rather overwhelmed.

2008-06-18 Thread Louis Gerbarg
I have not used glut for any OS X based projects, but my impression is that if you intend to use no OS facilities in the window you are interacting with then glutKeyboardFunc() and friends should work just fine. If you want to use a WebView or anything that expects NSEvents in that window you are p

Re: unexpected nil outlet

2008-06-18 Thread David Reynolds
On 18 Jun 2008, at 1:47 am, William Squires wrote: I'm trying to code a solution to the challenge "Make a Delegate" in chapter 6 of the new Hillegaas book. Here is my AppController.h Interestingly, I was doing this same challenge last night, and I think I did it a slightly different way,

  1   2   >