On Jan 13, 2010, at 9:46 PM, Michael Gardner
wrote:
On Jan 13, 2010, at 5:07 PM, glenn andreas wrote:
On Jan 13, 2010, at 4:48 PM, Michael Gardner wrote:
I also tried calling -drawRect: on my hidden view (after setting
the context with UIGraphicsBeginImageContext()), but it doesn't
Should I then use kCFStringEncodingUTF8 in this case ?
On Thu, Jan 14, 2010 at 9:52 AM, Kyle Sluder wrote:
> On Wed, Jan 13, 2010 at 8:16 PM, rohan a wrote:
> > I used kCFStringEncodingASCII, since I am passing a char* strings for the
> > filename and alias name through my program.
>
> char* do
2010/1/13 Trygve Inda :
> How can I compile/link my code so that the framework effectively has a soft
> link? I will need to check for the presence of the framework at runtime, and
> if it is not there, avoid calling into it, but if the user has added it, the
> functionality would be available.
We
> I have an app that I'd like to use a Cocoa Framework in (and it'd normally
> end up in my app package in the Frameworks folder).
>
> For licensing reasons, I can't embed it directly, and my all will work
> without it (though some features will be disabled).
>
> I'd like to allow users to downlo
On Wed, Jan 13, 2010 at 8:16 PM, rohan a wrote:
> I used kCFStringEncodingASCII, since I am passing a char* strings for the
> filename and alias name through my program.
char* does not mean "array of ASCII characters."
--Kyle Sluder
___
Cocoa-dev mail
I have an app that I'd like to use a Cocoa Framework in (and it'd normally
end up in my app package in the Frameworks folder).
For licensing reasons, I can't embed it directly, and my all will work
without it (though some features will be disabled).
I'd like to allow users to download this framew
Hi,
Thanks for the response.
I used kCFStringEncodingASCII, since I am passing a char* strings for the
filename and alias name through my program.
Thanks
On Thu, Jan 14, 2010 at 4:49 AM, Sean McBride wrote:
> On 1/13/10 10:42 PM, rohan a said:
>
> >int CreateAlias(const char *target, const cha
I would like enable my preference pane to reveal a particular tab from Apple
Script, such that:
tell application "System Preferences" reveal anchor "Foo" of pane id
"com.example.preferences.Bar"
I cannot find anywhere how my preference pane would declare or specify the
"Foo" anchor or associat
On Jan 13, 2010, at 5:07 PM, glenn andreas wrote:
>
> On Jan 13, 2010, at 4:48 PM, Michael Gardner wrote:
>
>>
>> I also tried calling -drawRect: on my hidden view (after setting the context
>> with UIGraphicsBeginImageContext()), but it doesn't seem to do anything.
>>
> Many built in views d
On Jan 13, 2010, at 6:22 PM, William Squires wrote:
> I have a UITableView that's part of a Navigation-based Application. There's
> one .xib, a DrinkDetailViewController class (.m & .h files) and an
> AddDrinkViewController class which inherits from DrinkDetailViewController.
> Both share the
I have a UITableView that's part of a Navigation-based Application.
There's one .xib, a DrinkDetailViewController class (.m & .h files)
and an AddDrinkViewController class which inherits from
DrinkDetailViewController. Both share the same view, which contains a
UITextField, two UITextViews,
On Jan 13, 2010, at 5:54 PM, Graham Cox wrote:
> @implementation NSData (SHA1Hash)
>
> - (NSData*) sha1Hash
> {
> // calculates the 160 bit SHA-1 digest of the given data
>
> unsigned char* digest = (unsigned char*) malloc(20);
> SHA1([self bytes], [self length], digest)
Possibly - do you want to try the XCode list for that one, I've been
asking CLANG questions over there.
Graham Cox wrote:
Hi all, I have the following code in a category on NSData:
@implementation NSData (SHA1Hash)
- (NSData*) sha1Hash
{
// calculates the 160 bit SHA-1 digest of
Hi all, I have the following code in a category on NSData:
@implementation NSData (SHA1Hash)
- (NSData*) sha1Hash
{
// calculates the 160 bit SHA-1 digest of the given data
unsigned char* digest = (unsigned char*) malloc(20);
SHA1([self bytes], [self length],
On Jan 13, 2010, at 7:29 PM, Richard Somers wrote:
> On Jan 13, 2010, at 7:14 AM, Jim Correia wrote:
>
>> This style is typically used for non-object BOOL values. If you use it for
>> an NSNumber attribute, you run the risk of someone familiar with the pattern
>> assuming it is a BOOL property
On Jan 13, 2010, at 7:14 AM, Jim Correia wrote:
This style is typically used for non-object BOOL values. If you use
it for an NSNumber attribute, you run the risk of someone familiar
with the pattern assuming it is a BOOL property and writing
if ([managedObject isSelected]) {
Why are you using a different pattern for printing your PDF view than
you are using for your regular view? Use NSPrintOpertaion and
-setShowPanels: as described in
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/Printing/Tasks/UsingPrintPanel.html
--Kyle Sluder
On Wed, Jan
On Jan 13, 2010, at 3:46 PM, Mike Chambers wrote:
> [...]
> I then add this to the NSPredicateEditor, and it works as expect.
> However, the left column in the editor for this row shows
> "professions" (the key value). I want it to show "Profession". If I
> was using IB this would be very simple,
Quincey-
I have not created a controller in code, to my knowledge, so I don't know how
I'd have two. (I had, previously, made this error by creating an instantiation
of NSDocument in IB, but I realized the error in my ways and cleared that up, I
believe, by resetting the File's Owner to the MyD
I am looking for some input on how to set the label for the left hand
expression / popup in an NSPredicateEditorRowTemplate.
I need to programmatically create a NSPredicateEditorRowTemplate so I
can populate the right side expression / drop down with dynamically
generated values.
In my subclass,
On 1/13/10 10:42 PM, rohan a said:
>int CreateAlias(const char *target, const char *aliasname)
>{
> CFStringRef Ref1 = CFStringCreateWithCString(NULL, target,
>kCFStringEncodingASCII);
Don't use kCFStringEncodingASCII, filenames can have non-ASCII characters.
Save yourself the trouble of a
If you really want to do a wizard, this might be a good starting point:
http://www.cimgf.com/2008/03/03/core-animation-tutorial-wizard-dialog-with-transitions/
Independent Cocoa Developer, Macatomy Software
http://macatomy.com
On 2010-01-13, at 4:11 PM, Kyle Sluder wrote:
> On Wed, Jan 13, 201
On Wed, Jan 13, 2010 at 11:59 AM, Peter Ammon wrote:
> Hi Eric,
>
> On SnowLeopard and later, use the NSMenu method popUpMenuPositioningItem:
> atLocation: inView:.
Don't forget to file a documentation bug about mentioning this new
method in the menu and popup list documentation.
--Kyle Sluder
On Wed, Jan 13, 2010 at 9:54 AM, Ian Piper wrote:
> For one of my applications I want to do a check at startup to see whether a
> profile and password has been set for the current user, and if not to take
> them through a setup wizard. I'm sure I can mug my way through writing this
> but it fee
On Jan 13, 2010, at 4:48 PM, Michael Gardner wrote:
>
> I also tried calling -drawRect: on my hidden view (after setting the context
> with UIGraphicsBeginImageContext()), but it doesn't seem to do anything.
>
Many built in views do not draw anything at all (and have no useful drawRect:)
- al
Hi Ian,
well, in a sense the lack of examples *is* illustrating the best practices
concerning setup wizards :-)
Cheers,
Marcel
On Jan 13, 2010, at 9:54 , Ian Piper wrote:
> For one of my applications I want to do a check at startup to see whether a
> profile and password has been set for th
Yeah that works, I had an assertion failing in there somewhere…
Now I have to go pester the sqlite-users list. Yick.
Jamie
On Jan 13, 2010, at 1:38 PM, Robert Martin wrote:
> Assuming that the original path is valid, this looks ok to me - maybe you
> might try commenting out the lines:
>
>>
On Jan 13, 2010, at 13:28, Daniel Wambold wrote:
> I have an NSPersistentDocument app using CoreData for storage. I have three
> NSArrayControllers to mediate between the three Entities in my Model and
> three NSTableViews. Everything works fine until I load a previously saved
> file. At that p
On Jan 13, 2010, at 11:24 AM, Matt Neuburg wrote:
> On Tue, 12 Jan 2010 14:18:05 -0600, Michael Gardner
> said:
>> I'm trying to create a "snapshot" UIImage from a UITextView that's inside a
> larger, hidden UIView. renderInContext: works fine for visible UIView layers,
> but I can't get consiste
On 13 Jan 2010, at 12:32 PM, David Blanton wrote:
> I set the knob position of the horz and vert scrollers as follows:
>
> - (void)centerScrollers {
>
> [m_hScroller setDoubleValue:0.5];
> [m_vScroller setDoubleValue:0.5];
>
> }
>
> Then when I move either knob with the
This sounds more like a CoreData or general controller problem than anything
specific to iCal-style text fields. You might want to create a new thread for
this.
On Jan 13, 2010, at 11:44 AM, Brad Gibbs wrote:
> I'm trying to implement this.
>
> I created a custom NSTextField subclass, called
I want to get the image of a minimized window that is in the dock and modify
it. But here is the catch. I need this to work on 10.4 and up. The API
miniwindowImage from NSWindow will only return something if you have
modified the image. Is there a way to do this?
Another way to do this is if I cou
On Jan 13, 2010, at 10:32, Jamie Hardt wrote:
> I'm using a directory enumerator to recurse through a series of directories,
> and it always fails after going through a certain number of enumerations. If
> I enumerate through the same directory over and over, it tends to fail in
> about the sa
Dear List,
I have an NSPersistentDocument app using CoreData for storage. I have three
NSArrayControllers to mediate between the three Entities in my Model and three
NSTableViews. Everything works fine until I load a previously saved file. At
that point, the controllers seem to have no content
If I try this:
- (void)animationDidStop:(CAAnimation *)theAnimation finished: (BOOL)flag {
NSLog(@"%@", [theAnimation type]);
}
I get a warning - but it displays "reveal" when I use
kCATransitionReveal. (CAAnimation
may not respond to '-type')
If I used two different types of animation, I co
Hi Ian,
When you speak of a setup wizard, I think of those Windows-based apps with the
Next and Back buttons. In my opinion, those wizards are very Windows-like, and
therefore, annoying. ;)
Have you considered displaying a regular dialog box that asks for the relevant
information? Unless the p
On Jan 13, 2010, at 11:38 AM, Robert Martin wrote:
> PS - Also, when I use NSDirectoryEnumerator, it returns a string, not an
> URL...
The documentation actually doesn't say... I assumed that a directory enumerator
that is created with a URL would return URLs, but I guess not... In any case,
Hi Eric,
On SnowLeopard and later, use the NSMenu method popUpMenuPositioningItem:
atLocation: inView:.
Before SnowLeopard, this is probably the easiest way:
NSPopUpButtonCell *cell = [[NSPopUpButtonCell alloc] initTextCell:@""
pullsDown:NO];
[cell setMenu:menu];
[cell performClickWithFrame:NS
Hello All,
Using the new NSURL methods available with Cocoa on Mac OS X 10.6, I am
trying to create an alias file to a certain file. However, this method
requires a NSURL data type. But I am writing a C program along with an
objective-C program to accomplish this. The C program would accept the
in
Hello,
I have NSTextField and some views(NSTableView etc).
I want interrupt keydown event when NSTextField is not first responder to input
the key to NSTextField.
I wrote keyDown: method of my NSWindowController class like below.
- (void)keyDown:(NSEvent *)event
{
// IBOutlet NSTextField
I'm trying to implement this.
I created a custom NSTextField subclass, called ICNTextField. When an
ICNTextField instance receives a mouseDown event, it initializes a custom
NSWindow subclass with a borderless window mask. In the window subclass, I've
overridden -canBecomeKeyWindow: so that i
Isn't the path returned by NSDirectoryEnumerator a relative path to the path
you initialize it with?
The docs say: "An NSDirectoryEnumerator object enumerates the contents of a
directory, returning the pathnames of all files and directories contained
within that directory. These pathnames are r
CocoaHeads Lake Forest will be meeting on the second Wednesday of the
month. We will be meeting at the Orange County Public Library (El
Toro) community room, 24672 Raymond Way, Lake Forest, CA 92630
Please join us tonight from 7pm to 9pm on Wednesday, 1/13.
We will have a selection of topics ton
I am seeing some strange behavior.
I set the knob position of the horz and vert scrollers as follows:
- (void)centerScrollers {
[m_hScroller setDoubleValue:0.5];
[m_vScroller setDoubleValue:0.5];
}
Then when I move either knob with the mouse the other knob move
Hello all,
I'm using a directory enumerator to recurse through a series of directories,
and it always fails after going through a certain number of enumerations. If I
enumerate through the same directory over and over, it tends to fail in about
the same place, but if I enumerate through other
On Jan 11, 2010, at 3:31 PM, Fabry, Geza wrote:
> I try to set tailIndent for an NSMutableParagraphStyle attribute of an
> NSMutableAttributedString. The documentation says:
> "If positive, this is the distance from the leading margin (for example,
> the left margin in left-to-right text). That
Hi all,
For one of my applications I want to do a check at startup to see whether a
profile and password has been set for the current user, and if not to take them
through a setup wizard. I'm sure I can mug my way through writing this but it
feels like the kind of thing for which there might be
Thanks David.. I did so.. I just thought there was such a methohd or something
due that the image its already being scaled, so to don't make recalculations
that were already done.. Anyway..
Thanks
Gustavo
On Jan 13, 2010, at 6:20 PM, David Duncan wrote:
> On Jan 13, 2010, at 9:17 AM, Gustavo
On Jan 13, 2010, at 11:18 AM, Eric E. Dolecki wrote:
> Is there a way to do it without retaining a reference? I could do that, but
> what is that key used for if not for referencing later somehow?
>
The key is used by the layer, not the animation. Animations are just generic
"generators" that
On Wed, 13 Jan 2010 09:44:55 -0500, "Eric E. Dolecki"
said:
>Currently I am using CATransition to display a subview:
>
>[window addSubview:monthView.view];
>
>CATransition *animation = [CATransition animation];
>
>[animation setDuration:0.25];
>
>*[animation setDelegate:self];*
>
>[animation setTy
In the 'Application Menu and Pop-up List Programming Topics for Cocoa' document
it says:
The preferred approach for programmatically displaying a non-contextual menu is
to create an NSPopUpButtonCell object, set its menu, and then call send a
attachPopUpWithFrame:inView: message to the pop-up b
Create a property for the target class that concatenates the text value of all
the other properties of interest, and then search on that?
On Jan 13, 2010, at 9:46 AM, cocoa-dev-requ...@lists.apple.com wrote:
> Message: 5
> Date: Tue, 12 Jan 2010 17:10:10 -0800
> From: Mike Chambers
> Subject: S
On Jan 13, 2010, at 9:36 AM, Dave Fernandes wrote:
> On 2010-01-13, at 12:20 PM, David Duncan wrote:
>
>> That said, I don't see how you couldn't just calculate this yourself. Just
>> grab the size of the image, figure out what the less of the two scales you
>> need to fit the width or height o
On 2010-01-13, at 12:20 PM, David Duncan wrote:
> That said, I don't see how you couldn't just calculate this yourself. Just
> grab the size of the image, figure out what the less of the two scales you
> need to fit the width or height of the image view, then scale the other
> component by the
Create a property for the target class that concatenates the text value of all
the other properties of interest, and then search on that?
On Jan 13, 2010, at 9:46 AM, cocoa-dev-requ...@lists.apple.com wrote:
> Message: 5
> Date: Tue, 12 Jan 2010 17:10:10 -0800
> From: Mike Chambers
> Subject: S
On Tue, 12 Jan 2010 14:18:05 -0600, Michael Gardner
said:
>I'm trying to create a "snapshot" UIImage from a UITextView that's inside a
larger, hidden UIView. renderInContext: works fine for visible UIView layers,
but I can't get consistent results for hidden views.
>
>I read somewhere (can't recal
On Jan 13, 2010, at 9:17 AM, Gustavo Pizano wrote:
> On Jan 13, 2010, at 5:53 PM, David Duncan wrote:
>
>> On Jan 13, 2010, at 6:57 AM, Gustavo Pizano wrote:
>>
>>> I want to get the actual size of the NSImage which I dragged into an
>>> NSImaveView that has the imageScaling to NSImageScaleProp
Is there a way to do it without retaining a reference? I could do that, but
what is that key used for if not for referencing later somehow?
On Wed, Jan 13, 2010 at 11:43 AM, Fritz Anderson wrote:
> On 13 Jan 2010, at 8:44 AM, Eric E. Dolecki wrote:
>
> > Currently I am using CATransition to displ
On Jan 13, 2010, at 5:53 PM, David Duncan wrote:
> On Jan 13, 2010, at 6:57 AM, Gustavo Pizano wrote:
>
>> I want to get the actual size of the NSImage which I dragged into an
>> NSImaveView that has the imageScaling to NSImageScaleProportionallyUpOrDown.
>
>
> Does requesting the size from t
On Jan 13, 2010, at 7:43 AM, Nicolas Berloquin wrote:
> Hi !
>
> I'm new to coreAnimation, and there is something that I don't grasp yet. I'd
> like to composite a series of images (sometimes a few hundred) inside a view.
> Those images will sometimes remain where they are, or be resized or move
On Jan 13, 2010, at 6:57 AM, Gustavo Pizano wrote:
> I want to get the actual size of the NSImage which I dragged into an
> NSImaveView that has the imageScaling to NSImageScaleProportionallyUpOrDown.
Does requesting the size from the NSImage not do what you want?
--
David Duncan
Apple DTS Anim
On 13 Jan 2010, at 8:44 AM, Eric E. Dolecki wrote:
> Currently I am using CATransition to display a subview:
>
> [window addSubview:monthView.view];
>
> CATransition *animation = [CATransition animation];
>
> [animation setDuration:0.25];
>
> *[animation setDelegate:self];*
>
> [animation set
I have a situation where I want to print a multi-page PDF. While I
could use the PDFKit utility classes and/or quartz functions to get
the information to manually write drawing/pagination code for a NSView
subclass, I had thought that quicker alternative would be to create an
off-screen PDFView and
NSImage *image = [imageView image]; //IBOutlet to ImageView
NSSize imageSize = [image size];
NSLog(@"Height: %f, Width: %f", imageSize.height, imageSize.width);
This number stayed the same for me regardless of the scaling and matched the
dimensions specified in the Finder.
On Jan 14, 2010,
Hi !
I'm new to coreAnimation, and there is something that I don't grasp yet.
I'd like to composite a series of images (sometimes a few hundred) inside a
view.
Those images will sometimes remain where they are, or be resized or moved
around.
>From what I understand, backing an NSView with a CALaye
Hello all.
I want to get the actual size of the NSImage which I dragged into an
NSImaveView that has the imageScaling to NSImageScaleProportionallyUpOrDown.
I have found some answers on the web, but it seems Im still missing something,
or those answer don't apply to me.. On of them was to create
Currently I am using CATransition to display a subview:
[window addSubview:monthView.view];
CATransition *animation = [CATransition animation];
[animation setDuration:0.25];
*[animation setDelegate:self];*
[animation setType:kCATransitionPush];
[animation setSubtype:kCATransitionFromLeft];
[
On Jan 13, 2010, at 8:39 AM, Richard Somers wrote:
> On Jan 13, 2010, at 1:17 AM, Kyle Sluder wrote:
>
>> This code cannot generate that error because it doesn't send any
>> messages. You need to post the code to which the error actually
>> refers.
>
> This works.
>
> @property (nonatomic,
On Jan 13, 2010, at 1:17 AM, Kyle Sluder wrote:
This code cannot generate that error because it doesn't send any
messages. You need to post the code to which the error actually
refers.
This works.
@property (nonatomic, retain) NSNumber *selected;
if ([[self selected] boolValue]) {
Hi list,
I just fell over NSWeekCalendarUnit. It delivers the week of a date.
Sadly it seems to do so only for the US but not for e.g. Germany and all ISO
8601 countries (most of europe) - except UK.
The current week is 3 in the US but 2 in Europe (except UK ;)
For a list see:
http://en.wikiped
On 13/01/2010, at 7:35 PM, Alexander Bokovikov wrote:
Hi, All,
Does anybody know how could I define default help window width?
I've created a navigation menu, which is too wide for default
window, so horizontal scrollbar appears.
Or should I adjust my help design to the existing help windo
Hi, All,
Does anybody know how could I define default help window width?
I've created a navigation menu, which is too wide for default window,
so horizontal scrollbar appears.
Or should I adjust my help design to the existing help window default
size?
Thanks,
Alexander
___
On Tue, Jan 12, 2010 at 6:53 PM, Richard Somers
wrote:
> A property declaration attribute with the getter shown below does not work
> for a NSManagedObject subclass.
>
> @property (nonatomic, retain, getter=isSelected) NSNumber *selected;
>
> It produces error "unrecognized selector sent to in
73 matches
Mail list logo