Re: Leopard-specific functionality in non–L eopard-only project

2008-06-21 Thread Jacob
X Deployment Target to Mac OS X 10.4. > (under Deployment) > > You'll want to set it for all your configurations: (Debug, Release, etc) > > On Sat, Jun 21, 2008 at 12:51 PM, Jacob Bandes-Storch > <[EMAIL PROTECTED]> wrote: > > I'm working on a project (with an

Re: NSTextView + other NSView in NSScrollView?

2008-07-31 Thread Jacob
; > I don't know offhand. A quick search on CocoaBuilder for "NSTextView > flipped" turns up this suggestion to flip the superview: > > <http://www.cocoabuilder.com/archive/message/cocoa/2004/6/20/110164> > > But I haven't read it closely. > > --And

Re: HUD-style panel controls?

2008-04-12 Thread Jacob
to give us something standard, so everyone's not > rolling slightly different HUD panels, we should have at least /some/ > standard HUD controls. > > Please, please file an enhancement request. > > > -- > m-s > > > On 12 Apr, 2008, at 22:01, Jacob Bandes-Storch

Class for external monitor?

2009-09-21 Thread Jacob Schwartz
Hey everyone, I'm new to this mailing list and also new to objective-c/cocoa programming. I've gone through a book I picked up and I wanted to try to make a simple, run in the background application. To get to the point, I was looking through the documentation was looking for some class t

Re: Class for external monitor?

2009-09-21 Thread Jacob Schwartz
Yeah, monitor without menu bar will work great, thank you and thanks to Graham, -Jake On Sep 21, 2009, at 11:55 AM, Scott Ribe wrote: Well I don't think there's a way to directly ask for "the external monitor", but look at NSScreen first. Remember, on Mac it is easy to move the menu bar t

Disappearing NSStatusItem

2009-09-25 Thread Jacob Schwartz
Hello again, After making headway on my first cocoa app, I have run into an issue. I have created a NSStatusItem in my class called Application.m. When I run, the icon appears in my menubar but then disappears and becomes ineligable to click. I read something somewehere about thr garbage

Re: Disappearing NSStatusItem

2009-09-25 Thread Jacob Schwartz
Yeah, I threw in a release statement after and it didn't do anything different. When I read your reply, I thought what Bill said, that garbage collection was different from release/retain statements. -Jake Schwartz On Sep 25, 2009, at 7:33 PM, Bill Bumgarner wrote: On Sep 25, 2009, at 4:3

Bad stardardUserDeafaults

2009-10-01 Thread Jacob Schwartz
Hello all, So I have a code segment that turns an NSString that is a file path on my computer into an NSURL, archives the NSURL into NSData, and then puts that into a NSMutableDictionary to be saved in the standardUserDefaults. I can archive and unarchive the NSData with no problem, but i

Re: Bad stardardUserDeafaults

2009-10-01 Thread Jacob Schwartz
Alright I'll have to do it after I get out of class. I didn't post it right away in case this was a common mistake, simple use of a wrong method. Thanks -Jake On Oct 1, 2009, at 3:38 PM, "I. Savant" wrote: On Oct 1, 2009, at 3:32 PM, Jacob Schwartz wrote: So I

Re: Bad stardardUserDeafaults

2009-10-01 Thread Jacob Schwartz
luteString]: unrecognized selector sent to instance 0x10013a7b0 Thank you again. -Jake On Oct 1, 2009, at 3:51 PM, I. Savant wrote: On Oct 1, 2009, at 3:49 PM, Jacob Schwartz wrote: I didn't post it right away in case this was a common mistake That's the problem. If you think about

Re: Bad stardardUserDeafaults

2009-10-01 Thread Jacob Schwartz
. Thanks again for all the help -Jake On Oct 1, 2009, at 6:14 PM, Jens Alfke wrote: On Oct 1, 2009, at 2:19 PM, Jacob Schwartz wrote: NSMutableDictionary *defaultValues = [NSMutableDictionary dictionary]; NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"/ Use

Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
Hey all, After some searching through the API, which apparently I am not good at, I figured asking was easier. Does anyone know of a notification that gets posted when another screen is added/detected. I figured it would be in NSWorkspace but I didn't see anything. Thanks. -Jake Schwartz__

Re: Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
gt; > - Original Message - > From: "Jacob Schwartz" > To: > Sent: Tuesday, December 29, 2009 6:15 PM > Subject: Notification when displays are detected? > > > Hey all, > > After some searching through the API, which apparently I am not >

