NSFullUserName() always returns the user name at app launch?

2010-02-04 Thread Laurent Daudelin
I'm using NSFullUserName() to get the user name of the currently logged user and from my application, the user can open the Accounts preference pane to edit it. Problem is, after the user changes his user name, another call to NSFullUserName() still returns the original user name. Is this a bug

RE: Outlineview ParentObject

2010-02-04 Thread Poonam Virupaxi Shigihalli
Dear All, NSOutlineView displays as follows: Group1 ---Cocoa ---Mac Group2 Cocoa Macbook Cocoa is a duplicate entry present in two groups also. I have rightmousedown action for outlineview. when the user right clicks on any of the group items. i has the following operations: Ad

Re: Outlineview ParentObject

2010-02-04 Thread Graham Cox
On 04/02/2010, at 9:47 PM, Poonam Virupaxi Shigihalli wrote: > parentObject = [outlineview parentObject:item]; //Here it always returns > Groups2 even though i want to remove from Group1 one, since cocoa is a > duplicate entry(Same memory location). > > [parentObject removeObject:item]; > >

Re: objc_msgSend() tour

2010-02-04 Thread Alastair Houghton
On 4 Feb 2010, at 06:58, Bill Bumgarner wrote: > Folks- > > I finally banged out part IV -- the 'slow path' & odds/ends -- of my > tour of objc_msgSend() on x86_64. If you want to know how method invocations > works in instruction by instruction detail on x86_64, you might find it > int

Yong Li has invited you to Dropbox

2010-02-04 Thread Dropbox
We're excited to let you know that Yong Li has invited you to Dropbox! Yong Li has been using Dropbox to sync and share files online and across computers, and thought you might want it too. Visit http://www.dropbox.com/link/20.fRSE8WcJdi/NjkwNTM4Mzc3 to get started. - The Dropbox Team

Scope of NSOperations

2010-02-04 Thread McLaughlin, Michael P.
My (Leopard) app needs to create a sequence of NSOperations, often thousands of them, a few at a time. The relevant code is in a setup function that ends with for (k = 0;k < numOps;k++) { solverOp *thisOp = [solverOp new]; [thisOp initWithData:Data]; [opQueue addOperation:thisOp]; } at

Re: Scope of NSOperations

2010-02-04 Thread James Bucanek
McLaughlin, Michael P. wrote (Thursday, February 4, 2010 6:47 AM -0500): solverOp *thisOp = [solverOp new]; [thisOp initWithData:Data]; Wrong. You're initing your object twice! This should be solverOp *thisOp = [[solverOp alloc] initWithData:Data]; (+new sends an -i

Re: NSFullUserName() always returns the user name at app launch?

2010-02-04 Thread Joar Wingfors
On 4 feb 2010, at 00.27, Laurent Daudelin wrote: > I'm using NSFullUserName() to get the user name of the currently logged user > and from my application, the user can open the Accounts preference pane to > edit it. Problem is, after the user changes his user name, another call to > NSFullUser

Re: Outlineview ParentObject

2010-02-04 Thread Jens Alfke
On Feb 4, 2010, at 2:47 AM, Poonam Virupaxi Shigihalli wrote: parentObject = [outlineview parentObject:item]; //Here it always returns Groups2 even though i want to remove from Group1 one, since cocoa is a duplicate entry(Same memory location). You can't have the same item in two places in

Re: NSFullUserName() always returns the user name at app launch?

2010-02-04 Thread David Blanton
No. They are logged n a user A, changing the name to user B is meaningless until they log out / login in. My guess anyway. On Feb 4, 2010, at 9:26 AM, Joar Wingfors wrote: On 4 feb 2010, at 00.27, Laurent Daudelin wrote: I'm using NSFullUserName() to get the user name of the currently

Re: Scope of NSOperations

2010-02-04 Thread Jens Alfke
On Feb 4, 2010, at 5:47 AM, McLaughlin, Michael P. wrote: solverOp *thisOp = [solverOp new]; FYI, it's very strongly encouraged to capitalize class names. (See Apple's Objective-C style guide.) Otherwise any other Cocoa programmer who ever looks at your code is going to get confused by

