Would there be any issue with creating an app that contains multiple Today
Widgets? I've actually done it, and it works on the simulator and on my phone.
But now with XC6, I can't build an archive so I am wondering if it is related
to the .IPA build problem, or Apple won't allow multiple widgets
We're having a hard time building an IPA file in XC6. From what I have read
online, it seems to be a bug. We can make a .pkg file or an XCarchive file from
our app. Any confirmation this really is a bug? Seems really unusual for such
an important feature. We have already tried to add the LSRequi
ng my item# together and
multiply n wouldn't give a real offset to a bit in a bitmap.
Chris
On Tuesday, November 5, 2013 2:07 PM, Jens Alfke wrote:
On Nov 5, 2013, at 10:17 AM, Chris Paveglio wrote:
My exclusions array has many simple objects. Each object has 3 ivars-
(int)itemID1, (i
left hand,
then change tableView:numberOfRowsInSecton: for the right hand table to show
zero. This can be done without any looping at all.
Does this help?
-jwd
// Joseph W. Dixon
On Nov 5, 2013, at 12:17 PM, Chris Paveglio wrote:
What is the most efficient way to compare a list of mutually
What is the most efficient way to compare a list of mutually exclusive items? I
know this isn't exactly Cocoa/iOS specific. I have a table that needs to
disable certain rows based on what other rows are selected.
I have several objects, let's say "weapons in a game". Such as a bow and arrow,
a
How can I use a picker view to select something and while the picker view is
still displayed, have it update multiple text fields?
Conceptual setup: I have a dictionary of values like {A:1, B:2, C:3}. The keys
(text values) are what the user is going to pick from the list. The numeric
values ar
I've got a project that I am working with, that I did not create. I am trying
to understand it and I would like to remove the Carbon framework dependencies
in it. I don't know anything about Carbon. Is there a good resource to read up
on it? Are there replacement methods in other frameworks to r
What is the best way to handle this? I have a table view (using cell views)
which has multiple text fields in it. I have an arrayController that holds an
array of the custom objects that hold the data for each tableCellView (row).
The array is made in the appDelegate and it always consists of te
I'm having trouble with bindings. I have an mutable array which contains 2 or
more mutable dictionaries. I want to display the dictionary items in an
NSTableView using NSTableCellView (the one where I can do custom layout in the
cell with multiple text boxes/image boxes etc). And the dictionary
Sure I totally understand that. My question is more of "what is the most
elegant way to do it". Add them to an array?
- Original Message -
From: iain
To: Chris Paveglio
Cc: Cocoa Dev List
Sent: Saturday, March 16, 2013 2:35 PM
Subject: Re: ARC Release too soon
On 16 Ma
I'm working with ARC for the first time just now. I'm running into an issue
where ARC is releasing objects too soon and I am not sure the best way to fix
it. Under GC it works correctly, even in the same project if I turn off ARC and
turn GC back on.
I have an AppDelegate that will spawn any num
I think I figured something out. I used the table view's method for
tableViewSelectionDidChange and I could set the panel's previewed item as that
changed. It works but might not be optimal.
Thanks for any replies.
Chris
- Forwarded Message -----
From: Chris Paveglio
To: Coco
I'm building an app that has a table view which holds paths of images. I have
enabled quicklook so I can press space bar and the preview window will show up.
I can view 1 image and close the preview and show another image preview. But if
I have the quicklook preview panel displayed, it won't upd
I'm trying to build a little app to drag and drop image files (or any files
really) onto an InDesign document. What is the correct file type to use? NSURL
or a string with the file path? I've tried both but neither work for me.
I'm sure I might have another problem with my drag and drop implement
Sorry, this is O.T. a little. Does anyone know what's going on with
Cocoabuilder.com? I haven't been able to get there for more than a month, on
work or on home computers. But Google shows a cached page with a recent date,
which seems weird. Is there any other similar site to browse topics easie
I'm doing an NSMetadataQuery something like this:
NSPOT = NSLikePredicateOperatorType;
myPredicate = [NSComparisonPredicate
predicateWithLeftExpression:[NSExpressionexpressionForKeyPath:@"*"]
rightExpression:[NSExpressionexpressionForConstantValue:@"somestring"]
modifier:NSDirectPredicateModifier
eholder.
Thanks Kyle, Ken and Keary!
- Original Message -
From: Kyle Sluder
To: Chris Paveglio
Cc: Cocoa Dev List
Sent: Monday, February 13, 2012 1:22 PM
Subject: Re: Odd display of percent character
On Mon, Feb 13, 2012 at 9:04 AM, Chris Paveglio
wrote:
> I'm having an issue
I'm having an issue with the percent character being displayed as random
numbers in an NSAlertPanel (modal). My app has an ivar, "fullString", including
the usual property/synthesize getters and setters, there is nothing special
about it. fullString is bound to an NSTextField where a user might
els; row++)
for (column = 0; column
To: Chris Paveglio
Cc: Cocoa Dev List
Sent: Thursday, February 9, 2012 5:43 PM
Subject: Re: drawing 1 bit images, and image resolution
On 10/02/2012, at 3:54 AM, Chris Paveglio wrote:
still looking for a way to convert to 1-bit.
So what have you tried?
The
I have been able to change the library to output Greyscale images now. It
required less work than I had thought.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the mod
st int rawDataSize = widthInPixels * heightInPixels;
unsigned char *rawData = (unsigned char*)malloc(rawDataSize);
NSUInteger lePixel;
for (row = 0; row < heightInPixels; row++)
for (column = 0; column
To: Chris Paveglio
Cc: Cocoa Dev List
Sent: Thursday, February 9, 2012 5:43 PM
Subject: Re: d
ot;z...@mac.com"
To: Chris Paveglio ; Cocoa Dev List
Cc:
Sent: Wednesday, February 8, 2012 12:53 PM
Subject: Re: drawing 1 bit images, and image resolution
I know this is somewhat lame, but could you use sips from a shell call to
convert your saved image to a tiff and delete the original?
I need to save an NSImage as a TIFF file, as a 1-bit (black and white) image,
and at a specific resolution (dpi). I have my NSImage being created in RGB
mode, and I can save it (as RGB).
I've been trying to read the other posts on 1-bit images, but I don't
understand things like "you'll have to
>Where did you learn this voodoo?
I had tried it while at BNR (2009) and it worked, so I did not look into other
methods at that point, nor did I ask about it.
Yes I am using NSWindowController, but clearly not 100% correctly.
>I suspect you want to do [aboutWindow setOpaque:NO] instead of this
Yes I did have that set... but when I unchecked it and rebuilt and ran it
again, then the window has a black rectangle around it with no transparency. I
tried moving most of those code lines to awakeFromNib, but none were successful.
>Sounds like your window is initially visible before it's had
I have a custom about box, and it's sort of like Adobe apps, where it's not a
traditional window but a graphic/image I made that is a shape like a hexagon
with a drop shadow.
It works fine and I can call it and I disable the window background by setting
the window alpha to 0.999.
One little tiny
Cool, Thanks everyone!
- Original Message -
Subject: Re: Using version number in code
Chris,
You can get those values like this:
NSDictionary *infodict = [[NSBundle mainBundle] infoDictionary];
NSString *bundleVersion = [dict valueForKey:@"CFBundleVersion"];
NSString *shortVersion = [d
If this sort of thing has be discussed before I'm sorry. Shoot me a link to the
other discussion or sample code.
My app watches several folders (and subfolders) on our file servers, and counts
and displays the files in those folders.
I have a class for the folder data that contains the count fro
In an app's Info.plist there are the 2 values for Bundle Version. Is there a
way to use those directly in a class, in code? For example, I often like to put
the version number of an app in the title bar or in part of the window (I
mostly develop in-house for my company so UI standards can suit o
I have a tableview, that's populated via bindings to an array controller. Is
there a way to prevent selecting the table column headers, so that the content
can't be rearranged at all? I've looked through everything in IB for the array
controller, the table, its columns, etc and don't see a box t
for URLs on network
volumes, I usually Applescript and use Posix paths that start with
"/Volumes/..."
Chris
----- Original Message -
From: Kyle Sluder
To: Chris Paveglio
Cc: Norbert M. Doerner ; "cocoa-dev@lists.apple.com"
Sent: Friday, October 7, 2011 11:33 AM
Subject: Re: Qu
I don't get any error messages at all.
I feel like I am misunderstanding how quicklook works. Previously I had assumed
that in general, QL stores a file preview inside of the actual file, like
metadata, and calling a QL panel will simply fetch and display the image from
inside a file. But I'll g
I am trying to get Quicklook working in an app of mine. I'm not sure all these
details are relevant, but better to have more than less info. I have a table
that shows the number of files in certain folders on a network volume. In one
column is the number of files, another column shows the first
erent classes now.
Chris
- Original Message -
From: Martin Wierschin
To: Chris Paveglio
Cc: Cocoa Dev List
Sent: Wednesday, August 31, 2011 7:47 PM
Subject: Re: Won't Applescript command use defined ivars?
> But I am going to need the application to use the instance of the class
, let's just do our favorite NSLog
NSLog(@"%@", theCommand);
//[theConnection close]; //needed?
}
@end
---
Here's the SDEF in case that helps:
http://www.w3.org/2003/XInclude";>
- Original Message -
From: Martin Wierschin
I am starting to work on an application that must expose 1 Applescript command.
(It's rather challenging to understand and implement.)
I don't understand what is happening with this code: If I have an ivar that is
global in scope, when the Applescript command is accepted, that ivar won't be
used
I've been trying to wrap my head around how to drag a file reference out of my
application's table, and onto the Desktop or Finder window, and have that file
be either moved or copied there. I've read a lot of posts here which are mostly
old, on the topic, and not many give code examples of what
Looks like the method -[NSArray pathsMatchingExtensions:] is case sensitive. I
don't have a problem declaring all the variations I need in lower or upper; but
I'll see if speed is an issue on a large number of files.
>The docs don't state whether it's case sensitive or not.
Thanks for the sugg
I have an array of file paths, and I need to filter them to return only files
with extensions I have in another array. So any files that end with {.tif,
.png, .eps} etc.
I'm looking at using: - (NSArray
*)filteredArrayUsingPredicate:(NSPredicate *)predicate
Is this the best option for this kind
OK Thanks everyone for the very helpful input. I've never had any formal
computer-science training and take the ease of Applescripting for granted.
Moving to Cocoa is going slowly but well. These are the kinds of things I
didn't learn in Cocoa Boot Camp (great, but so much yet so little in 7 day
This is a question of style.
My app has text fields to display a number, and with a command I format it like
a phone number. So for the second phone number, sometime there is not a second
phone (or fax). So my command to format the 2nd phone number logs an error to
the console when I run it:
NS
I am trying to get the state of a menu item, whether it is checked or not. In
my class, I wrote the very simple code to get the state of the menu item, and
switch it to the other state when selected. All is OK with that.
In another function (in the same class) that is called from my main class,
Why I need it is simple- I need to show/count how many "user" files are in the
folder, to the users. I'm migrating an Applescript based app to Cocoa.
I believe I neglected to mention that the folder I am looking at is on a
Windows server, so any native-ignoring of .DS files might not work. But as
I need to use directoryContentsAtPath to do a simple count of files in a
directory. But sometimes I get an incorrect number (vs the Finder's display),
because there is a .DS_Store file in the folder. Is there a way to ignore
invisible files? Is there something like
directoryContentsAtPath:ignor
Adobe Illustrator CS3 and up has a feature called "live trace" which is like
the old Streamline program, to trace raster images into vector format.
There is also an app called Vector Magic that can vectorize images, there is a
demo online somewhere.
As a professional graphic designer breaking in
I'm trying to make sure that this part of my code is good and clean and not
leaking. I believe that I have it right (but still think I have something
wrong).
This code makes a list of file paths, and then copies the files or folders from
their location to the destination the user selected. If th
Thanks all for your help and insight!
I believe Jason's solution will work for me as I am changing the assignment of
what "theSetting" is each time through the loop. I have a list (array) of files
that gets copied from one place to the other, and I change the origin and the
destination each time
My code is like this:
NSMutableString *theSettings;
theSettings = [[NSMutableString alloc] init];
//myPrefs is an array of strings, each item is like "Library/Safari"
int i;
for (i = 0; i < 8; i++
{
theSettings = [NSHomeDirectory() stringByAppendingPathComponent:[myPrefs
objectA
I have a loop that gets the user's home directory, and then adds a string to
complete the file path for several files.
This line:
theSettings = [NSHomeDirectory() stringByAppendingPathComponent:[myPrefs
objectAtIndex:i]];
gives me a caution sign when I compile. It says "assignment from distinct
(I'm new also so someone please correct me if this is wrong...)
If your image does nothing at all (or never changes), could you just set in
directly in IB? I've made some Applescript apps with images in an image view, I
just drag the image (in IB's Image panel) directly into my window, or into a
Newb alert.
I'm trying to copy some files and folders from one location to another. I would
like to overwrite them at the destination. Is this possible yet?
[theManager copyPath:theSettings toPath:theDestinationFile handler:nil];
I've read the documentation: "The file specified in source must e
51 matches
Mail list logo