login about faq

Hi,

why do I get an unrecognized selector error when trying to do a call to FetchSingleHeaderAsMime but the similar call to FetchSingleAsMime works fine? Or I'm overlooking something simple as usual.

Works fine:

'get the body of a mail:

dim messageID as Integer = MessageSet.getID(counter - 1)

declare function getMail lib ImapLibLocation selector "FetchSingleAsMime:bUid:" (obj as Ptr, n as Ptr, fetchUuids as Boolean) as CFStringRef

dim n as Cocoa.NSNumber = NSNumber.CreateWithInteger(messageID)

dim theBody as String = getMail(self, n, True)

Doesn't work:

'get the header of a mail

dim messageID as Integer = MessageSet.getID(counter)

declare function getHeader lib ImapLibLocation selector "FetchSingleHeaderAsMime:bUid:" (obj as Ptr, n as Ptr, fetchUuids as Boolean) as CFStringRef

dim n as Cocoa.NSNumber = NSNumber.CreateWithInteger(messageID)

dim theHeader as String = getHeader(self, n, True)

MessageSet is the result of a declare to

declare Function searchAll lib ImapLibLocation selector "Search:bUid:" (obj as Ptr, refname as CFStringRef, fetchUuids as Boolean) as Ptr

Latest Chilcat Objective-C dylib. Xojo 2015r3. Mac OS 10.10.5.

asked Oct 28 '15 at 11:38

bwill's gravatar image

bwill
213


By the way, the following code works fine:

Declare Function getHeader lib ImapLibLocation selector "FetchSingleHeader:bUid:" (obj as Ptr, n as Ptr, fetchUuids as Boolean) as Ptr

dim n as Cocoa.NSNumber = NSNumber.CreateWithInteger(messageID)

dim HeaderPointer as Ptr = getHeader(self, n, True)

link

answered Oct 28 '15 at 11:53

bwill's gravatar image

bwill
213

Thanks! By the way, Chilkat is working on a Xojo API where the Chilkat classes will be conveniently available as Xojo classes. The work is underway. Essentially, Chilkat will provide the Xojo classes with all the properties and methods backed by the "Declare" statements..

The Xojo work is underway, but some higher priority development tasks have superseded it for now, so the ETA is at least 1 month away, but shouldn't be more than 2 months away..

link

answered Oct 28 '15 at 14:55

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×34

Asked: Oct 28 '15 at 11:38

Seen: 635 times

Last updated: Oct 28 '15 at 14:55

powered by OSQA