Determining the name of a method's caller

2010-02-04 Thread Stuart Malin
I have tried to search for a technique to do this, but perhaps my searching skills are deficient. What I want to do is be able to write an NSLog() call in a method that emits information about the method that invoked the present method. This would serve me in debugging without needing to run g

Re: NSFullUserName() always returns the user name at app launch?

2010-02-04 Thread Laurent Daudelin
David, I really don't understand what you're saying. Thanks, Joar, makes me feel better a bit. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://nemesys.dyndns.org Logiciels Nemesys Software lau

Re: NSFullUserName() always returns the user name at app launch?

2010-02-04 Thread Dave DeLong
It seems like he's saying that the name change doesn't take full effect until the user logs out and logs back in. For example, my FullUserName() is "Dave DeLong". If I change it to "Zaphod Beeblebrox", that won't take effect until I log out and log back in, because my current user session is f

Re: NSFullUserName() always returns the user name at app launch?

2010-02-04 Thread Laurent Daudelin
Hmmm... That's not what I did observe. After I change my user name, if I quit my app and relaunch, the next call to NSFullUserName() returns the new user name. -Laurent. -- Laurent Daudelin AIM/iChat/Skype:LaurentDaudelin http://nemesys.dyndns.org Logiciels N

Re: Determining the name of a method's caller

2010-02-04 Thread Stephen J. Butler
On Thu, Feb 4, 2010 at 11:52 AM, Stuart Malin wrote: > I'm wondering if this will be hard to do because of the need to access > registers and the stack. If so, perhaps there is some C (or even assembler?) > code that I can use as guidance on effecting this. Or have I in my mind > overcomplicate

windowWillResize: where does the 64 pixel limit come from?

2010-02-04 Thread Eric Gorr
When I am resizing my window, I have a delegate method windowWillResize:toSize: which is being called. What I am finding odd is that the width of the size being passed in will never go below 64 pixels even if the width for contentMinSize and minSize is less then 64 pixels. I can easily force the

Re: windowWillResize: where does the 64 pixel limit come from?

2010-02-04 Thread Hank Heijink (Mailinglists)
On Feb 4, 2010, at 2:51 PM, Eric Gorr wrote: > When I am resizing my window, I have a delegate method > windowWillResize:toSize: which is being called. What I am finding odd is that > the width of the size being passed in will never go below 64 pixels even if > the width for contentMinSize and

[Moderator] Today's DropBox spam

2010-02-04 Thread Scott Anguish
Please, do not respond to that user’s email. If you feel you need to respond, I’d suggest contacting DropBox and complaining, LOUDLY, about their users spamming lists in order to gain more users (and whatever affiliate program they may have in place) This user will NOT be posting here again, no

Debugging (apparently) random retain loop bug (NSArrayController)

2010-02-04 Thread Keith Blount
Hello, For several months now I've been trying to track down a particular bug that can cause a crash in my app, and finally I figured I would cry for help in case there is anything obvious that I can try that I'm not already trying. Here's the situation: Occasionally, if you close a document (

[Moderator] DO NOT RESPOND: Yong Li has invited you to Dropbox

2010-02-04 Thread Scott Anguish
Sigh.. Twice in one day. Note that moderation is on for new users. So this is someone who has posted before, or has been on the list for at least 2 years. I’ve notified both Dropbox and LinkedIn. I suggest those who are upset about this do the same, include the name of the user, along with the

NSScrollView & its width

2010-02-04 Thread Knut Lorenzen
Dear List, an NSScrollView ("Show Horizontal Scroller" in IB checked) contains an NSTextView that displays some RTFD-data, including some pictures. However, the Horizontal Scroller is not shown. BTW, TextEdit seems to behave exactly the same. Logging [[myScrollView documentView] frame].size.w

Re: Debugging (apparently) random retain loop bug (NSArrayController)

