Hi All.
I'm a real beginner in Objective-C/Cocoa developing and I have two questions.
First of all I want to ask to you if exists a list dedicated to beginners as I
am. This in order to not bother the real programmers in this developer list
with real beginner question.
The second question
Sandro Noël wrote:
Greetings.
I'm kind of annoyed with the 1867 A.D. controls that are in interface builder.
Every time i want to do something visually cool, I can see the lines of code
piling up
If you want to do something cool you have to ditch IB and actually start
writing code, that's
On Mon, Nov 16, 2009 at 1:13 AM, Alfonso Urdaneta alfo...@red82.com wrote:
If you want to do something cool you have to ditch IB and actually start
writing code, that's just the way it is.
This is not true. While you can't really build a new user interface
control using Interface Builder, you
Kyle Sluder wrote:
On Mon, Nov 16, 2009 at 1:13 AM, Alfonso Urdaneta alfo...@red82.com wrote:
If you want to do something cool you have to ditch IB and actually start
writing code, that's just the way it is.
This is not true. While you can't really build a new user interface
control using
Dear Luca,
1. IMHO, providing help for beginners is one aspect of this list.
There are some people with extraordinary teaching skills registered
here! As long as you do some initial research (Apple Docs, Google,
etc) before posting and respect common mailing list etiquette, I'd say
it's
Thanks Sebastian.
I'll read very carefully the paper you suggest.
Bye.
Luca.
From: sebastianmor...@mac.com
To: luca_cicirie...@hotmail.com
Subject: Re: real beginner question
Date: Mon, 16 Nov 2009 10:39:26 +0100
CC: Cocoa-dev@lists.apple.com
Dear Luca,
1. IMHO, providing
Hello and sorry if this is not the list to ask this.
Im making a simple webkit-cocoa app that mainly will retrieve prebuilt layouts
(HTML pages) and components(div, span etc) form a server, and shows them in the
application in a panel, then I will drag the layout and start placing inside
Hi,
I am trying to display custom image and the attributed text into the
TableHeaderview. For this I am retrieving the HeaderCell of each TableColumn
and setting its image and attributed text. Then I found out If I set image
first and then text next, only attributed text shown with the default
Ok, thanks for helping me Kyle. I'll take a look to BetterAuthorizationSample
code.
Nyxem
On Nov 16, 2009, at 8:13 AM, Kyle Sluder wrote:
On Sun, Nov 15, 2009 at 10:39 AM, nyx...@gmail.com nyx...@gmail.com wrote:
If i understood correctly, the function AuthorizationExecuteWithPrivileges()
David Cake wrote:
The following code snippet works fine from my main thread.
NSFileManager *tempFileManager = [[NSFileManager alloc] init];
NSString *path= [self tempDirPath];
if(![tempFileManager removeItemAtPath: path error: nil]) {
NSLog(@failed to remove
On Sun, Nov 15, 2009 at 10:35 AM, Clark Cox clarkc...@gmail.com wrote:
On Sat, Nov 14, 2009 at 11:35 PM, Ariel Feinerman arielfap...@gmail.com
wrote:
2009/11/15 Kyle Sluder kyle.slu...@gmail.com
On Sat, Nov 14, 2009 at 2:35 PM, Ariel Feinerman arielfap...@gmail.com
wrote:
I need two
On 16 Nov 2009, at 10:35, Gustavo Pizano wrote:
Hello and sorry if this is not the list to ask this.
I think WebKit does have its own mailing lists, but I can't think why the Cocoa
part of WebKit would be off topic here...
I saw the method replaceSelectionWithMarkupString: , in the WebView
Hello Alastair.
In fact I found a example and it shows something applying a css style, so I
will see how can I port that to my app, it will be on wednesday the first
priority task.
Simplifying, the create a DOMElement variable, get the element form the
DOMDocument, and then the do something
On 16 Nov 2009, at 06:14, Chris Carson wrote:
The application runs pretty well, and running it through the Leaks instrument
there are no leaks except for 16-bytes when the application is first starting
caused by IOUSBLib. However, looking at it in the Activity Monitor, the real
memory
I understand your frustration, but as I said, one class instance per
process is a feature of the Objective-C runtime and has been the case
since before there was an OS X. Please understand that having 200 plug-
ins, all using the same class name, is not a typical situation. You
are doing it
On Nov 16, 2009, at 12:18 AM, Luca Ciciriello wrote:
Hi All.
I'm a real beginner in Objective-C/Cocoa developing and I have two
questions.
First of all I want to ask to you if exists a list dedicated to
beginners as I am. This in order to not bother the real programmers
in this
But where are the ones from apple... that's what i'm wondering,
Why do we have to duplicate work that evidently has already been done.
I'm confused as why apple is not including it in it's development tools.
it makes no sense to me...
Because it takes longer to release new UI widgets as
On Sun, 15 Nov 2009 22:14:32 -0800 (PST), Chris Carson cucar...@yahoo.com
said:
The application runs pretty well, and running it through the Leaks instrument
there are no leaks except for 16-bytes when the application is first starting
caused by IOUSBLib. However, looking at it in the Activity
On Nov 15, 2009, at 11:35 PM, Motti Shneor wrote:
Thank you all, and thank you Steve - I think the point is clear now.
However, I'm afraid this limit renders the whole Obj-C interface for plug-ins
impractical for any medium-to-large company with legacy code.
Not really, no.
There is
I'm having difficulty setting tooltips on some views in code. This
should be a simple matter of calling setToolTip: on the views in
question, as far as I can tell from the docs, but that is not working
for me. I surfed the various lists for prior questions about this,
and found
The second question (the technical one) is: Exists a Functional Programming
stile (property/functionality) I can use in Objective-C 2.0 (I am a Haskell
programmer and a C++ programmer)?
Well, blocks, Apple has added something rather similar to anonymous or
naked methods, closures, what have
Can someone let me know if there is something magical about a file having its
creation date set to:
1946-02-14 08:34:56 +
I am guessing it is a special flag used by Finder to let it know that a file is
busy (since even after a restart a file with such a creation date is shown
dimmed)
Am I
On Mon, Nov 16, 2009 at 1:14 AM, Chris Carson cucar...@yahoo.com wrote:
The application runs pretty well, and running it through the Leaks instrument
there are no leaks except for 16-bytes when the application is first starting
caused by IOUSBLib. However, looking at it in the Activity
On Sun, 15 Nov 2009 22:38:04 -0600, Gordon Apple g...@ed4u.com said:
What I don't understand, is that, according to the core animation guide,
kCATransition seems to be what I want for a key instead of sublayers. The
guide says this is triggered by replaceSublayer: with:. However, stepping
it
It was the day ENIAC, the first general purpose electronic computer was
revealed to the world. I guess you can't have a digital file created before
that ;-)
Mark
On 16 Nov 2009, at 17:16, Matt Gough wrote:
Can someone let me know if there is something magical about a file having its
I searched the archives on this issue and found several posts with the
same question with zero responses. Is NSUndoManager simply not
supported in a modal window? Can one of the Apple engineers confirm
this?
Here's a recap of the problem I'm running into:
I have a simple Core Data app
On Nov 15, 2009, at 7:09 PM, Laurent Daudelin wrote:
The BLAuthentication class uses AuthorizationExecuteWithPrivileges which
doesn't seem to allow to pass a description like AuthorizationRightSet
seems to allow. I've searched for some samples but they are all very outdated
(from 2005
On Nov 12, 2009, at 11:53 PM, Tino Rachui wrote:
I have a UIView and a hierarchy of CALayers added to the views layer. When a
touch event occurs I can get the 'locationInView' for instance but what is
the best way to find the top most visible CALayer in the views layer
hierarchy? I played a
On Nov 16, 2009, at 09:37, Nick Zitzmann wrote:
On Nov 15, 2009, at 7:09 PM, Laurent Daudelin wrote:
The BLAuthentication class uses AuthorizationExecuteWithPrivileges which
doesn't seem to allow to pass a description like AuthorizationRightSet
seems to allow. I've searched for some
Hmm,
So I am reading this (Core Data: Apple's API for Persisting Data on Mac OS
X) and I see:
1. It covers sync services, which, I understand, I can't use to sync with
iPhone.
2. It covers core-data for iPhone in general, however that doesn't solve my
specific problem.
3. It covers the
On Mon, Nov 16, 2009 at 9:23 AM, Matt Neuburg m...@tidbits.com wrote:
On Sun, 15 Nov 2009 22:38:04 -0600, Gordon Apple g...@ed4u.com said:
What I don't understand, is that, according to the core animation guide,
kCATransition seems to be what I want for a key instead of sublayers. The
guide
On Mon, Nov 16, 2009 at 5:18 AM, Austin Ziegler halosta...@gmail.com wrote:
Is that true anymore, though? I've been looking at a lot of sample
code lately, and it's very common practice to use self.foo = ... in
initializers, even when they're declared nonatomic. I know you said
you don't
OK, straight out of the core animation guide section on Layer Actions:
The CALayer class provides default action objectsinstances of CAAnimation,
a CAAction protocol compliant classfor all animatable layer properties.
CALayer also defines the following action triggers
On Nov 16, 2009, at 10:34 AM, Kevin wrote:
I searched the archives on this issue and found several posts with the same
question with zero responses. Is NSUndoManager simply not supported in a
modal window? Can one of the Apple engineers confirm this?
Here's a recap of the problem I'm
Thanks for the reply. To answer your question, the
windowWillReturnUndoManager: delegate method in my modal window
controller returns the temporary MOC's undo manager:
- (NSUndoManager *)windowWillReturnUndoManager:(NSWindow *)window
{
return [self.temporaryMOC undoManager];
}
I have
On Mon, 16 Nov 2009 10:25:07 -0800, Kyle Sluder kyle.slu...@gmail.com
said:
On Mon, Nov 16, 2009 at 9:23 AM, Matt Neuburg m...@tidbits.com wrote:
On Sun, 15 Nov 2009 22:38:04 -0600, Gordon Apple g...@ed4u.com said:
What I don't understand, is that, according to the core animation guide,
On Mon, Nov 16, 2009 at 11:01 AM, Matt Neuburg m...@tidbits.com wrote:
Nothing here runs contrary to the documentation. We're now talking apples
and oranges. The key used in addAnimation:forKey: (such as kCATransition)
has nothing whatever to do with the key that arrives in
On Mon, Nov 16, 2009 at 10:50 AM, Kevin ke...@xheadsoftware.com wrote:
I have confirmed that undo/redo is getting called on the temporary MOC's
undo manager as I can have changes in the main window, none of which are
affected if I undo/redo in the modal window.
This isn't necessarily a
Hello,
Could someone point me to some examples showing how to respond to
open document events without using NSDocumentController? I think I've
figured out that I need to register to receive those events with
NSAppleEventManager but I'm having trouble figuring out exactly how to
do this.
I am writing a plugin to another application, and I must manage my own NIBs.
I have been successful loading them and getting some of the basic UI
elements working.
But, what I am having trouble with is communicating with File's Owner.
When I instantiate the NIB, I pass my class as owner - then
On Nov 16, 2009, at 12:15 PM, Philip White wrote:
Could someone point me to some examples showing how to respond to open
document events without using NSDocumentController?
Does the stack-based idiom allow returning an autoreleased object? I'd
think you'd end up with code like this:
- (id)arrayWithStuff {
StackAutoreleasePool();
NSArray *array = [NSArray arrayWithObjects:obj1, obj2, etc, nil];
return array;
}
which would essentially translate into:
-
Thanks!
Boy do I feel silly. I guess I'm not used to the layout of the new
Snow Leopard docs, what with NSApplicationDelegate having its own
page. Anyway, I sure spent a lot of time being frustrated by
NSAppleEventManager.
Thanks again!
Case closed,
Philip
On Nov 16, 2009, at 1:27
On Mon, Nov 16, 2009 at 11:28 AM, BJ Homer bjho...@gmail.com wrote:
Does the stack-based idiom allow returning an autoreleased object?
No. It does not. For the autoreleased object to survive the
destruction of the C++ object, it would have to be autoreleased after
it's destruction. Though, if
On Nov 16, 2009, at 1:12 PM, Kyle Sluder wrote:
On Mon, Nov 16, 2009 at 10:50 AM, Kevin ke...@xheadsoftware.com
wrote:
I have confirmed that undo/redo is getting called on the temporary
MOC's
undo manager as I can have changes in the main window, none of
which are
affected if I undo/redo
On Mon, Nov 16, 2009 at 1:08 PM, Kevin ke...@xheadsoftware.com wrote:
Maybe try abandoning -groupsByEvent?
I did and it worked. Calling [[self.temporaryMOC undoManager]
setGroupsByEvent:NO] did the trick.
Although I'm ecstatic that it worked, I'm not sure why it did. Many thanks
for
Hello Everyone,
I have a NSTextView for which I want to display a horizontal scroll
bar. Following some leads on the internet, I have most of it working
except that I am having problems with the vertical scroll bar.
What I have done is to find the width of the longest line (in pixels
with the
Hi everyone,
I'm having an issue with NSSegmentedControl. My control has two segments.
Segment 0 has an image of NSAddTemplate, and segment 1 has an image of
NSRemoveTemplate. Segment 0 is always enabled, and segment 1 is conditionally
enabled. Segment 0 has a menu, segment 1 does not.
I am successful creating/defining an accessoryView for an NSOpenPanel.
However, I find that some secondary windows that are displayed as a result
of a button in that accessory view, do not get displayed properly, nor am I
able to get keyboard focus to that window.
When I say properly, the new
On Nov 16, 2009, at 1:21 PM, Harry Plate wrote:
I am writing a plugin to another application, and I must manage my own NIBs.
But, what I am having trouble with is communicating with File's Owner.
When I instantiate the NIB, I pass my class as owner - then when the
controller is called via
On Nov 16, 2009, at 1:50 PM, Clark Cox wrote:
Though, if you're planning on returning an
autoreleased object, you're already assuming that there is an
autorelease pool in place, in which case, there is no need to wrap the
local function in your own pool.
You wouldn't want to wrap such a
Hierarchical menus can be confusing because there are so many layers to keep
track of: menus, items, etc. In the code above, log the title of the
selected item. Is it what you expect?
I do log the titles and they are not what I expect, for example, the
code below produces the output below
On 17/11/2009, at 6:21 AM, Harry Plate wrote:
But, what I am having trouble with is communicating with File's Owner.
When I instantiate the NIB, I pass my class as owner - then when the
controller is called via -awakeFromNib, I need to communicate with that
class to get some additional
After some more experimenting: It works for the first few edits after
which the behavior reverts to undo/redo in bunches. And you're
right, I shouldn't have to do setGroupsByEvent:NO when in fact it's
the opposite of what I want.
In short, this remains an issue. I'm perplexed as to why the
On Nov 16, 2009, at 2:09 PM, Dave DeLong wrote:
How can I achieve the behavior that I'm looking for (and that is
implied in the documentation)?
NSSegmentedControl, like NSSplitView, leaves *much* to be desired.
Over time, my solution has evolved into an NSSegmentedControl subclass
with
When running on Tiger, my NSWindowController subclass that runs a modal
preferences dialog gets a retain message after it has been deallocated.
I can't reproduce this on Snow Leopard. The backtrace starts:
#0 0x92cc5fb8 in -[_NSZombie retain] ()
#1 0x92c2f1cc in -[NSInvocation
Thank you all for your feedback!
I guess i'll have to make my own.
I just find it sad to have to duplicate work, it's unproductive.
cheers!
Sandro Noel.
On 2009-11-16, at 11:53 AM, Scott Ribe wrote:
But where are the ones from apple... that's what i'm wondering,
Why do we have to duplicate
[Moved from Xcode-Users since it really isn’t an Xcode issue.]
I have some dependent/injected unit tests to test application-specific
functionality. I've added a test that calls a C function which is
defined in the application. This causes a link-time error because, by
default,
On 16 nov 2009, at 04.07, Gregory Weston wrote:
Given Dave Keck's correct comment that threading shouldn't even come up in
the situation you describe, I should point out that according to the docs the
result of sending init to an NSFileManager object in 10.5 is undefined. If
you're
Thanks to Seth and his subclass of NSSegmentedControl, I have this working
exactly as I had hoped!
Cheers,
Dave
On Nov 16, 2009, at 7:44 PM, Seth Willits wrote:
On Nov 16, 2009, at 2:09 PM, Dave DeLong wrote:
How can I achieve the behavior that I'm looking for (and that is implied in
Hi,
I want to replace the ComboBoxCell with TextFieldCell when I am not editing
the cell and shall be replaced with ComboBoxCell when clicked on that
particular cell. Any pointers highly appreciable.
Regards
symadept
___
Cocoa-dev mailing list
On 17/11/2009, at 4:25 PM, Symadept wrote:
I want to replace the ComboBoxCell with TextFieldCell when I am not editing
the cell and shall be replaced with ComboBoxCell when clicked on that
particular cell. Any pointers highly appreciable.
You're not learning, are you?
I have an NSStatusItem where I am using an NSWindow as it's About Box.
When displayed, I can close the window via a mouse click, but not with
the cmd w shortcut. I've looked In Apple documents about this, but the
documentation assumes a document based app where this action is tied
to the
On 17/11/2009, at 12:41 PM, Kevin wrote:
After some more experimenting: It works for the first few edits after which
the behavior reverts to undo/redo in bunches. And you're right, I shouldn't
have to do setGroupsByEvent:NO when in fact it's the opposite of what I want.
In short, this
On Mon, Nov 16, 2009 at 9:50 PM, Rob Keniger r...@menumachine.com wrote:
If you have a paid dev membership, now might be the time to use a support
incident I think.
I'd file a Radar first. There is a workaround that isn't completely
insane, and either the documentation or the implementation
65 matches
Mail list logo