Re: Customizing the Notarization Workflow fails

2020-05-04 Thread St John, David R via Cocoa-dev
n't code sign the screen saver at all. That should not happen. Are you sure you did the second step and changed "Mac Developer" to "Developer ID Application” on your keychain in the Code Signing Identity? > > Could some kind soul please shed some light on this?

Re: NSToolbar in Catalina

2020-03-23 Thread St John, David R via Cocoa-dev
I had a similar problem with .icns files showing weird graphics but on Mojave and earlier they were fine. I resolved the issue by using Icon Composer (on macOS 10.10) to extract the '.icns' file(s) to iconsets and then importing them into an Asset Library. The NSImage creation changed to use

Re: Getting rid of "cannot check for malicious software"

2020-03-05 Thread St John, David R via Cocoa-dev
Read up on notarization, Catalina requires signed and notarized code. https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution Dave From: Cocoa-dev on behalf of Gabriel Zachmann via Cocoa-dev Sent: Thursday, March 5, 2020

Fullscreen window problems

2019-10-24 Thread Ray, Jeffrey R. {Jeff} (AFRC-630) via Cocoa-dev
I have a multi-platform OpenGL app (most code is c++, a tiny bit is Obj-C++). It switches between windowed and full screen mode by having an allocated-once window, and an allocated-and-destroyed full screen that comes and goes as needed. This worked correctly under Xcode 4. Due to local

Re: Customizing NSPrintPanel by removing features, not adding

2017-10-17 Thread St John, David R
Hi Flavio, Presenting your custom print dialog (Adobe/Quark do this today) is the only way to accomplish all of the goals stated below. The standard print dialog isn’t designed to be customized in the way you want. Printing has never had much in the way of documentation, reading the header

Re: How to know if an NSFont can draw an NSString?

2016-12-09 Thread Douglas R. Davidson
At the AppKit level, this sort of thing is handled as part of attribute fixing on NSAttributedString, which is covered in the documentation in the “Attributed String Programming Guide”, under the heading of “Fixing Inconsistencies”. Douglas Davidson > On Dec 9, 2016, at 4:51 PM, Ken Thomases

Re: length of file from NSFileHandle?

2016-08-26 Thread R. Matthew Emerson
> On Aug 26, 2016, at 11:32 PM, R. Matthew Emerson <r...@thoughtstuff.com> > wrote: > > >> On Aug 26, 2016, at 11:19 PM, Graham Cox <graham@bigpond.com> wrote: >> >> Hi all, >> >> Apparently a simple task, but no obvious API

Re: length of file from NSFileHandle?

2016-08-26 Thread R. Matthew Emerson
> On Aug 26, 2016, at 11:19 PM, Graham Cox wrote: > > Hi all, > > Apparently a simple task, but no obvious API for it: getting the length > (size) of a file I have a NSFileHandle for. This class has no -length > property, so how can I get it? > > I need to know

Re: C Sharp?

2015-07-16 Thread Glenn R. Martin
write permissions to /usr/local mkdir $PREFIX sudo chown -R `whoami` $PREFIX PATH=$PREFIX/bin:$PATH # Download and build dependencies mkdir ~/Build cd ~/Build curl -O ftp://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz curl -O ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz curl -O ftp

Issues with hiding NSTableColumns with autolayout

2015-07-02 Thread Jensen, Stephen C. (AFRC-R)
I’m having a frustrating issue with an OSX app I am trying to write. Here is the issue: I have a single NSTableView with a contextual menu that allows the user to show or hide columns. Easy enough… lots of sample code out there to make that happen. The working line is this: // toggle the

Crash Dispatch queue: com.apple.CFURLCACHE_work_queue

2014-06-16 Thread parth r
Hi all, I am seeing crashes in my daemon when I use dispatch_async() in a for(;;) loop. Crashed Thread: 8 Dispatch queue: com.apple.CFURLCACHE_work_queue Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: EXC_I386_GPFLT *Background* My daemon processes url's and in one of the

Re: libcrypto linking problem in Leopard

2014-01-03 Thread St John, David R
On Jan 3, 2014, at 2:37 AM, Jean-Daniel Dupas devli...@shadowlab.org wrote: The simplest advice is don't use libcrypto. If you just need simple functionality, you may have a look at the CommonCrypto API which is partially available on 10.5 ( I think Digest and Cryptors where available at

NSUserDefault setPersistentDomain:forName: crash issue

