Re: 3d cube using public api of CoreAnimation

2010-08-02 Thread cocoa learner
Any one please help? On Sun, Aug 1, 2010 at 1:53 AM, cocoa learner wrote: > Hi All, > > Is there any way to create 3d Cube effect in Core Animation using public > API. After searching in net I found some links but those are talking about > using Private Apis. Which I do not

Re: loading French strings being in English language

2010-07-31 Thread cocoa learner
nippet will help here. On Sun, Aug 1, 2010 at 2:42 AM, Kyle Sluder wrote: > On Jul 31, 2010, at 1:15 PM, cocoa learner > wrote: > > > True. That can be done. But I am looking for standard way of doing > instead > > of creating a Dictionary from the strings file. And at th

3d cube using public api of CoreAnimation

2010-07-31 Thread cocoa learner
Hi All, Is there any way to create 3d Cube effect in Core Animation using public API. After searching in net I found some links but those are talking about using Private Apis. Which I do not want. My target machine is Mac OS X 10.5 (Leopard). Regards Cocoa.learner

Re: loading French strings being in English language

2010-07-31 Thread cocoa learner
, Douglas Davidson wrote: > > On Jul 23, 2010, at 10:24 AM, Matt Neuburg wrote: > > > On Thu, 22 Jul 2010 11:19:32 +0200, Giacomo Tufano said: > >> Il giorno 22/lug/2010, alle ore 11.15, cocoa learner ha scritto: > >> > >>> I have localized my app in Engl

Re: loading French strings being in English language

2010-07-22 Thread cocoa learner
for a cocoa way of doing (better way of doing). Regards Cocoa.learner On Thu, Jul 22, 2010 at 2:49 PM, Giacomo Tufano wrote: > Il giorno 22/lug/2010, alle ore 11.15, cocoa learner ha scritto: > > > I have localized my app in English and French languages. > > But I want to load Fr

loading French strings being in English language

2010-07-22 Thread cocoa learner
Hi All, I have localized my app in English and French languages. But I want to load French strings being in English language based on radio button input (English and French). Is it possible? Is there any cocoa way of doing this? Regards Cocoa.learner _

Re: Accessing address bar data from Safari extension

2010-07-07 Thread cocoa learner
I am sorry. On Tue, Jul 6, 2010 at 7:08 PM, John Joyce wrote: > > On Jul 6, 2010, at 6:21 AM, cocoa learner wrote: > > > Hi All, > > > > Can we access address bar text box and bookmark data from Safari > extension? > > If yes, please share some tho

Accessing address bar data from Safari extension

2010-07-06 Thread cocoa learner
Hi All, Can we access address bar text box and bookmark data from Safari extension? If yes, please share some thoughts or APIs. -- Thanks Cocoa.learner http://rajeshmaclabs.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not pos

Re: View does not get refreshed after Window deminimized...

2010-03-11 Thread cocoa learner
Hummm... looks like my approach has flaw. Thanks a ton, Cocoa.learner On Thu, Mar 11, 2010 at 11:52 PM, Quincey Morris < quinceymor...@earthlink.net> wrote: > On Mar 11, 2010, at 06:50, cocoa learner wrote: > > > And on this custom view I have a progress bar, that pro

View does not get refreshed after Window deminimized...

