It was a general thought. I am programming in Objective-C only for
about month and was wondering if there is any faster way to replace
image/string/etc. contents instead of reallocating object itself.
Samvel.
On Apr 9, 2008, at 9:58 PM, Bill Bumgarner wrote:
On Apr 9, 2008, at 7:43 PM
data would be replaced
instead of recreating the whole object. Is it possible to do that way:
just to replace image contents with newImageData without reallocating
new object?
Thanks, Samvel.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com
It worked like a charm. It is so easy since I was trying to draw over
existing Icon manually that is so complicated in comparison with given
way of doing it.
Thanks, Samvel.
On Apr 8, 2008, at 7:41 AM, [EMAIL PROTECTED] wrote:
On leopard or later, you can just do:
[[[NSApplication
I'd like my application to show number of completed tasks in Dock Icon
as it is done in Mail (number of unread emails). Anyone knows how to
do that or where I can read about such functionality?
The idea is widely used by next applications:
Adium
Mail
iGetter
Transmission
XCode
They all add
Hello,
I have created a NSPanel in Interface Builder and added NSBox. It
looks nice except NSBox Title written in black color on dark
background of NSPanel. Is it possible to change color either in
Interface Builder or with code (say in awakeFromNib)?
Thanks.
_
"1600x1200",
@"1280x1024",
@"1024x768"];
[dimensions retain];
So, strings are not actually retained. :( and this led to odd behavior.
Samvel.
On Mar 25, 2008, at 12:06 AM, Sherm Pen
On Mar 24, 2008, at 11:56 PM, Jens Alfke wrote:
On 24 Mar '08, at 9:51 PM, Samvel wrote:
I run into troubles trying to register my object with
NSNotificationCenter in class
-(id) init;
That's a fine place to do it.
//... (at this point self has lost it's
at the
moment of writing that lines.
Samvel.
On Mar 24, 2008, at 11:45 PM, Ken Thomases wrote:
Hi,
On Mar 24, 2008, at 11:19 PM, Samvel wrote:
Lots of classes define static methods that create objects for
instance:
Class NSString:
+(id) stringWithString: (NSString *) string;
or
Hi,
I run into troubles trying to register my object with
NSNotificationCenter in class
-(id) init;
Basically here is my constructor:
-(id) init
{
self = [super init];
if( self) {
[[NSNotificationCenter defaultCenter]
ad
ng dealloc];
// ...
}
-(void) plug
{
// ...
NSLog( "%@", string);
// ...
}
Thanks, Samvel.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to t
) received Notification
saying that application is fine to quit now (after all necessary steps
performed) then call [NSApp replyToApplicationTerminate:YES] and
Application will proceed with quitting.
Is that right? Sorry, but I am a freshman in Mac programming :).
Samvel.
On Mar 23, 2008, at
Hi,
I have defined class (say, Download) that uses NSURLConnection to
download something from internet. My application is Cocoa with UI. I
want to call:
[Download cancel]
and wait for notification from this class once user quits application.
Reasoning: my Download class should cancel con
Oh, thanks a lot. That resolved my question. Now it works just perfect.
Samvel.
On Mar 21, 2008, at 8:01 PM, Dave Hersey wrote:
If the window with that field is in the controller's nib, which I
think is what you're saying, then nameField will be nil until
awakeFromNib is called
:
[textField setStringValue:temp];
hope this helps you.
On Mar 22, 2008, at 2:09 AM, Samvel Khalatian wrote:
Hi,
I am quite new in Cocoa programming and didn't understand yet how
to set initial value for some NSTextField from program?
Imagine I have a collection (Array of data, say,
:
[nameField setStringValue: [buddiesArray objectAtIndex: 0]]
in Controller init method. It does not produce desired effect. Still
window shows up with empty nameField.
How to change it initially?
Thanks.
On Mar 21, 2008, at 7:29 PM, Kyle Sluder wrote:
On Fri, Mar 21, 2008 at 8:09 PM, Samvel
Hi,
I am quite new in Cocoa programming and didn't understand yet how to
set initial value for some NSTextField from program?
Imagine I have a collection (Array of data, say, mates names). Want to
see the first name from array in window once program starts up. So, I
have a controller. Con
16 matches
Mail list logo