Re: Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
No: NSNotificationCenter *nc = [[NSWorkspace sharedWorkspace] notificationCenter]; And Paul, it does exist because the other notification I have set up get recognized works and I c&ped the code. Thanks for all the help guys. -Jake On Dec 29, 2009, at 2:05 PM, Dave Keck wrote: > Does nc == [N

Re: Notification when displays are detected?

2009-12-29 Thread Jacob Schwartz
Dave, victory is yours. What is the difference between that center and my center? -Jake Schwartz On Dec 29, 2009, at 2:05 PM, Dave Keck wrote: > Does nc == [NSNotificationCenter defaultCenter]? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

MKPinAnnotationView callout behind other pins

2010-01-19 Thread Jacob Schwartz
Hey everyone, To start off, Im sorry if this is the wrong mailing for cocoa touch and iPhone MapKit related questions but I didn't know where else to go and you guys haven't let me down in the past. Onto my question. I have an iPhone app that has pins dispersed across an area. When I click on

Re: MKPinAnnotationView callout behind other pins

2010-01-19 Thread Jacob Schwartz
Cox wrote: > > On 20/01/2010, at 9:49 AM, Jacob Schwartz wrote: > >> Onto my question. I have an iPhone app that has pins dispersed across an >> area. When I click on a pin, the callout pops up as normal, but it is >> SOMETIMES hidden by the other pins. I cannot fi

Detecting text under mouse

2009-06-12 Thread Jacob Rhoden
useful on Microsoft Windows for learning chinese: http://www.mdbg.net/chindict/chindict.php?page=chinese_dictionary_windows Best regards, Jacob -- Jacob Rhoden http://jacobrhoden.com ___ Cocoa

Re: Detecting text under mouse

2009-06-13 Thread Jacob Rhoden
are pages and posts saying there is no documentation! Does anyone know where I might find information on how to detect the accessability information under the mouse cursor? (I continue to search the apple documentation in the mean time) Thanks, Jacob > FROM : Mr. George Warner > DATE :

Display either date part or time part in LOCAL format

2009-07-05 Thread Jacob Rhoden
e stringFromDate:now]; -- ____ Jacob Rhoden http://jacobrhoden.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)l

Re: Creating Custom Views in Interface Builder