2013-12-22 Thread parth r
Hi all, I am getting a crash as below when i am trying to set the dictionary for persistent domain. Attempt to set a non-property-list object as an NSUserDefaults/CFPreferences value abort() calledThread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib

Static TableView Leaks...

2012-04-06 Thread R
Using Xcode 4.3.1 for iOS5 with ARC Create a new project, single view, static table view. Don't add anything to the table view just plain as the default. Go to Product-Profile-Leaks-Profile INTERACT WITH THE TABLEVIEW - USE YOUR MOUSE TO PUSH THE TABLEVIEW UP OR DOWN It leaks. I was

Re: Was using SnowLeopard, Xcode 4.2, iOS 5.0.1... now storyboard won't update

2012-03-10 Thread R
I run the app in Xcode 4.2 just fine. I move the exact same app over to 4.3, change target to iOS 5.1 and get the error: Could not find a storyboard named 'MainStoryboard' in bundle NSBundle My storyBoard is listed in plist. Any thoughts? On Mar 9, 7:48 pm, Roland King r...@rols.org wrote

Re: Was using SnowLeopard, Xcode 4.2, iOS 5.0.1... now storyboard won't update

2012-03-10 Thread R
It's there For some reason, a previous backup works fine on both platforms. I give up will rewrite code to bring back up to speed. Apple Updates are starting to make me nervous... Thanks for the help -- Ron On Mar 10, 9:55 am, Roland King r...@rols.org wrote: Is the story board

Was using SnowLeopard, Xcode 4.2, iOS 5.0.1... now storyboard won't update

2012-03-09 Thread R
I switched to Lion, XCode 4.3.1, iOS 5.1. I run my properly functioning app on the 5.1 iPhone simulator and the changes I make to the storyboard don't show up in the run. I'm totally perplexed and frustrated. I literally disconnected a segue and removed buttons and they still appear in the test

Twitter Account accountStore Permissions Dialog / Alert ...

2012-03-08 Thread R
I notice that when I call: [[self accountStore] requestAccessToAccountsWithType:[self accountType] withCompletionHandler:^(BOOL granted, NSError *error) { etc }]; when the dialog is presents and asks for allow or notAllow

Re: Efficiency Question...

2012-03-06 Thread R
Thanks to all! Ron On Mar 6, 9:24 am, Kyle Sluder k...@ksluder.com wrote: On Mar 5, 2012, at 11:21 PM, Graham Cox graham@bigpond.com wrote: Is the goal to go from red to blue from left to right? Why not add a single layer with red on the left, alpha = 1, and blue on the right,

Efficiency Question...

2012-03-05 Thread R
I want to blend two colors as a background. I'm adding a layer using CAGradient layer, starting on the left with blue alpha=1. and ending on the right with blue alpha=0. I then add another layer using red on the left with alpha=0. and ending on the right with alpha=1. I wonder if it is best to

Re: NSURL and NSRegularExpression

2012-03-04 Thread R
, 8:11 am, Per Bull Holmen pbhol...@gmail.com wrote: Den 04:27 4. mars 2012 skrev R r4eem...@gmail.com følgende: All good, valid and useful points. However, I would at least like to maintain the same functionality of the Twitter App for iPhone. The app does does a pretty good job

Re: NSURL and NSRegularExpression

2012-03-04 Thread R
:43 4. mars 2012 skrev R r4eem...@gmail.com følgende: Take a look at the Twitter iPhone app.  Enter a URL and watch how it deals with character counts. I don't have an iPhone, I don't use Twitter, and we are not a paid heldesk company. If you want help, you have to specify precisely

NSURL and NSRegularExpression

2012-03-03 Thread R
I'm building a twitter app for the iphone and want to detect valid internet url's and set their character count to = 20. I'm using NSRegularExpression to build an array of all NSRanges in the text field that start with http. I then use NSScanner to scan until it finds whitespace or end of line

Re: NSURL and NSRegularExpression

2012-03-03 Thread R
do all this. Use NSDataDetector instead. (Sent from my iPhone.) -- Conrad Shultz On Mar 3, 2012, at 16:15, R r4eem...@gmail.com wrote: I'm building a twitter app for the iphone and want to detect valid internet url's and set their character count to = 20. I'm using

Re: NSURL and NSRegularExpression