2010-02-04 Thread Graham Cox
On 05/02/2010, at 7:21 AM, Keith Blount wrote: > Occasionally, if you close a document (NSDocument subclass) in my app and > then open another document (or reopen the same document), the app crashes. > I've debugged this to the extent that I now know the cause, at least. What is > happening is

Re: NSScrollView & its width

2010-02-04 Thread Mark Sanvitale
I can't say that I have dealt with the exact situation you write of, however, my best idea/hint is to point you to the NSTextContainer class. The NSTextView is composed of a lot of complicated machinery and I believe you might have to dive below the topmost layer (i.e. NSTextView itself) in ord

Re: Debugging (apparently) random retain loop bug (NSArrayController)

2010-02-04 Thread Keith Blount
Hi Graham, Many thanks for the reply, much appreciated. The strange thing with this one is that I've been through the code in all the obvious places and I can't find that it's been retained anywhere. It's an NSArrayController subclass that is only really used in one place in the application, an

Re: Debugging (apparently) random retain loop bug (NSArrayController)

2010-02-04 Thread Graham Cox
On 05/02/2010, at 11:41 AM, Keith Blount wrote: > Many thanks for the reply, much appreciated. The strange thing with this one > is that I've been through the code in all the obvious places and I can't find > that it's been retained anywhere. It's an NSArrayController subclass that is > only r

Implementing NSOutlineView datasource methods when using an asynchronous source?

2010-02-04 Thread Laurent Daudelin
Just wondering, what kind of design someone acting as a datarsource for an NSOutlineView choose when the source of the data to be displayed is provided by some asynchronous means? What do you return in methods like 'outlineView:numberOfChildrenOfItem:' when the data hasn't been fetched yet?

Dumb question about Core Data

2010-02-04 Thread William Squires
Let's say I have an entity, "Player" that has some attributes (Name, Level, XP, FightStr, DefenseStr, etc...) for a role-playing game. How do I pre-initialize an entity with known values, when their properties are @dynamic? I need for a "blank" player to start out on level 1 with 0 XP, 0 Fi

Re: Implementing NSOutlineView datasource methods when using an asynchronous source?

2010-02-04 Thread Jens Alfke
On Feb 4, 2010, at 5:12 PM, Laurent Daudelin wrote: > Just wondering, what kind of design someone acting as a datarsource for an > NSOutlineView choose when the source of the data to be displayed is provided > by some asynchronous means? What do you return in methods like > 'outlineView:number

Re: Dumb question about Core Data

2010-02-04 Thread Dave Carrigan
On Feb 4, 2010, at 5:13 PM, William Squires wrote: > Let's say I have an entity, "Player" that has some attributes (Name, Level, > XP, FightStr, DefenseStr, etc...) for a role-playing game. How do I > pre-initialize an entity with known values, when their properties are > @dynamic? I need for

close sheet with app hidden

2010-02-04 Thread Mitchell Livingston
I have a sheet that shows a progress bar for a file being downloaded. It closes automatically, with no problems. The issue is, if I hide the app the sheet does not disappear - instead, it stays open. This only happens when the app is hidden. The code to close it is: [NSApp endSheet: fStatusWin

Re: Dumb question about Core Data

2010-02-04 Thread Hank Heijink (Mailinglists)
If you create your data model in Xcode with its data modeling facility, you can give it a default value right there, when you select the attribute (no need to recreate the Player.m and Player.h files). If you need to set different default values each time, just create the Player instance and set

Re: Dumb question about Core Data

2010-02-04 Thread John Bishop
If I understand your question, maybe you just need to do some initialization when the object is created. Look at NSManagedObject:awakeFromInsert. It's where you can do initialization (conditional if you wish, as long as you don't do something to disrupt the "insertion" process). It's perfectl

Re: Rosetta Quandry

2010-02-04 Thread Turd Burp
I am hearing through the grapevine that comparisons between the Mac LC and 27" iMacs are not unwarranted. On Wed, Feb 3, 2010 at 12:03 AM, David Blanton wrote: >I am highly suspect of the 27" iMac since Apple > has done two firmware update, held shipment for three weeks at on time, and > I only g

[ANN] CocoaHeads Paris group meeting

