Re: Adding fixed position subview over a scrollview

2010-03-30 Thread Kyle Sluder
On Tue, Mar 30, 2010 at 11:06 PM, Gideon King wrote: > Any suggestions on how I could get this to work? Why does it need to be a subview of the scroll view? If you're targeting 10.6 it sounds like you could just make it a peer of the scroll view and size it appropriately. Just make sure that you

Adding fixed position subview over a scrollview

2010-03-30 Thread Gideon King
Hi all I have a scrollview, and I want to add a fixed position subview on top of it so it always displays at the same place relative to the top left of the scrollview, no matter whether the user scrolls the document or resizes etc. I have tried the following methods, but none of them have left

Re: Creating WebView in code

2010-03-30 Thread Jenny M
Hi Nick... On Sun, Mar 28, 2010 at 12:49 PM, Nick Zitzmann wrote: >> Is it possible I could create it in a xib file and keep it invisible, >> and handle closing programmatically so it's not a waste of memory? > > Yes. > Okay... how? I can uncheck "visible at launch," then how do I control the vi

Re: NSPredicateEditorRowTemplate and dynamic templateViews

2010-03-30 Thread Dave DeLong
I'm still struggling with this. Does anyone know how I can either: 1. Use custom comparators in an NSPredicateEditorRowTemplate or 2. Have two templates with the same left expression and operator, but different right expression types? Thanks, Dave On Mar 12, 2010, at 7:29 PM, Dave DeLong wr

Re: Best way to selectively show objects in a tree controller/outlineview

2010-03-30 Thread Kyle Sluder
On Tue, Mar 30, 2010 at 8:35 PM, Tony Romano wrote: > One obvious method(albeit brute force) is to rebuild the tree controller list > and redisplay it.  For what I want to do, this is way too expensive of an > operation.  In addition, the user can toggle back and forth the preference.   > There

Best way to selectively show objects in a tree controller/outlineview

2010-03-30 Thread Tony Romano
Based on a user preference, I want to be able to selectively show/not show items contained in the tree controller by an outline view. For example, suppose the tree controller has these items: A,B,C,D,D,E,F,G,H. The outline view will normally display all of the items. Now suppose the user sets

Re: Terminating subtasks reliably

2010-03-30 Thread John Harte
On Mar 30, 2010, at 4:01 PM, McLaughlin, Michael P. wrote: > I have a Cocoa app (Leopard) which launches several Foundation Tool subtasks > (since threads are not sufficient in this case). Currently, I terminate > these subtasks via the app-delegate method > > -(NSApplicationTerminateReply)appl

[iPhone] Move delete control in custom UITableViewCell

2010-03-30 Thread PCWiz
I have a UITableViewCell with a custom backgroundView (for custom cell drawing). To make it look proper with my cell, I need to move both the delete disclosure indicator (the red circle with a white line through it) and the Delete button itself over a few pixels. How do I change the position? T

Re: Building Intel only

2010-03-30 Thread Marcel Borsten
Thanks for the reply, I see now what I did wrong, I changed the architectures for the project, not the target. Regards, Marcel On 30 mrt 2010, at 22:57, David Duncan wrote: > On Mar 30, 2010, at 1:54 PM, Marcel Borsten wrote: > >> I'm using a static lib that is compiled for intel 32/64 bit o

Re: Building Intel only

2010-03-30 Thread David Duncan
On Mar 30, 2010, at 1:54 PM, Marcel Borsten wrote: > I'm using a static lib that is compiled for intel 32/64 bit only. I've > removed all my ppc options from Valid Architectures, but when I'm trying to > build a Release version I still get the following error: 'missing required > architecture

Building Intel only

2010-03-30 Thread Marcel Borsten
Hi All, I'm using a static lib that is compiled for intel 32/64 bit only. I've removed all my ppc options from Valid Architectures, but when I'm trying to build a Release version I still get the following error: 'missing required architecture ppc in file' for the static libs I'm using. How can

Re: Saving jpeg data

2010-03-30 Thread Nick Zitzmann
On Mar 30, 2010, at 2:37 PM, John Nairn wrote: > My application now saves jpeg thumbnail data from an NSImage of a bit map by > using > > [NSBitmapImageRep representationUsingType:properties] > > selector and it works fine in Snow Leopard development. When I run the app in > Tiger, howev

Events not being dispatched when having native Cocoa component in modal JDialog

2010-03-30 Thread Martin Nedbal
Hi, I have a simple JNI-based code for embedding WebKit into Swing GUI (I can post sources if needed). It works fine while in regular Swing JFrame but it fails to work when added to modal JDialog - events are blocked apparently. WebKit view shows properly, but if I request a page to be loaded into

Re: Saving jpeg data