2012-03-03 Thread R
All good, valid and useful points. However, I would at least like to maintain the same functionality of the Twitter App for iPhone. The app does does a pretty good job of detecting and reviewing the URL to determine if it can be assumed to be 20 characters. On Mar 3, 7:16 pm, Conrad Shultz

Persistence.... iOS

2012-02-25 Thread R
. Is there a good way to just write object for key to a file? R ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help

Re: I added an exception breakpoint to my app...

2012-02-24 Thread R
I created a single view application in Xcode 4, no additions, just the boilerplate template. The same exception was noted. Maybe an Xcode bug? thanks --R On Feb 22, 11:17 pm, Kyle Sluder kyle.slu...@gmail.com wrote: On Wed, Feb 22, 2012 at 7:53 AM, R r4eem...@gmail.com wrote: and now see

Re: I added an exception breakpoint to my app...

2012-02-24 Thread R
Note that the exception was resolved... nothing to continue or log as far as I can tell On Feb 22, 11:17 pm, Kyle Sluder kyle.slu...@gmail.com wrote: On Wed, Feb 22, 2012 at 7:53 AM, R r4eem...@gmail.com wrote: and now see: Catchpoint 2 (throw)Pending breakpoint 1 - objc_exception_throw

Re: I added an exception breakpoint to my app...

2012-02-24 Thread R
was raised or caught.  The breakpoint has not yet been hit.  The debugger is just preparing things. Regards, Ken On Feb 24, 2012, at 12:55 AM, R wrote: Note that the exception was resolved... nothing to continue or log as far as I can tell On Feb 22, 11:17 pm, Kyle Sluder

I added an exception breakpoint to my app...

2012-02-22 Thread R
and now see: Catchpoint 2 (throw)Pending breakpoint 1 - objc_exception_throw resolved No further details. The app appears to be fine with no errors or warnings. Is this a problem? (SnowLeopard Xcode 4) ___ Cocoa-dev mailing list

Re: Paging UITableView

2012-02-19 Thread R
Using storyboard, a static UITableView requires a UITableViewController. How would one attach numerous static UITableViews to a scrollView for paging? On Feb 18, 10:35 pm, Roland King r...@rols.org wrote: Indeed in the documentation about nesting UIScrollViews it says ... Cross-directional

Paging UITableView