2008-03-14 Thread Jacob Lukas
searches have been unsuccessful. If someone could point me in the right direction, that would be a great help. Thanks! Regards, Michael What about creating this view in a separate nib, and loading it each time you wish to insert it somewhere? Perhaps using +[NSBundle loadNibNa

NSViewController's representedObject and NSArrayController's selection don't mix?

2008-04-06 Thread Jacob Lukas
ed some light on this situation? Thank you, Jacob Lukas ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsub

How inspect pending performSelectorOnMainThread ?

2008-04-07 Thread Jacob Engstrand
Hi all, In a separate thread I call: [self performSelectorOnMainThread: @selector(broadcastMessage:) withObject: nil waitUntilDone: NO]; Now, is there a way for the main thread to inspect the queue of pending messages, their targets and arguments? (I would like my unit test to verify that

Re: NSViewController's representedObject and NSArrayController's selection don't mix?

2008-04-07 Thread Jacob Lukas
it. Is there a better way to do what I'm trying to do? Thank you, Jacob Lukas On Apr 6, 2008, at 22:52, Jacob Lukas wrote: I have a table of Core Data objects and a set of inspector views. Depending on the Class(es) of the selection in the table view, the set of inspector views chan

[SOLVED] Re: NSViewController's representedObject and NSArrayController's selection don't mix?

2008-04-07 Thread Jacob Lukas
roxy as my view controller's representedObject each time the selection changes. This works beautifully. If anyone wants the source for my proxy class, I'd be happy to provide it (free for all use). Thank you, Jacob Lukas On Apr 6, 2008, at 22:52, Jacob Lukas wrote: I have

CLLocationDistance contents?

2008-12-18 Thread Jacob Rhoden
/km? How do I display it on screen in a platform independent way? I cant find any examples in the developer centre thingy. Thanks -jacob --- http://jacobrhoden.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: CLLocationDistance contents?

2008-12-18 Thread Jacob Rhoden
CLLocation* venueLocation = [[CLLocation alloc] initWithLatitude: venue.latitude longitude:venue.longditude]; CLLocationDistance distance = [venueLocation getDistanceFrom:currentLocation]; Is distance in metres/miles/km? How do I display it on screen in a platform independent way? On 19/12/

Sorting an NSMutableArray

2008-12-20 Thread Jacob Rhoden
need to apply a mathematical algorithm using information from each object to determine which one is greater than the other. Thanks! Jacob http://jacobrhoden.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Making an object release itself?

2008-12-30 Thread Jacob Rhoden
Im still learning cocoa, so I have a question about if this is a good idea or a crazy noob mistake. Given the following code can I alter it so that postreader auto releases itself? -(IBAction) fetchThreads:(id) sender { [progress startAnimation:nil]; PostReader* reader = [[PostReader al

Re: Odd EXEC_BAD_ACCESS after executing URLRequest

2008-12-30 Thread Jacob Rhoden
sage' function. Regards, Jacob ___ http://jacobrhoden.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa

Stumped on memory problem :(

2009-01-05 Thread Jacob Rhoden
I have read the memory management documentation over and over but still cannot work out the problem with this code, can anyone see it? I have spent hours on this! +(NSMutableArray*)getStrings { NSMutableDictionary* dict = [[NSMutableDictionary alloc] init]; [dict setValue: @"" forKey: [

NKE Kernel extension

2009-01-09 Thread Jacob Rhoden
Hi, Anyone here ever done any Network kernel extensions? I am trying to start by doing something simple as monitoring network traffic, but the apple documentation isn't getting me very far? Anyone know any useful websites or tutorials in this area? Best regards,

Re: NKE Kernel extension

2009-01-10 Thread Jacob Rhoden
Thanks, I hadn't thought to check some other lists, ill check out what there is. On 10/1/09 11:39 PM, Alastair Houghton wrote: On 10 Jan 2009, at 07:01, Jacob Rhoden wrote: Anyone here ever done any Network kernel extensions? I am trying to start by doing something simple as monit

Re: Mac Pro memory sizes

2009-01-11 Thread Jacob Rhoden
Depending on what sort of data you has, you could try allocating all of your memory on startup, organised into related "zones". That way you are not constantly allocating/deallocating anything. Just overwriting values. This can provide an unbelievable speed inprovement, and low memory overheads

Re: [NOOB] Finding Information

2009-01-18 Thread Jacob Rhoden
k out http://developer.apple.com/mac/ (Which I seem to have automatic access to because I signed up to the iphone dev site) -jacob ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mod

Re: Read lines from very large text file

2009-02-02 Thread Jacob Rhoden
7 AM, Alexander Spohr wrote: NSInputStream? Am 02.02.2009 um 14:42 schrieb Jacob Rhoden: I am wondering what the best way to read a text file, line by line, when the file size is much larger than available memory. I know there are helper functions like stringWithContentsOfFile:encoding:error:, but

Read lines from very large text file

2009-02-02 Thread Jacob Rhoden
been of much extra help here. Thanks! Jacob Jacob Rhoden http://jacobrhoden.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Read lines from very large text file

2009-02-02 Thread Jacob Rhoden
last line ending to fetch the next large block. Sounds like a worthwhile blog entry (: Best regards, Jacob ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Read lines from very large text file

2009-02-03 Thread Jacob Rhoden
line ending is irrelevant, see a \n or a \r and we know we have reached the end of a "entry" in the log. Thanks, Jacob -- ____ Jacob Rhoden http://jacobrhoden.com ___ Cocoa-dev mailing list (Co

How to handle clicks on NSOutlineView

2009-02-13 Thread Jacob Rhoden
)awakeFromNib { [outline setAction:@selector(loadMemberList:)]; } -(IBAction)loadMemberList:(id)sender { if(ldap.connected) { NSLog(@"Load members"); NSLog(@" site %@ ",[[outline selectedCell] name]); } } Thanks, Jacob -- __

Re: How to handle clicks on NSOutlineView

2009-02-13 Thread Jacob Rhoden
On 14/2/09 3:39 PM, Graham Cox wrote: On 14 Feb 2009, at 12:22 pm, Jacob Rhoden wrote: I am trying to do an action when an item in an NSOutlineView is clicked. How do I work out which item was actually clicked on? Ive tried all sorts of things and nothing seems to work. (Google or Cocoa

Where to declare/initialise an NSOperationQueue

2009-02-13 Thread Jacob Rhoden
share" the same resources? I guess I am looking for direction on how best to use it. @interface WebsitesController : NSObject { NSOperationQueue *operationQueue; } Thanks, Jacob ____ Jacob Rhoden http://

Re: [Q] What causes an NSArrayController to know that an entity was inserted via a different window?

2009-02-24 Thread Jacob Evans
egass' "Cocoa Programming For Mac OS X" third edition book might help. Jacob ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: Data Types for Extracting samples from Audio Buffer

2008-10-05 Thread Jacob Lukas
On Oct 5, 2008, at 09:47, Joseph Ayers wrote: I'm trying to extract the audio samples from an audio buffer returned from the QuickTime Audio extraction API into a NSMutableArray of NSNumbers. The code I am using is: AudioBufferList* abl; NSMutableArray * ipbuf; N

Beginner memory management question

2008-12-03 Thread Jacob Rhoden
I am not sure how one would go about working this, Im writing my first "test" os/x applications and I am thinking this is probably not right. Am I doing the retain in the correct place? I tried reading the documentation on NSTextField but it didnt give me a clue about if I needed to "retain". (

Correct location to store application data.

2008-12-03 Thread Jacob Rhoden
ation, ie it doesnt make sense to store it in the "Documents" folder. Best regards, Jacob ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Date parsing problem (when running on iphone only)

2009-03-04 Thread Jacob Rhoden
he simulator: 2009-03-04 22:09:05.095 Test[68041:20b] DATE: Monday 26 January 2009 3:47:33 pm + to 5432224 Im completely stuck on this one! Are are there any other easy ways to parse dates? Any help appreciated. Thanks, Jacob ____ Jacob Rhoden

Re: Date parsing problem (when running on iphone only)

2009-03-04 Thread Jacob Rhoden
On 4/3/09 10:15 PM, Jacob Rhoden wrote: Anyone experience this weird behaviour with date parsing? Given the following code, it produces a different log output when running in the simulator or on the iPhone!!! NSString* test = @"Monday 26 January 2009 3:47:33 pm +"; NSDat

Re: Date parsing problem (when running on iphone only)

2009-03-04 Thread Jacob Rhoden
am used to Java's date parsing being language agnostic) Best regards, Jacob -- Jacob Rhoden http://jacobrhoden.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post a

Re: Newbie: Learning path for my GTD app...

2009-03-04 Thread Jacob Rhoden
/ is a really good reference point (its a bit more terse, and uses language that beginners dont always understand). (I sent this earlier but it seems to have gotten lost) Best regards, Jacob On 4/3/09 4:40 PM, Biagio wrote: Hello. My first post. I'm learning to program using Xcode 3.1

Understanding how to display a context menu

2009-03-10 Thread Jacob Rhoden
Menu insertItemWithTitle: deleteItem action:@selector(removeSite:) keyEquivalent:@"" atIndex:1]; return theMenu; } - (NSMenu *)menuForEvent:(NSEvent *)theEvent { return [self defaultMenu]; } @end Any help much appreciated! Thanks, Jacob __

Re: cascading windows in document architecture

2008-02-25 Thread Jacob Lukas
is skipped. Hope this helps. -Jacob ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/U

NSOpenGLView and NSOpenGLContext, view size?

2009-11-26 Thread Jacob Juul Kolding
t, and how to update them if the view is resized? /Regards Jacob Kolding dac...@juvul.com smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Cocoa-dev Digest, Vol 5, Issue 1067

2008-06-17 Thread Jacob Bandes-Storch
Not to mention that XIBs that have been compiled to NIBs can't be opened in Interface Builder, meaning you can't edit the interfaces of newer applications. It takes the fun out of it :( On Jun 17, 2008, at 12:37 AM, [EMAIL PROTECTED] wrote: On Jun 16, 2008, at 5:54 PM, William Squires wrote:

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

Leopard-specific functionality in non–Leopard -only project

2008-06-21 Thread Jacob Bandes-Storch
I'm working on a project (with another developer) that will target OSes older than 10.5, and I'd like to use the Leopard-only NSWindow method -setCollectionBehavior:. As far as I know, the best way to do this is to check for the method using -respondsToSelector:. I need to use the enum type

NSStatusItem custom view with menu

2008-07-03 Thread Jacob Bandes-Storch
I'm making an NSStatusItem with a custom view. In drawRect:, it draws things based on the value of the "highlighted" instance variable. When mouseDown: is called, it pops up a menu using the status item's popUpStatusItemMenu: method. Using the mouseUp: event does not work, because it is not

IB view transitions, CA, NSWindow animation

2008-07-26 Thread Jacob Bandes-Storch
For a bit of background, I've got a window, and I'll be swapping its content view's subview between some other views. One (and more in the future) of the other views has a subview with "wants layer" set so it can use some CALayer stuff for fading and such. Now, when I switch between views f

Re: IB view transitions, CA, NSWindow animation

2008-07-27 Thread Jacob Bandes-Storch
Dzhumerov wrote: On 27 Jul 2008, at 07:36, Jacob Bandes-Storch wrote: [snip] For resizing, the logical method is -[NSWindow setFrame:display:animate:]. This all works fine... until a descendant subview has a layer. Then I get a pause, and the window resizes without animating. If I remove the

NSTextView + other NSView in NSScrollView?

2008-07-27 Thread Jacob Bandes-Storch
I'm trying to create a Mail-style scroll view, with a view for information (like the view for message headers) above a text view for the content. I created two NSViews in Interface Builder, changed the class of the bottom one to NSTextView, selected both, and clicked Layout > Embed Objects

Re: NSTextView + other NSView in NSScrollView?

2008-07-28 Thread Jacob Bandes-Storch
On Jul 27, 2008, at 10:49 PM, Andy Lee wrote: On Jul 27, 2008, at 11:31 PM, Jacob Bandes-Storch wrote: I'm trying to create a Mail-style scroll view, with a view for information (like the view for message headers) above a text view for the content. I created two NSViews in Interface Bu

Re: NSTextView + other NSView in NSScrollView?

2008-07-28 Thread Jacob Bandes-Storch
On Jul 28, 2008, at 7:48 AM, Andy Lee <[EMAIL PROTECTED]> wrote: On Jul 27, 2008, at 11:31 PM, Jacob Bandes-Storch wrote: I'm trying to create a Mail-style scroll view, with a view for information (like the view for message headers) above a text view for the content. I created

CSV parsing (large files)

2008-07-29 Thread Jacob Bandes-Storch
I've got several large-size CSV files (a total of about 1.25 million lines, and an average of maybe 10 or so columns) that I want to parse into a 2D array. I found some parsing code that uses NSScanner, and it works fine with small files, but it's very resource-intensive and slow with large

NSImage size vs. representations' sizes

2008-08-02 Thread Jacob Bandes-Storch
I'm trying to use my application icon (icns) in a custom view to be draw in the background of a window, like Installer.app does. I can do all this just fine, but when I draw the image using - drawInRect:fromRect:operation:fraction:, it comes out at 128x128 instead of the full 512x512. -size

Custom URL Handling

2008-08-09 Thread Jacob Bandes-Storch
I want to implement a custom URL scheme (such that myscheme:whatever will open my app and somehow pass the URL as a parameter). I've been looking around for information on how to do that, and I'm getting mixed messages. The Info.plist documentation is very clear, and I've got the keys all

Re: Custom URL Handling

2008-08-09 Thread Jacob Bandes-Storch
It doesn't seem to make sense to use the script suite stuff to receive the URL event.. shouldn't it be used for scripting only? Or am I mistaken? On Aug 9, 2008, at 3:03 PM, Uli Kusterer wrote: I see some implementations use -[NSAppleEventManager setEventHandler:andSelector:forEventClass:an

Synchronous modal sheet

2008-08-15 Thread Jacob Bandes-Storch
I want to display a modal sheet, but my code isn't currently at the point where I can split it up. Is there a way to run a modal sheet synchronously, so the rest of the code after it starts isn't called until it ends? Or do I have no choice but to restructure this? __

Re: Synchronous modal sheet

2008-08-15 Thread Jacob Bandes-Storch
tives to a sheet, I suppose I'll go for it. On Aug 15, 2008, at 3:52 AM, Graham Cox <[EMAIL PROTECTED]> wrote: On 15 Aug 2008, at 3:16 pm, Jacob Bandes-Storch wrote: I want to display a modal sheet, but my code isn't currently at the point where I can split it up. Is there

Re: [iPhone] xml parsing

2008-03-10 Thread Jacob Bandes-Storch
On a similar-ish note, I'm having trouble using libxml. I'm using a slightly modified version of the appropriate sample code. I need to make sure that the library is in my project. Since I couldn't find the library in a convenient place (where are you supposed to get those anyway?), I just

Re: [Moderator] iPhone discussion here - RETRACTION

2008-03-10 Thread Jacob Bandes-Storch
So are we or are we not getting a specialized (password-protected, probably) discussion area for the iPhone SDK? On Mar 10, 2008, at 6:30 PM, [EMAIL PROTECTED] wrote: That sounds surprisingly plausible. I imagine a big speech bubble above the Apple campus that says, "Well, I'm glad we got al

HUD-style panel controls?

2008-04-12 Thread Jacob Bandes-Storch
I'm adding a HUD panel to my application. Looking around, I don't see a way to get the proper style of controls easily. The Human Interface Guidelines say that HUD controls should be "white with gray accents and use white or gray text." And yet I don't see a way to get these controls (gray

Detecting in/activity

2008-11-15 Thread Jacob Bandes-Storch
Hi all, I'd like to have an app/daemon/something detect when the computer becomes active after a period of inactivity, much like iChat does when it says "Welcome back! Would you like to change your status from ...". Does anyone have any insight as to the best way to do that? Thanks in adv

Zoom sometimes messes up resize increments

2011-01-15 Thread Jacob M. H. Smith
values and for some it does not. For example, it does not occur when I use 100 and 100, but it does occur when I use 47 and 47. Am I doing something wrong or is this a bug? If I am doing something wrong, how can I do it right? If it is a bug, how can I work around it? Tha

NSString sizeWithAttributes inaccuracy

2008-07-24 Thread Jacob Ole Juul Kolding
there is a simpler way to achieve my goal? Any help appreciated! Jacob Kolding [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Re: NSString sizeWithAttributes inaccuracy

2008-07-25 Thread Jacob Ole Juul Kolding
It's more than one pixel. First time i noticed it was with a string of about 140 chars which gut truncated about 10 chars. Jacob Kolding [EMAIL PROTECTED] On Jul 25, 2008, at 11:19 AM, Manfred Schwind wrote: he problem is that on very large strings sizeWithAttributes comes up shor

Re: NSString sizeWithAttributes inaccuracy

2008-07-25 Thread Jacob Ole Juul Kolding
IIRC from my debugging sessions sizeWithAttributes already does that? Jacob Kolding [EMAIL PROTECTED] On Jul 25, 2008, at 1:47 AM, Aki Inoue wrote: Try using -boundingRectWithSize:options:attributes instead with NSStringDrawingUsesDeviceMetics. Aki On 2008/07/24, at 14:23, Jacob Ole Juul

(Newb question?) Launching app on dock icon file drop?

2008-07-25 Thread Jacob Ole Juul Kolding
I been searching for quite a while and reading the source code for DockScript by still no luck. Can anyone tell me how to make an Cocoa app launch when a file is drag 'n droped on it's icon? Any pointer greatly appreciated! Jacob Kolding [EMAIL

Re: (Newb question?) Launching app on dock icon file drop?

2008-07-26 Thread Jacob Ole Juul Kolding
CFBundleTypeOSTypes CFBundleTypeRole Editor in Info.plist Thanks! Jacob Kolding [EMAIL PROTECTED] On Jul 26, 2008

NSWindow resize problems

2008-07-26 Thread Jacob Ole Juul Kolding
left side of the window? Second, I have a NSTableView with a single column in my window. The column doesn't automatically resize to fit the width of the table? Can anyone tell me how to solve these issues? Jacob Kolding [EMAIL PROTECTED] ___

Re: NSWindow resize problems

2008-07-27 Thread Jacob Ole Juul Kolding
. Another thing when I maximize and then resize the window a tiny bit the objects all fall into their correct place..? Jacob Kolding [EMAIL PROTECTED] On Jul 27, 2008, at 10:11 AM, Nathan Kinsinger wrote: On Jul 26, 2008, at 9:02 AM, Jacob Ole Juul Kolding wrote: Hello List I've implem

Containers in Cocoa, adding objects to NSView programmatically?

2008-07-27 Thread Jacob Ole Juul Kolding
Hello List I'm been reading the documentation quit a bit but haven't found the answer. My problem is that I don't really understand how containers work in Cocoa, I know NSView, but how do I add an object to it programmatically, say a NSImage? Any pointer greatly appr