2010-02-04 Thread Guillaume Cerquant
Hi, This message is about the CocoaHeads Paris group: Our 10th meeting is planned for next week: thursday, 11th of february 2010. Session starts at 7pm inside the school IESA: 5, rue Saint-Augustin - 75002 Paris - France. The sessions will be about localization and bindings. Access is open to e

NSOutlineView parentobject

2010-02-04 Thread Banupriya K
Hi all, I have an outlineview to display n number of groups(Example: Grp1, Grp2 etc), each can have n number of items, same item can be present in many groups. Suppose item1 is present in Grp1 and Grp2, if i have to delete item1 in Grp1, i have to access the parent object i.e Grp1. But when i

Mixing TableView Bindings

2010-02-04 Thread Joe
Hello, I have a NSTableView with a column of checkboxes. I have the checkbox value bound to an NSInteger instance in a class which is in an array bound as the content to an array controller. When the program starts the column is filled with 16 rows and the checkbox is set to off. Other columns

SourceView example

2010-02-04 Thread Lightning Duck
I'm fairly new to Cocoa development (although I've been writing software for more than 15 years). I'm working on an app for myself that needs a tree view so I'm looking through the SourceView example as a guide. I'm curious why the use of BaseNode versus ChildNode and why the code uses one in

pdfkit - changing background color

2010-02-04 Thread Duke Normandin
is there a way to allow for the customization of the background color while viewing a pdf document using pdfkit? -- duke ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

How to show a sheet right when the app starts?

2010-02-04 Thread Mike Polan
Hi, I'm a newbie to Cocoa development. I've been pouring over docs and I can't seem to find a solution to this (I'm assuming) very basic problem. I have a non-document based Cocoa app built in Interface Builder (I selected Cocoa Application from the new project menu in Xcode), and I would basically

Re: [iPhone] Sample code for live camera stream?