2012-02-18 Thread R
I understand that one is not suppose to embed a UITableView in a UIScrollView. I would like the ability to Page (horizontal scroll) multiple UITableViews. Is there a way to do this without using UIScrollView? R ___ Cocoa-dev mailing list (Cocoa-dev

Re: Sandbox, 10.6, Core Duo, XCode 4.... where is the entitlement page?

2012-02-07 Thread R
To clarify, I'm developing with XCode 4 on 10.6 and want my app to be available for Lion users. Do I have to be running Lion to configure sandbox entitlements? If so, I have to buy a new machine (using a core duo)? On Feb 6, 10:54 pm, R r4eem...@gmail.com wrote: Ok folks, I must be doing

Sandbox, 10.6, Core Duo, XCode 4.... where is the entitlement page?

2012-02-06 Thread R
Ok folks, I must be doing something really dumb... but for the life of me, I can't find the entitlement screen to configure my app. I've built apps on a Core Duo Intel machine with a 10.6 target and have converted over to XCode 4. I've read and watched the WWDC 2011 presentations, etc...

Block Confusion...

2012-01-31 Thread R
I thought I understood block until today Here is my situation: One class creates a STRONG pointer to a NSMutableArray. It then passes that pointer to another class, which has a WEAK reference. that class is listed below. When I fork a new thread for the simpleBlock, I lose the pointer. I

Re: Block Confusion...

2012-01-31 Thread R
My confusion is that the array in class A is used later in the code, it is just nil inside the block that is running on another thread. On Jan 31, 8:07 am, Fritz Anderson fri...@manoverboard.org wrote: On 30 Jan 2012, at 8:56 PM, R wrote: One class creates a STRONG pointer

Re: Block Confusion...

2012-01-31 Thread R
never mind. the class was getting dealloc. Still getting use to ARC and new ivar techniques. thanks! On Jan 31, 9:16 am, R r4eem...@gmail.com wrote: My confusion is that the array in class A is used later in the code, it is just nil inside the block that is running on another thread

Re: Block Confusion...

2012-01-31 Thread R
the parse. I chose this approach rather than delegation. Thoughts? On Jan 31, 11:25 am, David Duncan david.dun...@apple.com wrote: On Jan 31, 2012, at 9:05 AM, R wrote: never mind. the class was getting dealloc.  Still getting use to ARC and new ivar techniques. As a point of design here

Re: Blocks and Methods...

2012-01-28 Thread R
I originally chose to hold the block in an array, but that failed. I'm still confused over that... On Jan 28, 7:02 am, Mike Abdullah cocoa...@mikeabdullah.net wrote: On 28 Jan 2012, at 05:32, R wrote: I'm writing code in for iOS 5 Ok, in my async com class, I'm receiving a block

Re: Blocks and Methods...

2012-01-28 Thread R
using ARC. On Jan 28, 9:51 am, Ken Thomases k...@codeweavers.com wrote: On Jan 28, 2012, at 10:40 AM, R wrote: I originally chose to hold the block in an array, but that failed. I'm still confused over that... By itself, an array only retains the block.  A block must be explicitly copied

Re: Blocks and Methods...

2012-01-28 Thread R
To all, Thanks for taking the time to post advice. I think I now understand much better! --Ron On Jan 28, 12:50 pm, R r4eem...@gmail.com wrote: That is precisely what is giving me the confusion.  If retained the received block in a NSMutableArray, the block should stick around (via

Re: Key Value Observing of NSMutableArray inside an object

2012-01-28 Thread R
Mikael, I think all you need is: - (void)addDataObject:(DataObject *)theDataObject { dataObjectArrayKVC=[self mutableArrayValueForKey:@dataObjectArray]; [dataObjectArrayKVC addObject:theDataObject]; } dataObjectArrayKVC is a proxy for dataObjectArray. Objects added/ removed to/from

Re: Key Value Observing of NSMutableArray inside an object

2012-01-28 Thread R
More appropriate: - (void)addDataObject:(DataObject *)theDataObject { NSMutableArray *dataObjectArrayKVC=[self mutableArrayValueForKey:@dataObjectArray]; [dataObjectArrayKVC addObject:theDataObject]; } On Jan 28, 8:19 pm, R r4eem...@gmail.com wrote: Mikael, I think all you need

Blocks and Methods...

2012-01-27 Thread R
I'm writing code in for iOS 5 Ok, in my async com class, I'm receiving a block in one method and want to execute it in the another method. I've concluded that I need to place the block in a property. The only way that has worked is via copy. Is this the conventional way to save a block?

Re: Maintaining Image for a UIButton

2012-01-19 Thread R
imageView wrapper. On Jan 19, 9:09 am, Matt Neuburg m...@tidbits.com wrote: On Mon, 09 Jan 2012 17:12:17 -0800 (PST), R r4eem...@gmail.com said: This is easy in OSX and bindings.  But how do I maintain the aspect ratio of an UIImage place in a UIButton... via [myButton setImage...] or [myButton

Maintaining Image for a UIButton

2012-01-09 Thread R
This is easy in OSX and bindings. But how do I maintain the aspect ratio of an UIImage place in a UIButton... via [myButton setImage...] or [myButton setBackgroundImage...]. In IB, there is a setting for Aspect Ratio in the View settings but it seems to make zero difference.

A button, an arrayController and a tableView....

2011-10-28 Thread R
I've got a column of buttons in a tableView. I don't allow multiple row selections. A click of the button fires a method which says. id obj; obj=[[anArrayController selectedObjects] objectAtIndex:0]; NSLog(@the object: %@,obj); If I don't pre-select the row, it takes two clicks of the

Re: tableView blue selection highlight...

2011-09-21 Thread R
Thanks! On Sep 20, 10:23 pm, Indragie Karunaratne cocoa...@indragie.com wrote: It's called a focus ring. You can set Focus Ring to None in Interface Builder or configure it programatically: [view setFocusRingType:NSFocusRingTypeNone]; On 2011-09-20, at 10:18 PM, R wrote: Looking inside

Re: NSArrayController and NSTableView

2011-09-20 Thread R
I sounded confused because I was I think I've sorted it out. Thanks On Sep 19, 6:19 pm, Keary Suska cocoa-...@esoteritech.com wrote: On Sep 19, 2011, at 6:00 PM, R wrote: I find that in order for my NSTableView to update when bound to an NSArrayController, I have to add objects

tableView blue selection highlight...

2011-09-20 Thread R
Looking inside Address Book, when you select a name from the name column, the box (tableView) does not highlight in blue. Is there a way to duplicate this behavior in NSTableview. removing the blue highlight trim around the table? ___ Cocoa-dev

NSArrayController and NSTableView

2011-09-19 Thread R
to an arraycontroller in a different class. I would prefer to keep my arraycontroller in the same class as my array, but have need to put a tableview on views associated with another class. I can't find an elegant way to accomplish this seemingly simple need. R

Re: Submitting Mac App to the App Store

2011-09-12 Thread R
much thanks, I'll give Nick's work a try. On Sep 10, 2:34 pm, Indragie Karunaratne cocoa...@indragie.com wrote: https://github.com/nickpaulson/NPReceiptVerification Should simplify this procedure quite a bit. On 2011-09-10, at 2:28 PM, R wrote: Wow, what a configuration mess

Submitting Mac App to the App Store

2011-09-10 Thread R
Wow, what a configuration mess for the new programmer. Is there anyone that has submitted a Mac App to the App Store willing to explain the procedure.. including the Validating Mac App Store Receipts process. I'm about to give up and call Apple.

Lion breaks the ability to click-through transparent window areas when the window is resizable.

2011-08-05 Thread R R Hornback
The desire is to have a bordered, movable, resizable window with a hollow interior--hollow meaning that the user can both see through the content area (transparent) and any mouse/keyboard events are sent to whatever window/application is below. This was easily accomplished prior to OS X 10.7

Re: NSTextView won't deallocate

2011-07-18 Thread R
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/TextUILayer/Tasks/CreateTextViewProg.html%23//apple_ref/doc/uid/2930 On Jul 18, 3:30 pm, Peter magn...@web.de wrote: Yes - so the more appropriate question is why it was retained 4 times. I don't see Cocoa doing it.

NSPopupbutton binding setter getter....

2011-07-07 Thread R
I'm trying to understand when NSPopupbutton calls setter and getters in bindings. I have an array, an array controller, a tableview, a labelview and a NSPopupbutton. The arraycontroller generates objects (via add/remove) and loads them into the tableview via a binding. Let's say we have a one

tableview, button with view and bindings

2011-07-01 Thread R
Can anyone give me some guidance on adding a button w/ image to a tableview using bindings. I've had good luck adding buttons to a tableview by dropping in a button cell. But adding the image is giving me some problems. The image will be retrieved from the object represented on the row of the

Re: tableview, button with view and bindings

2011-07-01 Thread R
Clarification: a button with an image in a tableview. On Jul 1, 12:13 am, R r4eem...@gmail.com wrote: Can anyone give me some guidance on adding a button w/ image to a tableview using bindings.  I've had good luck adding buttons to a tableview by dropping in a button cell.  But adding

Re: tableview, button with view and bindings

2011-07-01 Thread R
Thanks. I'm currently displaying an image with success. I want to use a button and an image instead. I did what you said and am covered up with errors. Will dig deeper. Much thanks On Jul 1, 12:44 am, Quincey Morris quinceymor...@earthlink.net wrote: On Jun 30, 2011, at 23:13, R wrote

Re: tableview, button with view and bindings

2011-07-01 Thread R
will display when changing rows. On Jul 1, 12:44 am, Quincey Morris quinceymor...@earthlink.net wrote: On Jun 30, 2011, at 23:13, R wrote: Can anyone give me some guidance on adding a button w/ image to a tableview using bindings.  I've had good luck adding buttons to a tableview by dropping

Re: tableview, button with view and bindings

2011-07-01 Thread R
, 11:07 am, Quincey Morris quinceymor...@earthlink.net wrote: On Jul 1, 2011, at 07:33, R wrote: throwing exceptions when the binding controller key is arrangeObjects.  Note that all other data is using arrangedObjects fine.  But, placing an image on the button with this config is failing

Re: NSURLConnection

2011-06-27 Thread R
Thanks to all on the learning curve On Jun 26, 11:12 pm, Tito Ciuro tci...@mac.com wrote: Hello, If you have access to the Developer Forums, check the very first entry in Core OS named Five Reasons Why Synchronous Networking Is Bad, by Apple's Quinn The Eskimo!:

NSURLConnection

2011-06-26 Thread R
Any opinions on which approach is better. NSData *data = [NSURLConnection sendSynchronousRequest:request returningResponse:response

Custom NSCell and Bindings

2011-06-24 Thread Carter R. Harrison
It's a pretty typical situation. I've got my model objects stored in an NSSet. An NSArrayController that is bound to the NSSet. And then an NSTableView with one NSTableColumn bound to the arrangedObjects.name property of the NSArrayController. It works great. Now I've introduced a custom

NSManagedObjected isInserted

2011-04-10 Thread Carter R. Harrison
Can anybody ever think of a scenario where [NSManagedObject isInserted] equals NO for an object that is initially fetched from the context? And no the object has not been deleted from the context prior to calling isInserted. ___ Cocoa-dev mailing

Re: NSManagedObjected isInserted

2011-04-10 Thread Carter R. Harrison
On Apr 10, 2011, at 1:29 PM, Quincey Morris wrote: On Apr 10, 2011, at 06:52, Carter R. Harrison wrote: Can anybody ever think of a scenario where [NSManagedObject isInserted] equals NO for an object that is initially fetched from the context? And no the object has not been deleted from

Re: Two Applications Sharing Same Core Data Database

2011-04-08 Thread Carter R. Harrison
On Apr 7, 2011, at 7:04 PM, Carter R. Harrison wrote: On Apr 7, 2011, at 6:38 PM, Nick Zitzmann wrote: On Apr 7, 2011, at 4:24 PM, Carter R. Harrison wrote: I really appreciate all of your help. I gave your suggestion a shot and I've run into problems. Here's what happens. 1. I

Re: Two Applications Sharing Same Core Data Database

2011-04-07 Thread Carter R. Harrison
On Mar 30, 2011, at 4:09 PM, Nick Zitzmann wrote: On Mar 30, 2011, at 2:05 PM, Carter R. Harrison wrote: 2. What is the best way to implement it? Put your CoreData code into a framework shared by your applications. And use distributed notifications to keep the applications in sync

Re: Two Applications Sharing Same Core Data Database

2011-04-07 Thread Carter R. Harrison
On Apr 7, 2011, at 6:38 PM, Nick Zitzmann wrote: On Apr 7, 2011, at 4:24 PM, Carter R. Harrison wrote: I really appreciate all of your help. I gave your suggestion a shot and I've run into problems. Here's what happens. 1. I create a new NSManagedObject in my main application

Dynamically Loading Code and Core Data Non-Standard Persistent Attributes

2011-04-05 Thread Carter R. Harrison
My Core Data application has a plugin architecture. Plugins reside within their own bundles and of course are loaded dynamically at runtime. I intend to encode instances of each plugin bundle's principal class just as Apple describes it in the section of the Core Data Programming Guide called

Two Applications Sharing Same Core Data Database

2011-03-30 Thread Carter R. Harrison
I'm working on a Mac Application that will have a helper application that is always running in the background (even if the main application is not currently running). Currently the main application uses Core Data to manage persistent objects. I'd like to setup the helper application to be

Re: Two Applications Sharing Same Core Data Database

2011-03-30 Thread Carter R. Harrison
On Mar 30, 2011, at 4:03 PM, Nick Zitzmann wrote: On Mar 30, 2011, at 1:45 PM, Carter R. Harrison wrote: I'm working on a Mac Application that will have a helper application that is always running in the background (even if the main application is not currently running). Currently

Drag Drop in an NSOutlineView

2011-03-14 Thread Carter R. Harrison
I'm having trouble getting drag and drop to work with an NSOutlineView. What I've done is below. The problem is that tableView:writeRowsWithIndexes:toPasteboard never gets called. I found a few people with the same issue and it seems that the cause of the problem is that I am using a custom

Re: Drag Drop in an NSOutlineView

2011-03-14 Thread Carter R. Harrison
custom cell needs to properly implement: - (NSUInteger)hitTestForEvent:(NSEvent *)event inRect:(NSRect)cellFrame ofView:(NSView *)controlView NS_AVAILABLE_MAC(10_5); See the header for details or the AnimatedTableView demo. --corbin On Mar 14, 2011, at 12:20 PM, Carter R. Harrison wrote

Re: Drag Drop in an NSOutlineView

2011-03-14 Thread Carter R. Harrison
! Thanks! On Mar 14, 2011, at 3:33 PM, Quincey Morris wrote: On Mar 14, 2011, at 12:20, Carter R. Harrison wrote: I'm having trouble getting drag and drop to work with an NSOutlineView. What I've done is below. The problem is that tableView:writeRowsWithIndexes:toPasteboard never gets

Re: File name issue with German umlauts

2010-12-17 Thread Adam R. Maxwell
On Dec 17, 2010, at 12:08 , Lee Ann Rucker wrote: We do this to check whether two URLs really refer to the same file (you can also hit issues when using NSString path manipulation to build paths and then turn them into URLs): FWIW, we had this problem also. IIRC we were creating NSURLs

Re: Running JavaScript in iOS WebView.

2010-11-17 Thread Glenn R. Martin
is secure (ie HTTPS), scripts dont seem to execute. Glenn R. Martin___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Handling Connection Timeouts with NSStream

2010-09-10 Thread Carter R. Harrison
Hey Folks, I'm working on a app that establishes a network connection using NSStream. I found though that the code does not behave very well when it is trying to connect to an unreachable IP address or an IP address that just isn't accepting connections on the port I have specified. The code

Trying to capture XML data and convert to a String...

2010-08-19 Thread R
things simple for now. Here is an excerpt of my code: The problem is at the end of the code below…. the string findAlerts is empty. The NSXMLElement specificAlert prints correctly. Thanks for your thoughts and patience…. R Note: Previous initialization: NSXMLDocument *gameStatusXML

Re: Trying to capture XML data and convert to a String...

2010-08-19 Thread R
Thanks Sherm… On Aug 19, 2010, at 1:38 AM, Sherm Pendley wrote: On Wed, Aug 18, 2010 at 3:11 PM, R r4eem...@gmail.com wrote: I'm new and in the process of learning Objective-C and Cocoa. I want to take some raw XML data, isolate, and convert to a string. I seem to be able to capture

Main Thread Crashing in Multithreaded App

2010-08-06 Thread Carter R. Harrison
My Cocoa application's main thread is crashing with EXC_BAD_ACCESS when it becomes multithreaded. The crash always occurs in the main thread when the call stack is: 0 objc_msgSend 1 __CFArrayReleaseValues 2 _CFRelease 3 _CFAutoReleasePoolPop 4 -[NSAutoReleasePool

reformat drive to HFS via API

2010-05-25 Thread r c
I would like to be able to reformat a flash drive from control application, but it appears that there is no public API that allows this kind access. Am I missing something in the documentation? Or do I do something like call out to diskutil to make it happen? Rich Collyer

Re: EPS image in NSScrollView

2010-05-20 Thread Adam R. Maxwell
On May 20, 2010, at 1:43 PM, jyoun...@kc.rr.com wrote: One other quick question. What I'm really trying to achieve is something similar to how the pdfkit works. I like how the image/text enlarges within the scrollview when the window is resized. The code is pretty simple as well:

Re: Notifications on main thread

2010-05-20 Thread Adam R. Maxwell
On May 19, 2010, at 4:02 AM, Jonny Taylor wrote: I've noticed a slight issue (with both NSInvocation and NSOpQ) when a menu is pulled down and posting styles NSPostASAP or NSPostWhenIdle are used. While the menu is visible, the notifications are posted ok (on the main thread), but objects

Re: Image from WebView is sometimes blank

2010-05-14 Thread Adam R. Maxwell
On May 11, 2010, at 2:33 PM, Duncan Oliver wrote: I have a WebView that I use to capture a thumbnail of a loaded webpage using cacheDisplayInRect:. The WebView object is created programmatically and not attached to a window. About half the time, the image it grabs is blank. I can't seem to

Re: Finder file label from cocoa?

2010-04-28 Thread Adam R. Maxwell
On Apr 27, 2010, at 5:14 PM, Rainer Standke wrote: Hello, is there a way to get to the finder label of a file from Cocoa? I'd like to be able to get set them. In addition to Uli's solution, I have a class that specifically deals with Finder labels, and works at least back to 10.4:

Re: Drawing glitches in NSTableView with variable row hight (just like Console.app)

2010-04-20 Thread Adam R. Maxwell
On Apr 19, 2010, at 8:56 AM, Marco Masser wrote: I'm trying to implement a logging facility for an app that should behave quite the same as OS X's Console.app in terms of displaying the log, i.e. an NSTableView with varying row heights. I got it working so far, but there are major drawing

Re: Toll free bridge from NSAttributedString * to CFAttributedStringRef

2010-04-08 Thread Adam R. Maxwell
On Apr 8, 2010, at 5:02 AM, vincent habchi wrote: I've been fiddling with NSAttributedString lately, and the way to display them through Core Text. In the docs, I've read that NSAttributedString and CFAttributedStringRef were supposed to be toll free bridged; I assumed that meant that one

Re: Problems with repetetive execution of netstat using NSTask and NSTimer

2010-04-06 Thread Adam R. Maxwell
On Apr 6, 2010, at 12:08 PM, Kazior Fukacz wrote: Thanks for your answers! By the way, are you using garbage collection? If not, then you're leaking several objects (those pointed to by 'netstat', 'pipe', and 'string'). Yeah, I suspect that the pipes (and corresponding NSFileHandles)

Re: Problems with repetetive execution of netstat using NSTask and NSTimer

2010-04-05 Thread Adam R. Maxwell
On Apr 5, 2010, at 3:02 PM, Ken Thomases wrote: On Apr 5, 2010, at 4:05 PM, Kazior Fukacz wrote: When I run it, it keeps working perfectly fine for a few minutes, then stops refreshing the IP and prints: IPShowX[14917] *** NSTimer discarding exception '*** -[NSCFDictionary

Re: Creating WebView in code

2010-04-02 Thread Adam R. Maxwell
On Apr 2, 2010, at 2:08 PM, Nick Zitzmann wrote: On Apr 2, 2010, at 2:19 PM, Jenny M wrote: D'oh, you told me that before and I completely forgot. So I tried that, but the page still appears blank. I don't want the page to be visible so I didn't set makeKeyOrderFront. FWIW, I'm able to

RESOLVED: Blocked Reads

2010-03-17 Thread r c
Thank you all for your ideas. With various suggestions, I found a variation of the CDRomSample code that seems to work well. The sample does reads on the BSN Name of the device root (i.e. /dev/rdisk#). I have found that if I dig a little deeper into the IORegistry for the device (i.e.

Re: Memory Problems

2010-02-05 Thread Adam R. Maxwell
On Feb 5, 2010, at 5:49 PM, Greg Robertson wrote: I am trying to parse a large CSV (5MB) file using some code I found here: http://www.macresearch.org/cocoa-scientists-part-xxvi-parsing-csv-data but I am getting what I think is an out of memory error part way through, the error is:

Socket Blocking Question

2010-01-20 Thread Carter R. Harrison
I need some folks experienced with cocoa and socket programming to weigh in for me on some design problems I've been having. I'm designing an application that acts as a client in a client-server model. The client communicates with the server over the network by issuing a request and then

Re: Bindings Problem

2010-01-20 Thread Carter R. Harrison
On Jan 18, 2010, at 4:55 PM, Ken Thomases wrote: On Jan 18, 2010, at 11:01 AM, Jeffrey Oleander wrote: http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Collections/Articles/Sets.html Set Fundamentals: Note that if mutable objects are stored in a set, either the hash

Re: Socket Blocking Question

2010-01-20 Thread Carter R. Harrison
pretty well on this blog why trying to support those things can lead to some unfixable trickiness, which I just wanted to avoid altogether.) If you can't support 10.6, then, this won't work. But hopefully you can soon ;) Good luck. -Steven On Wed, Jan 20, 2010 at 11:39 AM, Carter R

Re: Socket Blocking Question

2010-01-20 Thread Carter R. Harrison
On Jan 20, 2010, at 2:23 PM, Ken Thomases wrote: On Jan 20, 2010, at 11:39 AM, Carter R. Harrison wrote: I need some folks experienced with cocoa and socket programming to weigh in for me on some design problems I've been having. I'm designing an application that acts as a client

Bindings Problem

2010-01-14 Thread Carter R. Harrison
I'm sure what I'm trying to do is not that difficult but I've been pulling my hair out for a while now on this problem. I have an application whose model could be updated without the user directly doing anything. So bindings seems like the perfect fit b/c the interface will reflect these

Drawing into myView

2009-12-16 Thread R T
I have a subclass of NSView and I want to draw into it after I retrieve an Image in an NSImageView. I'm trying to set 2 instance variables in the drawRect block of code... @property(readwrite) NSRect tRect; @property (retain, readwrite) NSGraphicsContext*savedContext;

An array of

2009-12-05 Thread R T
I am trying to create an array of CGImageRefs that I will use to create CGLayers. myCGImageRefImage is the CGImageRef of the key image. Each loop, I'm trying to reload imgForLayer with this key image. The line...imgForLayer = CGImageCreateCopy(myCGImageRefImage) ...doesn't work at all.

  1   2   3   4   5   6   >