2010-03-30 Thread Ken Ferry
Hi John, This would mean that you're assuming that a particular NSImageRep retrieved from an NSImage is an NSBitmapImageRep, and it isn't. -Ken On Tue, Mar 30, 2010 at 1:37 PM, John Nairn wrote: > My application now saves jpeg thumbnail data from an NSImage of a bit map > by using > > [NS

Saving jpeg data

2010-03-30 Thread John Nairn
My application now saves jpeg thumbnail data from an NSImage of a bit map by using [NSBitmapImageRep representationUsingType:properties] selector and it works fine in Snow Leopard development. When I run the app in Tiger, however, the code fails with following selector problem in the

Re: Terminating subtasks reliably

2010-03-30 Thread A.M.
On Mar 30, 2010, at 4:01 PM, McLaughlin, Michael P. wrote: > I have a Cocoa app (Leopard) which launches several Foundation Tool subtasks > (since threads are not sufficient in this case). Currently, I terminate > these subtasks via the app-delegate method > > -(NSApplicationTerminateReply)appl

Re: "-forwardInvocation:" like NSInvocation creation

2010-03-30 Thread Gwynne Raskind
On Mar 30, 2010, at 2:54 PM, Michael Ash wrote: >> I see, I really wasn't enough clear. Lets say, I have a method >> >> - someMethodWithArgument:(struct *)anArgument >> andSomeOtherArgument:(id)anotherArgument >> { >>// Here I want to create an NSInvocation, capturing the call of this >>

Re: Terminating subtasks reliably

2010-03-30 Thread Greg Parker
On Mar 30, 2010, at 1:01 PM, McLaughlin, Michael P. wrote: > I have a Cocoa app (Leopard) which launches several Foundation Tool subtasks > (since threads are not sufficient in this case). Currently, I terminate > these subtasks via the app-delegate method > > -(NSApplicationTerminateReply)applic

Re: Terminating subtasks reliably

2010-03-30 Thread Jeff Johnson
Hi Mike. How about having the main app periodically post a notification via NSDistributedNotificationCenter? The subtasks can observe the notification and terminate themselves if they don't receive one for some period of time. -Jeff On Mar 30, 2010, at 3:01 PM, McLaughlin, Michael P. wrote:

Terminating subtasks reliably

2010-03-30 Thread McLaughlin, Michael P.
I have a Cocoa app (Leopard) which launches several Foundation Tool subtasks (since threads are not sufficient in this case). Currently, I terminate these subtasks via the app-delegate method -(NSApplicationTerminateReply)applicationShouldTerminate:(NSApplication *)sender This works provided one

Re: NSIsNilTransformerName exception

2010-03-30 Thread James Walker
On 3/30/2010 12:36 PM, Lee Ann Rucker wrote: NSIsNilTransformerName is the name of the variable defining the transformer name. NSLog(@"NSIsNilTransformerName = %@", NSIsNilTransformerName); NSIsNilTransformerName = NSIsNil Ah, that makes sense, and it works, thanks! I'm surprised NSIsNil

Re: NSIsNilTransformerName exception

2010-03-30 Thread Lee Ann Rucker
NSIsNilTransformerName is the name of the variable defining the transformer name. NSLog(@"NSIsNilTransformerName = %@", NSIsNilTransformerName); NSIsNilTransformerName = NSIsNil I'm surprised NSIsNil didn't show up in the binding's popup list. On Mar 30, 2010, at 12:11 PM, James Walker wrote

Predicate format to match array of partial strings against other array

2010-03-30 Thread fabian
ANY {Name,Age,Gender} LIKE[cd] "Mar*" returns Mary, Martin, etc. ANY {Name,Age,Gender} IN[cd] {"Mary","Martin"} also works fine, but doesn't take wildcards, as all array operators uses direct object comparisons. How can I match an array of partial strings, e.g. {"Mar*", "Li*"}, against the first

[MEET] CocoaHeads April Meetings

2010-03-30 Thread Stephen Zyszkiewicz
Greetings, CocoaHeads is an international Mac programmer's group. Meetings are free and open to the public. We specialize in Cocoa, but everything Mac programming related is welcome. Austria Graz - Monday, April 19, 2010 19:00 Wien - Thursday, April 8, 2010 19:00 Canada Toronto, Ontario - Tues

NSIsNilTransformerName exception

2010-03-30 Thread James Walker
I'm trying to make a button be disabled if an array controller is being filtered. So in IB I bound the enabled state of the button to the array controller, with controller key "filterPredicate" and value transformer "NSIsNilTransformerName". At run time, an exception is thrown, and the log ha

Re: Random "Controller cannot be nil" crash

2010-03-30 Thread Jean-Nicolas Jolivet
Answering my own question here, if anyone has a similar problem, make sure you don't mess with any outlets BEFORE your awakeFromNib method :P Yeah it's basic stuff but somehow I didn't noticed that a method I was calling in my controller's init was resetting a slider to its default position... m

Re: "-forwardInvocation:" like NSInvocation creation

2010-03-30 Thread Michael Ash
On Mon, Mar 29, 2010 at 2:15 PM, Philip Mötteli wrote: > Hi, > > > Am 29.03.2010 um 18:52 schrieb A.M.: >> >> On Mar 29, 2010, at 11:07 AM, Philip Mötteli wrote: >> >>> I need to temporary save the invocation of a method. For that, I just need >>> to put the stack frame into an NSInvocation. Unfo

Random "Controller cannot be nil" crash

2010-03-30 Thread Jean-Nicolas Jolivet
I'm having a very frustrating issue that I can't seem to be able to pinpoint... When I run my app, I randomly get a crash on startup with the following message(s) in the console: == 2010-03-30 13:57:52.59

Re: Creating a Virtual (Webcam) Device

2010-03-30 Thread Jens Alfke
On Mar 30, 2010, at 6:27 AM, Sven Andersson wrote: > Anyone that can point me in the right direction, where to look and > what I should be looking for? I don’t know, but cocoa-dev isn’t the right list. Check the full list of mailing lists at http://lists.apple.com to see if there’s one for vide

Re: System preference File Sharing

2010-03-30 Thread Jens Alfke
On Mar 30, 2010, at 2:39 AM, stevejo...@ovi.com wrote: > I have an application where in I need to list the local shared folders only > if "File Sharing" is enabled and smb check box ischecked.Is there any way I > can know if "File sharing" is checked and "Share files and folders using SMB" >

Re: Mount SMB folders

2010-03-30 Thread Jens Alfke
On Mar 30, 2010, at 2:23 AM, stevejo...@ovi.com wrote: > OS puts up proper error message, any idea how this is done. Is there any > Cocoa APIs to mount a remote volume. or at least check if the remote volume > is reachable. You’re talking about filesystem mounting APIs, not Cocoa. The darwin-u

Re: How to add a DOCTYPE declaration to an NSXMLDocument?

2010-03-30 Thread Matt Neuburg
On Sat, 27 Mar 2010 16:59:35 -0700, Bruce Sharpe said: >I want to add a DOCTYPE declaration to my NSXMLDocument, but can't seem to >find the right incantation. The thing that comes closest to working is: > >NSString *myXMLString = [NSString stringWithFormat:@"encoding=\"UTF-8\"?>"]; >NSXMLDocumen

Creating a Virtual (Webcam) Device

2010-03-30 Thread Sven Andersson
Hi! I am looking for a solution to create a "virtual" webcam device under OS X (that acts just as a normal hardware webcam, but the application has full control over what to output). I'm fairly experienced with C++, but not so much with Objective-C and OSX/Cocoa programming. I have looked into "I

System preference File Sharing

2010-03-30 Thread stevejohny
Hi All, I have an application where in I need to list the local shared folders only if "File Sharing" is enabled and smb check box is checked.Is there any way I can know if "File sharing" is checked and "Share files and folders using SMB" is also checked for the shared folder. Currently I ha

Mount SMB folders

2010-03-30 Thread stevejohny
Hi All I am newbie to cocoa. I need to mount a volume from my custom browser. I have used FSMountServerVolumeSync to mount the volume and it works fine for success cases. But I need to show the error message if it fails. Looks like FSMountServerVolumeSync won't return proper error codes. ex: if

CALayer mask issue

2010-03-30 Thread Michael Vannorsdel
I have a CALayer that is larger than the window and I move that layer around to view various sections of it. The layer is also masked by another CALayer. The problem I have is if I move half of the layer out of view the mask stops working right. As if the mask is transparent so none of the vi

Re: Application crashes with no calls tracing back to my code

2010-03-30 Thread Arun
I fixed the crash. I had to use GuardMalloc. Thanks all for the suggestions. -Arun On Sat, Mar 27, 2010 at 5:40 PM, Ken Thomases wrote: > On Mar 27, 2010, at 7:00 AM, Ken Thomases wrote: > > > On Mar 27, 2010, at 6:29 AM, Arun wrote: > > > >> My application is crashing sometimes with the follo

Re: using xcode ,how to compile .c file as .m file?

2010-03-30 Thread Graham Cox
On 30/03/2010, at 8:32 PM, simon Scylla wrote: > i need to port some code to iphone and now i find that i can not call system > interface of objc. i can rename my files from 888.c to ***.m and it works. > but i do not wanna rename my files. > what should i do?i think there must be some choice in

Re: using xcode ,how to compile .c file as .m file?

2010-03-30 Thread Kiel Gillard
On 30/03/2010, at 8:32 PM, simon Scylla wrote: > i need to port some code to iphone and now i find that i can not call system > interface of objc. i can rename my files from 888.c to ***.m and it works. > but i do not wanna rename my files. > what should i do?i think there must be some choice in

using xcode ,how to compile .c file as .m file?

2010-03-30 Thread simon Scylla
i need to port some code to iphone and now i find that i can not call system interface of objc. i can rename my files from 888.c to ***.m and it works. but i do not wanna rename my files. what should i do?i think there must be some choice in xcode.but i don't konw..[?] <<33C.gif>>_

Re: Removing Object form ArrayController without managedObjectContext

2010-03-30 Thread Gustavo Pizano
IT WORKS AHHH SUCH A RELIEF! Thans a lot, guys, you made me see the problem I was having, so I set up the Set Content binding of the ItemXInvoice Array controller to be _newInvoice.toItemsXInvoice properly set the relation in the add and addPredifiened methods, and it did work!. OMG