2010-02-04 Thread Conal Elliott
Any ideas on how Live Effects (http://www.omaxmedia.com/) manages to spatially transform the live camera input? It doesn't just overlay like the augmented reality apps. Thanks, - Conal On Tue, Dec 15, 2009 at 1:23 PM, Mark Woollard wrote: > They place UI elements over the video feed provided o

Re: NSOutlineView parentobject

2010-02-04 Thread Joar Wingfors
On 2 feb 2010, at 20.25, Banupriya K wrote: > I have an outlineview to display n number of groups(Example: Grp1, Grp2 etc), > each can have n number of items, same item can be present in many groups. It seems that you have missed this requirement from the outline view documentation:

Re: How to show a sheet right when the app starts?

2010-02-04 Thread Nick Zitzmann
On Feb 4, 2010, at 6:18 PM, Mike Polan wrote: > Hi, I'm a newbie to Cocoa development. I've been pouring over docs and I > can't seem to find a solution to this (I'm assuming) very basic problem. I > have a non-document based Cocoa app built in Interface Builder (I selected > Cocoa Application fr

Re: pdfkit - changing background color

2010-02-04 Thread Antonio Nunes
On 4 Feb 2010, at 18:50, Duke Normandin wrote: > is there a way to allow for the customization of the background color > while viewing a pdf document using pdfkit? Yes. Read the documentation on PDFView's "drawPage:" method. It makes it very clear what to do: subclass PDFView and override the me

Re: [iPhone] Sample code for live camera stream?

2010-02-04 Thread Kyle Sluder
You can get the video data now using UIGetScreenImage, though it's not the lightest on the battery. --Kyle Sluder On Thu, Feb 4, 2010 at 5:53 PM, Conal Elliott wrote: > Any ideas on how Live Effects (http://www.omaxmedia.com/) manages to > spatially transform the live camera input?  It doesn't j

Re: How to show a sheet right when the app starts?

2010-02-04 Thread Joar Wingfors
On 4 feb 2010, at 20.41, Nick Zitzmann wrote: >> I would basically >> like to display a sheet right after the main window is shown. I tried >> setting the main window delegate as the app controller, but I'm not exactly >> sure in what method call I should show the sheet. I tried to show the sheet

Re: [iPhone] Sample code for live camera stream?

2010-02-04 Thread Luke the Hiesterman
I haven't seen the app, but the simplest way to transform the camera input is via the cameraViewTransform property on UIImagePickerController available in 3.1 Luke On Feb 4, 2010, at 8:48 PM, Kyle Sluder wrote: > You can get the video data now using UIGetScreenImage, though it's not > the light

Re: Implementing NSOutlineView datasource methods when using an asynchronous source?

2010-02-04 Thread Laurent Daudelin
On Feb 4, 2010, at 17:29, Jens Alfke wrote: > > On Feb 4, 2010, at 5:12 PM, Laurent Daudelin wrote: > >> Just wondering, what kind of design someone acting as a datarsource for an >> NSOutlineView choose when the source of the data to be displayed is provided >> by some asynchronous means? Wha

Re: NSOutlineView parentobject

2010-02-04 Thread Jens Alfke
On Feb 2, 2010, at 8:25 PM, Banupriya K wrote: > I have an outlineview to display n number of groups(Example: Grp1, Grp2 etc), > each can have n number of items, same item can be present in many groups. You are posting THE IDENTICAL QUESTION again, which has already been answered several times

Re: NSOutlineView parentobject

2010-02-04 Thread Kyle Sluder
On Thu, Feb 4, 2010 at 9:16 PM, Jens Alfke wrote: > You are posting THE IDENTICAL QUESTION again, which has already been answered > several times. You're not even responding to our answers. Why should I (or > any of us) keep answering your same question over and over? I can't find another messa

coredata: what's the correct delete rule for ...

2010-02-04 Thread Roland King
I'm on my first foray into CoreData, read the docs, much of it makes more sense than I expected. I'm just setting up my first data model, it's a fairly standard parent object (call it Foo) and some kiddies (call them Bar). In the modeller I have set up Foo, with a couple of attributes, and Bar

Re: NSOutlineView parentobject

2010-02-04 Thread Jens Alfke
On Feb 4, 2010, at 9:24 PM, Kyle Sluder wrote: > I can't find another message in my archives from anyone named > "Banupriya". But I had the exact same reaction at first, and now I'm > starting to get suspicious. You're right, the original message (on the 2nd) was from Poonam Virupaxi Shigihalli

Re: [iPhone] Sample code for live camera stream?

2010-02-04 Thread Conal Elliott
Hi Kyle, Doesn't UIGetScreenImage get the screen image, rather than the camera's input stream? If the camera input were being displayed directly, without warping, I could see using UIGetScreenImage to get access. In the Live Effects app, I only see post-warped image input, never pre-warped. Sti

Re: [iPhone] Sample code for live camera stream?

2010-02-04 Thread Conal Elliott
Thanks Luke. I'm stumped about how affine transforms could account for these effects, particularly bubble, pinch & swirl. Also, iiuc, UIImagePickerController doesn't give access to the camera input stream -- just an image when the user actually takes a picture. There's a new takePicture method,

RE: NSOutlineView parentobject

2010-02-04 Thread Poonam Virupaxi Shigihalli
Hi all, My team member banupriya, working with me in the same project , she had posted the query since she got a reply from the list saying the query is on hold . so i posted it on her behalf. sorry for inconvenience. -Original Message- From: cocoa-dev-bounces+poonamshigihalli=tatael

Re: coredata: what's the correct delete rule for ...

2010-02-04 Thread Roland King
well I set up a little project with coredata and used the XML store .. man that thing is useful. One thing I was wrong about is that the delete rule on the inverse relationship had to be the same, it doesn't. Don't know why I thought that it had to be. So I found that the forward rule made lo

Extract ID Value Into UILabel.

2010-02-04 Thread Philip Juel Borges
Hi, I'm looking for a way to create an IBAction that extracts the id value of a tag name into a UILabel from any given HTML file that is loaded in my UIWebView. My ids are as listed below: This code, HTMLverseLabel.text = [webView stringByEvaluatingJavaScriptFromString:@"document.ti