2010-03-11 Thread cocoa learner
Hi All, I have subclassed a custom view in following way - @implementation AppContentView - (id)initWithFrame: (NSRect)frame { self = [super initWithFrame:frame]; if (self) { // Initialization code here. } return self; } - (void)drawRect:(NSRect)rect { [[NSCo

Re: Executing shell script with root privilege

2010-02-19 Thread cocoa learner
ntinue to read the docs on it, you'll get your sample > code working; they're pretty thorough docs I believe. > > -Steven > > On Mon, Feb 15, 2010 at 1:48 AM, cocoa learner wrote: > >> Ok let me put my problem in simple words - >> >> I have a cocoa app

Re: Question about zipping files

2010-02-14 Thread cocoa learner
> > 1. Use NSTask to create a zip file, passing in as arguments all the > filenames to zip. My question about this would be whether I would run into > any restrictions with the length of the command which well be beyond the old > 1024 character limits (not sure if any command line argument limits a

Re: Executing shell script with root privilege

2010-02-14 Thread cocoa learner
Ok let me put my problem in simple words - I have a cocoa app and I want to launch a shell script which has to do some task with root privilege. How can I do it??? Regards, Cocoa.learner On Mon, Feb 15, 2010 at 1:49 AM, Nick Zitzmann wrote: > > On Feb 13, 2010, at 11:05 PM, cocoa l

Executing shell script with root privilege

2010-02-13 Thread cocoa learner
Hi all, I want to execute a shell script with "root" privilege and here is the code for that I am using - - (BOOL) launchScript { OSStatus authStatus; AuthorizationRef authRef = nil; authStatus = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &authRef)

problem in display of leopard app on snowleopard

2010-01-17 Thread cocoa learner
Hi All, I have encountered a veered problem (or I am not able to understand). I have developed an App (using NSImageView, NSView, NSProgressIndicator etc.) using Base SDK Mac OS X 10.5. And it works fine on leopard. But when I run the App on Snow Leopard the App (User interface) looks more dull (o

Unable to get animation of NSProgressIndicator on my custom view (subclassed)

2010-01-15 Thread cocoa learner
Hi all, My NSProgressIndicator is not animating (determinant/indeterminant in both the cases), I have implemented the arrangement in following way - 1>. main window, 2>. NSImageView over main window's content view, 3>. Then my custom view(subclassed NSView), over NSImageView, 4>. Then over my cus

Re: How to display AboutBox window in Agent Application

2009-09-14 Thread cocoa learner
Thanks TONs n TONs Nathan.I was struggling for this solution. Regards Cocoa.learner On Mon, Sep 14, 2009 at 12:36 AM, Nathan Kinsinger < nkinsin...@brotherbard.com> wrote: > On Sep 12, 2009, at 10:02 PM, cocoa learner wrote: > > Hi All, >> I have created an Agent

How to display AboutBox window in Agent Application

2009-09-12 Thread cocoa learner
Hi All, I have created an Agent Application using key - Application is agent (UIElement) = true in Info.plist file. Problem # 1). my AboutBox window is not getting displayed. Here is my code snippet - AppController.h @interface AppController : NSObject { // some more data member to run app a

Re: Discloser triangle

2009-06-13 Thread cocoa learner
, Kyle Sluder wrote: > On Fri, Jun 12, 2009 at 2:16 AM, cocoa learner > wrote: > > I do not understand how to achieve this effect. > > I'd wire up the disclosure triangle's target/action to a method on my > window controller. Something like -[MyWindowController > show

Discloser triangle

2009-06-12 Thread cocoa learner
Hi All, I want to use some advance options as Discloser triangle. If user clicks the Discloser triangle then he/she should see the advance options (some controls like buttons, tabview etc) with resized window (i mean when the Discloser Triangle is not clicked then window should be small and when cl

Re: How to lock an object?

2009-06-04 Thread cocoa learner
It's not just password. It can be any thing which is secure. Like file data, personal information, any thing user mark it as secure. Regards Cocoa.learner On Fri, Jun 5, 2009 at 10:08 AM, Rob Keniger wrote: > > On 05/06/2009, at 2:03 PM, cocoa learner wrote: > > How can

Re: How to lock an object?

2009-06-04 Thread cocoa learner
AM, cocoa learner wrote: > >> I want one of my object, not to be paged out unless and until I am done >> with >> my object. The way mlock() behave. >> >> Is there any way to do this in cocoa? >> > > First answer: No. You can't lock all of the c

Re: How to lock an object?

2009-06-04 Thread cocoa learner
Duncan wrote: > On Jun 4, 2009, at 7:25 AM, cocoa learner wrote: > > Hi All, >> I want one of my object, not to be paged out unless and until I am done >> with >> my object. The way mlock() behave. >> >> Is there any way to do this in cocoa? >> > >

How to lock an object?

2009-06-04 Thread cocoa learner
Hi All, I want one of my object, not to be paged out unless and until I am done with my object. The way mlock() behave. Is there any way to do this in cocoa? Regards Cocoa.learner. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

Re: How to draw background image in my app window

2009-06-01 Thread cocoa learner
On Sun, May 31, 2009 at 9:37 PM, Andy Lee wrote: > On May 31, 2009, at 8:51 AM, Uli Kusterer wrote: > > Another approach would be to try changing the class of your content view in > Interface builder. Simply click the background of the window, that should > show the content view in the inspector.

Re: How to draw background image in my app window

2009-05-30 Thread cocoa learner
ds] fromRect:NSMakeRect(0.0, 0.0, > isize.width, isize.height) operation: NSCompositeCopy fraction:1.0]; > } > > *this was written in mail, may gave errors. > > On May 30, 2009, at 11:45 AM, cocoa learner wrote: > > Yah Andy and Michael you all were right. But still I have some probl

Re: How to draw background image in my app window

2009-05-30 Thread cocoa learner
create a new NSImageView and then the NSImage and set > the image as the imageview's image. > > > > On May 30, 2009, at 8:27 AM, cocoa learner wrote: > > Thanx Nick for your reply.But in my window I am not getting the image I >> want >> to display. Here is

Re: How to draw background image in my app window

2009-05-30 Thread cocoa learner
ong in this code? Regards Cocoa.learner. On Tue, May 26, 2009 at 11:12 PM, Nick Zitzmann wrote: > > On May 26, 2009, at 11:04 AM, cocoa learner wrote: > > How to draw background image in my app window? >> > > You could change the window's content view using -setC

How to draw background image in my app window

2009-05-26 Thread cocoa learner
Hi all, How to draw background image in my app window? I have found a way but not sure whether that's correct. So here is my way of doing - 1>. Get a window from IB Library. 2>. Drag NSImage item from IB Library on window. 3>. Make it the size of window. 4>. Now drag and drop the NSTextField to t

Re: System Preference like App

2009-05-26 Thread cocoa learner
009, at 16:22, cocoa learner wrote: > >> I tried but getting the following error - >> "Stub implementation of -setTarget by NSCell does nothing." >> > > NSImageCell is a subclass of NSCell. Seems it does not support > setTarget/setAction. If you want to get infor

Re: System Preference like App

2009-05-24 Thread cocoa learner
Hi Uli, I got how to do it by doing some hit and trial method. I need not to drag and drop the NSImageCell. I can directly set the "Image" attribute of each NSMatrix cell. Thank you all. Cocoa.learner On Sun, May 24, 2009 at 8:22 PM, cocoa learner wrote: > Hi Uli,I tried bu

Re: System Preference like App

2009-05-24 Thread cocoa learner
thing wrong in my process to achieve System Preference like application. Please help me. Regards, Cocoa.learner On Tue, May 19, 2009 at 12:33 AM, cocoa learner wrote: > Thanx for your correction. Let me try this. > Regards > Cocoa.learner > > > On Sun, May 17, 2009 at 10:34 PM,

System Preference like App

2009-05-16 Thread cocoa learner
Hi All, Any body has any idea how to create System Preference like app using cocoa? Any kind of hint or tutorial or example will be helpful to understand. Thanking you all cocoa.learner ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Converting NSString to C++ std::string

2009-05-08 Thread cocoa learner
Probably you can read this document in following link... http://developer.apple.com/documentation/Cocoa/Conceptual/Strings/Articles/CreatingStrings.html This talks about how to C string. And after that you can convert that into a C++ string object. On Fri, May 8, 2009 at 9:39 PM, Alexander Spohr

Problem in displaying image in NSTableView

2009-04-20 Thread cocoa learner
Hello All, In my NSTableView I am using NSImageCell as one column to display images. And I have implemented my datastore method like this - - (id) tableView: (NSTableView *)aTableView objectValueForTableColumn: (NSTableColumn *)aTableColumn row: (NSInteger)rowIndex { /* code to display other

Unable to save file in Document-Based Application

2009-04-05 Thread cocoa learner
Hi All, I am new to cocoa and GUI programming. I wrote a Document-Based Application. Whose code snippet as follows to write data into a file (this code is taken from Aaron.Hillegass-Cocoa.Programming.for.Mac.OS.X book's Chapter 10 ) - - (NSData *)dataOfType:(NSString *)typeName error:(NSError **)