-
as seen on Stack Overflow
- Search for 'Stack Overflow'
So I started reading this book:
http://www.amazon.com/Cocoa-Design-Patterns-Erik-Buck/dp/0321535022
On chapter 2 it explains about the MVC design pattern and gives and example which I need some clarification to.
The simple example shows a view with the following fields:
hourlyRate, WorkHours, Standarthours…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I want to drag a row from my tableview and drop it into any other NSTextField in Mac OS X 10.6, and have a string of text be dropped.
Drag and drop already works within my app (between a NSTableView and an NSBrowser), but I have had no success putting any data on the pasteboard that can…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to translate the a carbon method into cocoa into and I am having trouble finding any documentation about what the carbon method getPtrSize really does. From the code I am translating it seems that it returns the byte representation of an image but that doesn't really match up with the name…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
I am trying to send some text in an email from my cocoa app (by using Mail.app). Initially I tried using HTML to send properly formatted text. But the mailto: URL does not support html tags (even after setting headers)
So I decided to use formatted string (left-aligning of string) This is what…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Having just updated Mono to 2.6.3 (on OS X), I noticed in the installer that cocoa# 0.9.5 is also installed. However using MonoDevelop there are no cocoa# project templates by default, and I was wondering if anyone knew more about creating cocoa# apps.
If you goto the cocoa# page on the Mono site…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey fellas,
I've got a custom view inside of a UIBarButtonItem, set by calling -initWithCustomView.
OK, so the view renders fine, but when I tap it, it doesn't call the method that I set as the UIBarButtonItem's action property.
Oh, and I have verified that my -deselectAll method works fine.
Here's…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I must be missing something obvious here but ...
UIControl has a method
- (void)addTarget:(id)target action:(SEL)action forControlEvents: (UIControlEvents)controlEvents
which lets you add an action to be called when any of the given controlEvents occur. ControlEvents are a bitmask of events which…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
The Apple documentation says that the sender passed to the NSMenuItem's action can be set to some custom object, but I can't seem to figure out how to do this. Is there a method I'm not seeing someplace in the documentation?
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
So the other day I was sick of typing out repetetive addTarget:action:forControlEvents:s, and macros are only entertaining for so long, so I did this:
@implementation UIControl (xx)
-(void)addTarget:(id)target action:(SEL)action
{
[self addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to access the post target action in a jquery function.
example:
<form action="/page/users" id="signup" method="post">
I'd like to access the "action" part - "/page/users" in this case.
$('#signup').live("submit", function(event) {
// get this submitted action
}
Seems like…
>>> More