Just use an additional NSObjectController. Its default content is a
NSMutableDictionary, add a key here, say lockUI, switch "automatically
prepares content" to yes and bind your form fields enabled binding to
that controllers lockUI-property (should show up in IB).
That is a completly valid and
I am trying to migrate from one .xcdatamodel file to another. I have a
NSEntityMigrationPolicy subclass, the name of which I have entered in xcode->
.xcmappingmodel file -> entity -> "custom Policy" field.
I run my app which successfully opens and runs the previous version of my data
so I can o
bcc'ing XCode and flipping to Cocoa-Dev which is a better list for this
question IMHO, if you're not a member of that I'd suggest joining it for this
kind of question. You could also try the apple developer forums which have more
iPhone-specific stuff, but Cocoa-Dev has more depth (again IMHO).
Perfect, I did this:
- (void)drawRect:(NSRect)dirtyRect {
NSImage *pattern = [NSImage imageNamed:@"TitlePattern.png"];
NSDrawThreePartImage([self bounds], pattern, pattern, pattern, NO,
NSCompositeSourceOver, 1, NO);
}
Thanks again.
Daniel Lopes
On Sun, Sep 5, 2010 at 10:04 PM, Danie
On Sep 5, 2010, at 7:33 PM, Brad Stone wrote:
> I want to highlight different substrings contained in controls in a window
> (two different comboBoxes for example) programmatically when the user is
> searching for a subString. I can do this for one comboBox but not both
> simultaneously. Here
It's legal to pass nil for the left and right caps if you don't have any,
which apparently you do not.
-Ken
On Mon, Sep 6, 2010 at 10:09 AM, Daniel Lopes wrote:
> Perfect, I did this:
>
> - (void)drawRect:(NSRect)dirtyRect {
>
> NSImage *pattern = [NSImage imageNamed:@"TitlePattern.png"];
>
If I pass nil only the left part is filled. Which I think is right. See the
image above:
http://cl.ly/2HPb
Daniel Lopes
On Mon, Sep 6, 2010 at 2:21 PM, Ken Ferry wrote:
> It's legal to pass nil for the left and right caps if you don't have any,
> which apparently you do not.
>
> -Ken
>
>
> On
Hello, I'm sure this question was already answered but I can't found it.
I'm starting some serious projects in Cocoa and trying to understand the
decisions and good pratices of the community. Please, can you guys answer my
doubts?
1º I would like to know why many projects make his code dependent
> 2º Why most of projects that I found on the internet don't use folders or
> groups to separate classes (for example, controllers, views, categories and
> models). What is the good pratice for code organization? If somebody could
> point links or guidelines would help a lot.
I think anyone would
I would like to set it so that I can set the placeholder string
programmatically. However, when I do it, I get a warning at compile time and
an error at runtime:
2010-09-06 15:42:01.617 System Preferences[50199:a0f] -[NSTextField
setPlaceholderString:]: unrecognized selector sent to instance 0x
Hi everyone,
I'm working on an iPhone app, and I'm trying to make the title in the
navigation bar scroll. I've got a UIView subclass that I wrote that, given a
string, will lay out some UILabels and then animate a frame change to give the
appearance of scrolling. This works just fine. I inst
It's an NSTextFieldCell method not an NSTextField method. Try [[myTextField
cell] setPlaceholderString:@"whatever"];
Regards
Gideon
On 07/09/2010, at 7:49 AM, C.W. Betts wrote:
> I would like to set it so that I can set the placeholder string
> programmatically. However, when I do it, I get
12 matches
Mail list logo